280
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
[RouterD-bgp-ipv4] peer 10.220.2.16 enable
[RouterD-bgp-ipv4] quit
[RouterD-bgp] quit
# Display routing table information on Router D.
[RouterD] display ip routing-table protocol bgp
Summary Count : 3
BGP Routing table Status : <Active>
Summary Count : 3
Destination/Mask Proto Pre Cost NextHop Interface
192.168.64.0/24 BGP 255 1 10.220.2.16 GE1/0
192.168.74.0/24 BGP 255 1 10.220.2.16 GE1/0
192.168.99.0/24 BGP 255 1 10.220.2.16 GE1/0
BGP Routing table Status : <Inactive>
Summary Count : 0
The output shows that Router D has learned routes to 192.168.64.0/24, 192.168.74.0/24, and
192.168.99.0/24 through BGP.
After the above configurations, ping the hosts on networks 192.168.64.0/24,
192.168.74.0/24, and 192.168.99.0/24 from Router D. The ping operations succeed.
5.
Configure route summarization on Router C to summarize 192.168.64.0/24, 192.168.74.0/24,
and 192.168.99.0/24 into a single route 192.168.64.0/18 and disable advertisement of the
more specific routes.
[RouterC-bgp-ipv4] aggregate 192.168.64.0 18 detail-suppressed
[RouterC-bgp-ipv4] quit
[RouterC-bgp] quit
Verifying the configuration
# Display IP routing table information on Router C.
[RouterC] display ip routing-table | include 192.168
192.168.64.0/18 BGP 130 0 127.0.0.1 NULL0