---------------------------------------------------------------------------------------------------- R1 ---------------------------------------------------------------------------------------------------- interface GigabitEthernet0/1 description Primary INETCKT ip address 193.88.147.54 255.255.255.252 ip access-group INET-RTR_EXT_IN in load-interval 30 duplex full speed 1000 media-type gbic negotiation auto no cdp enable interface GigabitEthernet0/2 description >> to switch A 1/0/1 << ip address 216.104.233.2 255.255.255.0 load-interval 30 duplex auto speed auto media-type rj45 no negotiation auto standby ip 216.104.233.1 standby priority 110 standby preempt standby track GigabitEthernet0/1 20 interface GigabitEthernet0/3 ip address 216.104.222.2 255.255.255.0 duplex auto speed auto media-type rj45 no negotiation auto standby 220 ip 216.104.222.1 standby 220 priority 110 standby 220 preempt standby 220 track GigabitEthernet0/1 20 router bgp 64521 no synchronization bgp log-neighbor-changes network 216.104.222.0 network 216.104.233.0 neighbor 193.88.147.53 remote-as 2111 neighbor 193.88.147.53 timers 30 90 neighbor 193.88.147.53 soft-reconfiguration inbound neighbor 193.88.147.53 route-map bths-in in neighbor 193.88.147.53 route-map bths-out out neighbor 193.88.147.53 password 7 XXXXXXXXXXX neighbor 216.104.233.3 remote-as 64521 neighbor 216.104.233.3 next-hop-self neighbor 216.104.233.3 timers 30 90 neighbor 216.104.233.3 route-map ibgp-in in neighbor 216.104.233.3 password 7 XXXXXXXXX no auto-summary ip classless ip route 216.104.222.0 255.255.255.0 Null0 ip route 216.104.233.0 255.255.255.0 Null0 no ip http server no ip http secure-server ! ip as-path access-list 1 permit ^$ ip as-path access-list 4 permit ^2111_ ip as-path access-list 4 permit ^\(.* ! ! ip prefix-list XYZ-net seq 5 permit 216.104.233.0/24 ip prefix-list XYZ-net seq 10 permit 216.104.222.0/24 ! ! route-map bths-in permit 10 match as-path 4 set weight 250 ! route-map bths-in deny 20 ! route-map ibgp-in permit 10 set weight 50 ! route-map bths-out permit 10 match ip address prefix-list XYZ-net match as-path 1 set metric 100 ! route-map bths-out deny 20 ---------------------------------------------------------------------------------------------------- R2 ---------------------------------------------------------------------------------------------------- interface GigabitEthernet0/1 description Backup INETCKT ip address 193.99.147.58 255.255.255.252 ip access-group INET-RTR_EXT_IN in load-interval 30 duplex full speed 1000 media-type gbic negotiation auto no cdp enable ! interface GigabitEthernet0/2 description >> to switch B 1/0/1 << ip address 216.104.233.3 255.255.255.0 load-interval 30 duplex auto speed auto media-type rj45 no negotiation auto standby ip 216.104.233.1 standby preempt standby track GigabitEthernet0/1 20 interface GigabitEthernet0/3 ip address 216.104.222.3 255.255.255.0 load-interval 30 duplex auto speed auto media-type rj45 no negotiation auto no cdp enable standby 220 ip 216.104.222.1 standby 220 preempt standby 220 track GigabitEthernet0/1 20 ! router bgp 64521 no synchronization bgp log-neighbor-changes network 216.104.222.0 network 216.104.233.0 neighbor 193.99.147.57 remote-as 2111 neighbor 193.99.147.57 timers 30 90 neighbor 193.99.147.57 route-map bths-in in neighbor 193.99.147.57 route-map bths-out out neighbor 193.99.147.57 password 7 087719775D2B353F1D neighbor 216.104.233.2 remote-as 64521 neighbor 216.104.233.2 next-hop-self neighbor 216.104.233.2 timers 30 90 neighbor 216.104.233.2 route-map ibgp-in in neighbor 216.104.233.2 password 7 XXXXXXXXX no auto-summary ! ip classless ip route 216.104.220.0 255.255.255.0 Null0 ip route 216.104.223.0 255.255.255.0 Null0 no ip http server no ip http secure-server ! ip as-path access-list 1 permit ^$ ip as-path access-list 4 permit ^2110_ ip as-path access-list 4 permit ^\(.* ! ! ip prefix-list XYZ-net seq 5 permit 216.104.223.0/24 ip prefix-list XYZ-net seq 10 permit 216.104.220.0/24 ! ! route-map bths-in permit 10 match as-path 4 set weight 200 ! route-map bths-in deny 20 ! route-map ibgp-in permit 10 set weight 50 ! route-map bths-out permit 10 match ip address prefix-list XYZ-net match as-path 1 set metric 200 ! route-map bths-out deny 20