R0106-HP MSR Router Series Layer 3 - IP Routing Configuration Guide(V7)

301
[RouterB-ospf-1-area-0.0.0.0] network 172.17.100.0 0.0.0.255
[RouterB-ospf-1-area-0.0.0.0] quit
[RouterB-ospf-1] import-route static
[RouterB-ospf-1] quit
# Configure OSPF to advertise local networks on Router C.
[RouterC] ospf
[RouterC-ospf-1] area 0
[RouterC-ospf-1-area-0.0.0.0] network 172.17.100.0 0.0.0.255
[RouterC-ospf-1-area-0.0.0.0] network 10.220.2.0 0.0.0.255
[RouterC-ospf-1-area-0.0.0.0] quit
[RouterC-ospf-1] quit
# Display the IP routing table on Router C.
[RouterC] display ip routing-table protocol ospf
Summary Count : 5
OSPF Routing table Status : <Active>
Summary Count : 3
Destination/Mask Proto Pre Cost NextHop Interface
192.168.64.0/24 OSPF 150 1 172.17.100.1 GE2/1/1
192.168.74.0/24 OSPF 150 1 172.17.100.1 GE2/1/1
192.168.99.0/24 OSPF 150 1 172.17.100.1 GE2/1/1
OSPF Routing table Status : <Inactive>
Summary Count : 2
Destination/Mask Proto Pre Cost NextHop Interface
10.220.2.0/24 OSPF 10 1 10.220.2.16 GE2/1/2
172.17.100.0/24 OSPF 10 1 172.17.100.2 GE2/1/1
The output shows that Router C has learned routes to 192.168.64.0/24, 192.168.74.0/24, and
192.168.99.0/24 through OSPF.
4. Configure BGP between Router C and Router D and configure BGP on Router C to redistribute
OSPF routes:
# On Router C, enable BGP, specify Router D as an EBGP peer, and configure BGP to redistribute
OSPF routes.
[RouterC] bgp 65106
[RouterC-bgp] router-id 3.3.3.3
[RouterC-bgp] peer 10.220.2.217 as-number 64631
[RouterC-bgp] address-family ipv4 unicast
[RouterC-bgp-ipv4] peer 10.220.2.217 enable
[RouterC-bgp-ipv4] import-route ospf
# Enable BGP, and configure Router C as an EBGP peer on Router D.
[RouterD] bgp 64631
[RouterD-bgp] router-id 4.4.4.4
[RouterD-bgp] peer 10.220.2.16 as-number 65106
[RouterD-bgp] address-family ipv4 unicast