R3's BGP Conf: R3#sh running-config | begin bgp router bgp 3 no synchronization bgp log-neighbor-changes network 172.16.20.0 mask 255.255.255.0 network 172.16.25.0 mask 255.255.255.0 neighbor 192.168.2.1 remote-as 3 neighbor 192.168.2.1 next-hop-self neighbor 192.168.10.2 remote-as 2 neighbor 192.168.10.2 route-map SET-OUTBOUND in neighbor 192.168.10.2 route-map SET-INBOUND out no auto-summary ! ip as-path access-list 4 permit ^2 4$ ip as-path access-list 4 permit ^2$ ! access-list 2 permit 172.16.20.0 0.0.0.255 access-list 101 permit ip 11.11.0.0 0.0.255.255 host 255.255.0.0 ! route-map SET-INBOUND permit 10 match ip address 2 set metric 200 ! route-map SET-INBOUND permit 20 set metric 300 ! route-map SET-OUTBOUND permit 10 match ip address 101 set local-preference 200 ! route-map SET-OUTBOUND permit 20 match as-path 4 set local-preference 300 ! R3#sh ip bgp BGP table version is 12, local router ID is 172.16.25.1 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.10.10.0/24 192.168.10.2 300 0 2 4 i * 11.11.0.0/16 192.168.10.2 200 0 2 1 i *>i 192.168.2.1 0 250 0 2 1 i *> 12.12.12.0/24 192.168.10.2 0 300 0 2 i *>i172.16.10.0/24 192.168.2.1 0 100 0 i *>i172.16.11.0/24 192.168.2.1 0 100 0 i *> 172.16.20.0/24 0.0.0.0 0 32768 i *> 172.16.25.0/24 0.0.0.0 0 32768 i *> 192.168.1.0/30 192.168.10.2 0 300 0 2 i R3# R4's BGP Conf: R4#sh run | begin bgp router bgp 3 no synchronization bgp log-neighbor-changes network 172.16.10.0 mask 255.255.255.0 network 172.16.11.0 mask 255.255.255.0 neighbor 192.168.2.2 remote-as 3 neighbor 192.168.2.2 next-hop-self neighbor 192.168.11.1 remote-as 2 neighbor 192.168.11.1 route-map SET-OUTBOUND in neighbor 192.168.11.1 route-map SET-INBOUND out no auto-summary ! ip as-path access-list 4 permit ^2 4$ ip as-path access-list 4 permit ^2$ ! access-list 101 permit ip 11.11.0.0 0.0.255.255 host 255.255.0.0 ! route-map SET-INBOUND permit 10 set metric 250 ! route-map SET-OUTBOUND permit 10 match ip address 101 set local-preference 250 ! route-map SET-OUTBOUND permit 20 match as-path 4 set local-preference 250 ! ! R4's BGP Table R4#sh ip bgp BGP table version is 25, local router ID is 172.16.11.1 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 *>i10.10.10.0/24 192.168.2.2 0 300 0 2 4 i * 192.168.11.1 250 0 2 4 i *> 11.11.0.0/16 192.168.11.1 250 0 2 1 i *>i12.12.12.0/24 192.168.2.2 0 300 0 2 i * 192.168.11.1 250 0 2 i *> 172.16.10.0/24 0.0.0.0 0 32768 i *> 172.16.11.0/24 0.0.0.0 0 32768 i *>i172.16.20.0/24 192.168.2.2 0 100 0 i *>i172.16.25.0/24 192.168.2.2 0 100 0 i *>i192.168.1.0/30 192.168.2.2 0 300 0 2 i * 192.168.11.1 250 0 2 i R1's BGP CONF router bgp 2 no synchronization bgp log-neighbor-changes network 12.12.12.0 mask 255.255.255.0 neighbor 192.168.1.2 remote-as 2 neighbor 192.168.1.2 next-hop-self neighbor 192.168.10.1 remote-as 3 neighbor 192.168.13.1 remote-as 4 no auto-summary R2's BGP CONF router bgp 2 no synchronization bgp log-neighbor-changes neighbor 192.168.1.1 remote-as 2 neighbor 192.168.1.1 next-hop-self neighbor 192.168.11.2 remote-as 3 neighbor 192.168.12.1 remote-as 1 no auto-summary