Prerequisites: CCNP level skills.
Topology
Note!
All routers are configured as per topology diagram (pic. 1) and loopback advertised into BGP.
Pic. 1 - Topology Diagram.Icons designed by: Andrzej Szoblik - http://www.newo.pl
Task 1
Ensure that the router ins AS 13 send traffic towards 172.16.104.0/24 and 172.16.144.0/24 through AS 20.
Lab Solution
Task 1
Ensure that the router ins AS 13 send traffic towards 172.16.104.0/24 and 172.16.144.0/24 through AS 20.
Notice!
Local Preference attribute is automatically set to 100 for all incoming prefixes.
Pic. 2 - BGP Table on R1 Before Change.
Pic. 3 - BGP Table on R3 Before Change.
Pic. 4 - R3' Detailed Information: 172.16.104.0/24
R3 Configuration:
!
access-list 1 permit 172.16.144.0
access-list 1 permit 172.16.104.0
!
access-list 1 permit 172.16.104.0
!
route-map SET_LP permit 10
match ip address 1
set local-preference 200
!
route-map SET_LP permit 20
!
router bgp 13
no synchronization
bgp router-id 172.16.103.3
bgp log-neighbor-changes
network 172.16.103.0 mask 255.255.255.0
neighbor 10.1.13.1 remote-as 13
neighbor 10.1.13.1 next-hop-self
neighbor 10.1.23.2 remote-as 20
neighbor 10.1.23.2 route-map SET_LP in
neighbor 10.1.35.5 remote-as 50
no auto-summary
match ip address 1
set local-preference 200
!
route-map SET_LP permit 20
!
router bgp 13
no synchronization
bgp router-id 172.16.103.3
bgp log-neighbor-changes
network 172.16.103.0 mask 255.255.255.0
neighbor 10.1.13.1 remote-as 13
neighbor 10.1.13.1 next-hop-self
neighbor 10.1.23.2 remote-as 20
neighbor 10.1.23.2 route-map SET_LP in
neighbor 10.1.35.5 remote-as 50
no auto-summary
!
Pic. 5 - BGP Table on R1 After Change.
Pic. 6 - R1's Detailed Information: 172.16.104.0/24.