service timestamps debug datetime msec service timestamps log datetime msec no service password-encryption ! hostname p1 ! boot-start-marker boot-end-marker ! ! ! aaa new-model ! ! aaa authentication login default local aaa authorization console aaa authorization exec default local ! ! ! ! ! aaa session-id common ! ip cef ! ! ! ! ! ! no ipv6 cef multilink bundle-name authenticated ! ! ! ! license udi pid CISCO2921/K9 sn FGL17371189 ! ! ! ! ! ! ! ! interface Loopback100 ip address 1.1.1.1 255.255.255.255 ! interface Loopback200 ip address 2.2.2.2 255.255.255.240 ! ! interface GigabitEthernet0/0 description LOCAL LAN ip address 10.251.100.29 255.255.255.0 duplex full speed 1000 ! interface GigabitEthernet0/1 description AIRTEL-AIRTEL LINK ip address 10.1.1.1 255.255.255.252 load-interval 30 duplex auto speed auto ! interface GigabitEthernet0/2 description AIRTEL-TATA LINK ip address 20.1.1.1 255.255.255.252 duplex full speed 100 ! ! router eigrp 1 network 10.0.0.0 ! router bgp 64520 bgp log-neighbor-changes neighbor 10.1.1.2 remote-as 9498 neighbor 20.1.1.2 remote-as 9498 ! address-family ipv4 redistribute connected neighbor 10.1.1.2 activate neighbor 10.1.1.2 allowas-in 10 neighbor 10.1.1.2 route-map LAN1 out neighbor 20.1.1.2 activate neighbor 20.1.1.2 allowas-in 10 neighbor 20.1.1.2 route-map LAN2 out exit-address-family ! ip forward-protocol nd ! no ip http server no ip http secure-server ! ip route 100.1.1.0 255.255.255.0 10.251.100.30 ip route 200.2.2.0 255.255.255.0 10.251.100.30 ! ! ip prefix-list LAN1 seq 5 permit 100.1.1.0/24 ! ip prefix-list LAN2 seq 5 permit 200.2.2.0/24 ! ip prefix-list LAN3 seq 5 permit 100.1.1.0/24 ip prefix-list LAN3 seq 10 permit 200.2.2.0/24 ! route-map PREPEND permit 10 set as-path prepend 64520 64520 64520 ! route-map LAN2 permit 10 match ip address prefix-list LAN2 ! route-map LAN2 permit 30 match ip address prefix-list LAN3 set local-preference 25 set as-path prepend 64520 64520 64520 ! route-map LAN1 permit 10 match ip address prefix-list LAN1 ! route-map LAN1 permit 30 match ip address prefix-list LAN3 set local-preference 25 set as-path prepend 64520 64520 64520 ! ! ! ! ! control-plane ! ! ! line con 0 line aux 0 line 2 no activation-character no exec transport preferred none transport output pad telnet rlogin lapb-ta mop udptn v120 ssh stopbits 1 line vty 0 4 transport input all ! scheduler allocate 20000 1000 ! end