Objective: Configure AS 2 so that AS 1 sees an aggregate route representing
the 10.0.0.0/16, 10.1.0.0/16, 10.2.0.0/16, and 10.3.0.0/16 networks.
Traffic for 10.0.0.1 should use the link between R1 and R4 while
traffic for 10.3.0.1 should use the link between R3 and R5
Directions
" Configure the topology per the diagram
" Configure BGP on R1, R3, R4, and R5 per the diagram
" R1 should peer with R3 and R4
" R5 should peer with R3 and R4
" Advertise VLAN 5 and 43 into BGP on R5 and R4 respectively
" Create the Loopback networks 10.0.0.1/16 and 10.1.0.1/16 on R1 and
advertise them into BGP
" Create the Loopback networks 10.2.0.1/16 and 10.3.0.1/16 on R3 and
advertise them into BGP
" Configure BGP aggregation on R1 and R3 for all four of these networks
using the summary-only keyword
" R1 should unsuppress the 10.0.0.0/16 network to R4
" R3 should unsuppress the 10.3.0.0/16 network to R5
" Configure the topology per the diagram
" Configure BGP on R1, R3, R4, and R5 per the diagram
" R1 should peer with R3 and R4
" R5 should peer with R3 and R4
" Advertise VLAN 5 and 43 into BGP on R5 and R4 respectively
" Create the Loopback networks 10.0.0.1/16 and 10.1.0.1/16 on R1 and
advertise them into BGP
" Create the Loopback networks 10.2.0.1/16 and 10.3.0.1/16 on R3 and
advertise them into BGP
" Configure BGP aggregation on R1 and R3 for all four of these networks
using the summary-only keyword
" R1 should unsuppress the 10.0.0.0/16 network to R4
" R3 should unsuppress the 10.3.0.0/16 network to R5
配置:
R1:
interface Loopback0
ip address 10.0.0.1 255.255.0.0
!
interface Loopback1
ip address 10.1.0.1 255.255.0.0
!
interface FastEthernet0/0
ip address 155.1.146.1 255.255.255.0
!
interface Serial0/1
ip address 155.1.13.1 255.255.255.0
!
router bgp 2
network 10.0.0.0 mask 255.255.0.0
network 10.1.0.0 mask 255.255.0.0
aggregate-address 10.0.0.0 255.252.0.0 summary-only
neighbor 155.1.13.3 remote-as 2
neighbor 155.1.13.3 next-hop-self
neighbor 155.1.146.4 remote-as 1
neighbor 155.1.146.4 unsuppress-map UNSUPPRESS
!
ip prefix-list 10.0.0.0 seq 5 permit 10.0.0.0/16
!
interface Loopback0
ip address 10.0.0.1 255.255.0.0
!
interface Loopback1
ip address 10.1.0.1 255.255.0.0
!
interface FastEthernet0/0
ip address 155.1.146.1 255.255.255.0
!
interface Serial0/1
ip address 155.1.13.1 255.255.255.0
!
router bgp 2
network 10.0.0.0 mask 255.255.0.0
network 10.1.0.0 mask 255.255.0.0
aggregate-address 10.0.0.0 255.252.0.0 summary-only
neighbor 155.1.13.3 remote-as 2
neighbor 155.1.13.3 next-hop-self
neighbor 155.1.146.4 remote-as 1
neighbor 155.1.146.4 unsuppress-map UNSUPPRESS
!
ip prefix-list 10.0.0.0 seq 5 permit 10.0.0.0/16
!
route-map UNSUPPRESS permit 10
match ip address prefix-list 10.0.0.0
R3:
interface Loopback0
ip address 10.2.0.1 255.255.0.0
!
interface Loopback1
ip address 10.3.0.1 255.255.0.0
!
interface Serial1/0
encapsulation frame-relay
!
interface Serial1/0.1 point-to-point
ip address 155.1.0.3 255.255.255.0
frame-relay interface-dlci 305
!
interface Serial1/2
ip address 155.1.13.3 255.255.255.0
clockrate 64000
!
match ip address prefix-list 10.0.0.0
R3:
interface Loopback0
ip address 10.2.0.1 255.255.0.0
!
interface Loopback1
ip address 10.3.0.1 255.255.0.0
!
interface Serial1/0
encapsulation frame-relay
!
interface Serial1/0.1 point-to-point
ip address 155.1.0.3 255.255.255.0
frame-relay interface-dlci 305
!
interface Serial1/2
ip address 155.1.13.3 255.255.255.0
clockrate 64000
!
router bgp 2
network 10.2.0.0 mask 255.255.0.0
network 10.3.0.0 mask 255.255.0.0
aggregate-address 10.0.0.0 255.252.0.0 summary-only
neighbor 155.1.13.1 remote-as 2
neighbor 155.1.13.1 next-hop-self
neighbor 155.1.0.5 remote-as 1
neighbor 155.1.0.5 unsuppress-map UNSUPPRESS
!
ip prefix-list 10.3.0.0 seq 5 permit 10.3.0.0/16
!
route-map UNSUPPRESS permit 10
match ip address prefix-list 10.3.0.0
R4:
interface Ethernet0/0
ip address 204.12.1.4 255.255.255.0
!
network 10.2.0.0 mask 255.255.0.0
network 10.3.0.0 mask 255.255.0.0
aggregate-address 10.0.0.0 255.252.0.0 summary-only
neighbor 155.1.13.1 remote-as 2
neighbor 155.1.13.1 next-hop-self
neighbor 155.1.0.5 remote-as 1
neighbor 155.1.0.5 unsuppress-map UNSUPPRESS
!
ip prefix-list 10.3.0.0 seq 5 permit 10.3.0.0/16
!
route-map UNSUPPRESS permit 10
match ip address prefix-list 10.3.0.0
R4:
interface Ethernet0/0
ip address 204.12.1.4 255.255.255.0
!
interface Ethernet0/1
ip address 155.1.146.4 255.255.255.0
!
router bgp 1
network 204.12.1.0
neighbor 155.1.146.1 remote-as 2
neighbor 155.1.45.5 remote-as 1
neighbor 155.1.45.5 next-hop-self
R5:
interface Serial0/0
ip address 155.1.0.5 255.255.255.0
encapsulation frame-relay
frame-relay map ip 155.1.0.2 502 broadcast
!
interface Ethernet0/1
ip address 155.1.5.5 255.255.255.0
!
router bgp 1
network 155.1.5.0 mask 255.255.255.0
neighbor 155.1.0.3 remote-as 2
neighbor 155.1.45.4 remote-as 1
neighbor 155.1.45.4 next-hop-self
ip address 155.1.146.4 255.255.255.0
!
router bgp 1
network 204.12.1.0
neighbor 155.1.146.1 remote-as 2
neighbor 155.1.45.5 remote-as 1
neighbor 155.1.45.5 next-hop-self
R5:
interface Serial0/0
ip address 155.1.0.5 255.255.255.0
encapsulation frame-relay
frame-relay map ip 155.1.0.2 502 broadcast
!
interface Ethernet0/1
ip address 155.1.5.5 255.255.255.0
!
router bgp 1
network 155.1.5.0 mask 255.255.255.0
neighbor 155.1.0.3 remote-as 2
neighbor 155.1.45.4 remote-as 1
neighbor 155.1.45.4 next-hop-self
验证:
Rack1R4#show ip bgp
BGP table version is 6, local router ID is 150.1.4.4
Status codes: s suppressed, d damped, h history, * valid, >
best, i - internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete
Network Next Hop Metric LocPrf
Weight Path
*> 10.0.0.0/16 155.1.146.1 0
0 2 i
* i10.0.0.0/14 155.1.45.5 0 100
0 2 i
*> 155.1.146.1 0
0 2 i
*>i10.3.0.0/16 155.1.45.5 0 100
0 2 i
*>i155.1.5.0/24 155.1.45.5 0 100
0 i
*> 204.12.1.0 0.0.0.0 0
32768 i
BGP table version is 6, local router ID is 150.1.4.4
Status codes: s suppressed, d damped, h history, * valid, >
best, i - internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete
Network Next Hop Metric LocPrf
Weight Path
*> 10.0.0.0/16 155.1.146.1 0
0 2 i
* i10.0.0.0/14 155.1.45.5 0 100
0 2 i
*> 155.1.146.1 0
0 2 i
*>i10.3.0.0/16 155.1.45.5 0 100
0 2 i
*>i155.1.5.0/24 155.1.45.5 0 100
0 i
*> 204.12.1.0 0.0.0.0 0
32768 i
插入表情