H3C Technologies H3C SR8800 User Manual

Page 128

Advertising
background image

112

[RouterC-ospf-1-area-0.0.0.0] network 10.2.1.0 0.0.0.255

[RouterC-ospf-1-area-0.0.0.0] quit

[RouterC-ospf-1] quit

# Configure Router D.

<RouterD> system-view

[RouterD] ospf

[RouterD-ospf-1] area 0

[RouterD-ospf-1-area-0.0.0.0] network 10.1.1.0 0.0.0.255

[RouterD-ospf-1-area-0.0.0.0] network 10.3.1.0 0.0.0.255

[RouterD-ospf-1-area-0.0.0.0] quit

# Configure Router E.

<RouterE> system-view

[RouterE] ospf

[RouterE-ospf-1] area 0

[RouterE-ospf-1-area-0.0.0.0] network 10.2.1.0 0.0.0.255

[RouterE-ospf-1-area-0.0.0.0] network 10.4.1.0 0.0.0.255

[RouterE-ospf-1-area-0.0.0.0] quit

[RouterE-ospf-1] quit

3.

Configure BGP to redistribute OSPF routes and direct routes:
# Configure Router B.

[RouterB] bgp 200

[RouterB-bgp] peer 11.1.1.2 as-number 100

[RouterB-bgp] import-route ospf

[RouterB-bgp] import-route direct

[RouterB-bgp] quit

# Configure Router C.

[RouterC] bgp 100

[RouterC-bgp] peer 11.1.1.1 as-number 200

[RouterC-bgp] import-route ospf

[RouterC-bgp] import-route direct

[RouterC-bgp] quit

4.

Configure Router B and Router C to redistribute BGP routes into OSPF:
# Configure OSPF to redistribute routes from BGP on Router B.

[RouterB] ospf

[RouterB-ospf-1] import-route bgp

# Configure OSPF to redistribute routes from BGP on Router C.

[RouterC] ospf

[RouterC-ospf-1] import-route bgp

# Display the routing table of Router A.

[RouterA] display ip routing-table

Routing Tables: Public

Destinations : 8 Routes : 8

Destination/Mask Proto Pre Cost NextHop Interface

10.1.1.0/24 O_ASE 150 1 11.2.1.1 GE3/1/1

Advertising