! version 12.4 service timestamps debug datetime msec service timestamps log datetime msec no service password-encryption ! hostname R1 ! boot-start-marker boot-end-marker ! enable secret 5 $1$Fy3D$kusWR9x2F6cEAYVsEw7oF. ! no aaa new-model ! ip cef no ip domain lookup ! interface Loopback0 ip address 172.17.0.1 255.255.255.255 ! interface Loopback1 ip address 10.10.20.1 255.255.255.0 secondary ip address 10.10.30.1 255.255.255.0 secondary ip address 10.10.40.1 255.255.255.0 secondary ip address 10.10.50.1 255.255.255.0 secondary ip address 10.10.11.1 255.255.255.0 secondary ip address 10.10.21.1 255.255.255.0 secondary ip address 10.10.31.1 255.255.255.0 secondary ip address 10.10.41.1 255.255.255.0 secondary ip address 10.10.51.1 255.255.255.0 secondary ip address 10.10.10.1 255.255.255.0 ! interface FastEthernet0/0 no ip address shutdown duplex half ! interface Serial1/0 description to R2 s1/0 ip address 192.168.100.1 255.255.255.252 serial restart-delay 0 ! interface Serial1/1 no ip address shutdown serial restart-delay 0 ! interface Serial1/2 no ip address shutdown serial restart-delay 0 ! interface Serial1/3 no ip address shutdown serial restart-delay 0 ! interface Serial1/4 no ip address shutdown serial restart-delay 0 ! interface Serial1/5 no ip address shutdown serial restart-delay 0 ! interface Serial1/6 no ip address shutdown serial restart-delay 0 ! interface Serial1/7 no ip address shutdown serial restart-delay 0 ! router bgp 80 no synchronization bgp log-neighbor-changes network 10.10.10.0 mask 255.255.255.0 network 10.10.11.0 mask 255.255.255.0 network 10.10.20.0 mask 255.255.255.0 network 10.10.21.0 mask 255.255.255.0 network 10.10.30.0 mask 255.255.255.0 network 10.10.31.0 mask 255.255.255.0 network 10.10.40.0 mask 255.255.255.0 network 10.10.41.0 mask 255.255.255.0 network 10.10.50.0 mask 255.255.255.0 network 10.10.51.0 mask 255.255.255.0 neighbor 192.168.100.2 remote-as 100 neighbor 192.168.100.2 send-community neighbor 192.168.100.2 route-map R2-OUT out no auto-summary ! ip forward-protocol nd ! no ip http server no ip http secure-server ! ip bgp-community new-format ! ! ip prefix-list PL-R2-OUT1 seq 10 permit 10.10.10.0/24 ! ip prefix-list PL-R2-OUT2 seq 10 permit 10.10.20.0/24 ! ip prefix-list PL-R2-OUT3 seq 10 permit 10.10.30.0/24 ip prefix-list PL-R2-OUT3 seq 20 permit 10.10.31.0/24 ! route-map R2-OUT permit 10 match ip address prefix-list PL-R2-OUT1 set as-path prepend 1000 2000 3000 ! route-map R2-OUT permit 20 match ip address prefix-list PL-R2-OUT2 set as-path prepend 777 888 999 ! route-map R2-OUT permit 30 match ip address prefix-list PL-R2-OUT3 set community 80:300 80:400 additive ! route-map R2-OUT permit 1000 ! control-plane ! gatekeeper shutdown ! line con 0 exec-timeout 0 0 logging synchronous stopbits 1 line aux 0 stopbits 1 line vty 0 4 password network login ! end