101
# Configure Router D.
<RouterD> system-view
[RouterD] router id 10.3.1.1
[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] router id 10.4.1.1
[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] address-family ipv4 unicast
[RouterB-bgp-ipv4] import-route ospf
[RouterB-bgp-ipv4] import-route direct
[RouterB-bgp-ipv4] quit
[RouterB-bgp] quit
# Configure Router C.
[RouterC] bgp 100
[RouterC-bgp] peer 11.1.1.1 as-number 200
[RouterC-bgp] address-family ipv4 unicast
[RouterC-bgp-ipv4] import-route ospf
[RouterC-bgp-ipv4] import-route direct
[RouterB-bgp-ipv4] quit
[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 IP routing table on Router A.
[RouterA] display ip routing-table
Destinations : 16 Routes : 16
Destination/Mask Proto Pre Cost NextHop Interface