Tuesday, August 28, 2012

BGP tuning Lab 2



 Working on the Nuggets BGP Tuning vids, which you pretty much have to figure out the basic setup yourself.

I am not sure why I am not getting secondary routes on anything other than R1. I have to assume it is a setup issue with R1 as nothing on either side is getting the secondary routes, but it is.

***Worked thru this. It's a BGP concept that I had to get my head around of how BGP limits routes to only the best route is inserted in the routing table. Anyway, here are the configs.


Router 1

interface Serial0/0
 ip address 10.1.12.1 255.255.255.0
 serial restart-delay 0
 clock rate 201600
!
interface Serial0/1
 ip address 10.1.13.1 255.255.255.0
 serial restart-delay 0
 clock rate 201600
!
interface Serial0/2
 no ip address
 shutdown
 serial restart-delay 0
!
interface Serial0/3
 no ip address
 shutdown
 serial restart-delay 0
!
router bgp 5500
 no synchronization
 bgp log-neighbor-changes
 neighbor 10.1.12.2 remote-as 5500
 neighbor 10.1.13.2 remote-as 5500
 no auto-summary

Router 2


interface Serial0/0
 ip address 10.1.12.2 255.255.255.0
 serial restart-delay 0
 clock rate 201600
!
interface Serial0/1
 ip address 10.1.24.1 255.255.255.0
 serial restart-delay 0
 clock rate 201600
!
interface Serial0/2
 ip address 10.1.23.1 255.255.255.0
 serial restart-delay 0
!
interface Serial0/3
 no ip address
 shutdown
 serial restart-delay 0
!
router bgp 5500
 no synchronization
 bgp log-neighbor-changes
 neighbor 10.1.12.1 remote-as 5500
 neighbor 10.1.12.1 next-hop-self
 neighbor 10.1.23.2 remote-as 5500
 neighbor 10.1.24.2 remote-as 777
 no auto-summary

Router 3


interface Serial0/0
 ip address 10.1.13.2 255.255.255.0
 serial restart-delay 0
 clock rate 201600
!
interface Serial0/1
 ip address 10.1.36.1 255.255.255.0
 serial restart-delay 0
 clock rate 201600
!
interface Serial0/2
 ip address 10.1.23.2 255.255.255.0
 serial restart-delay 0
!
interface Serial0/3
 no ip address
 shutdown
 serial restart-delay 0
!
router bgp 5500
 no synchronization
 bgp log-neighbor-changes
 neighbor 10.1.13.1 remote-as 5500
 neighbor 10.1.13.1 next-hop-self
 neighbor 10.1.23.1 remote-as 5500
 neighbor 10.1.36.2 remote-as 777
 neighbor 10.1.36.2 route-map local_pref in
 default-metric 200
 no auto-summary
!
no ip http server
!
!
!
!
ip access-list standard routes_for_r2
 permit 200.0.0.0 0.255.255.255
ip access-list standard routes_for_r3
 permit 150.1.50.0 0.0.0.255
 permit 150.2.50.0 0.0.0.255
route-map local_pref permit 10
 match ip address routes_for_r3
 set local-preference 1000
!
route-map local_pref permit 20
 match ip address routes_for_r2
 set local-preference 10

Router 4





interface Serial0/0
 ip address 10.1.24.2 255.255.255.0
 serial restart-delay 0
!
interface Serial0/1
 ip address 10.1.45.1 255.255.255.0
 serial restart-delay 0
!
interface Serial0/2
 no ip address
 shutdown
 serial restart-delay 0
!
interface Serial0/3
 no ip address
 shutdown
 serial restart-delay 0
!
router bgp 777
 no synchronization
 bgp log-neighbor-changes
 neighbor 10.1.24.1 remote-as 5500
 neighbor 10.1.45.2 remote-as 911
 no auto-summary

Router 5


interface Loopback0
 ip address 150.1.50.1 255.255.255.0
!
interface Loopback1
 ip address 150.2.50.1 255.255.255.0
!
interface Serial0/0
 ip address 10.1.45.2 255.255.255.0
 serial restart-delay 0
 clock rate 201600
!
interface Serial0/1
 ip address 10.1.57.1 255.255.255.0
 serial restart-delay 0
 clock rate 201600
!
interface Serial0/2
 no ip address
 shutdown
 serial restart-delay 0
!
interface Serial0/3
 no ip address
 shutdown
 serial restart-delay 0
!
router bgp 911
 no synchronization
 bgp log-neighbor-changes
 network 150.1.50.0
 network 150.1.50.0 mask 255.255.255.0
 network 150.2.50.0
 network 150.2.50.0 mask 255.255.255.0
 redistribute connected route-map filter
 neighbor 10.1.45.1 remote-as 777
 neighbor 10.1.57.2 remote-as 711
 no auto-summary
!
no ip http server
!
!
!
access-list 50 permit 150.1.50.0
access-list 50 permit 150.2.50.0
route-map filter permit 10
 match ip address 50

Router 6




interface Serial0/0
 ip address 10.1.36.2 255.255.255.0
 serial restart-delay 0
 clock rate 201600
!
interface Serial0/1
 ip address 10.1.67.1 255.255.255.0
 serial restart-delay 0
 clock rate 201600
!
interface Serial0/2
 no ip address
 shutdown
 serial restart-delay 0
!
interface Serial0/3
 no ip address
 shutdown
 serial restart-delay 0
!
router bgp 777
 no synchronization
 bgp log-neighbor-changes
 neighbor 10.1.36.1 remote-as 5500
 neighbor 10.1.67.2 remote-as 711
 no auto-summary

Router 7


interface Loopback0
 ip address 200.50.2.1 255.255.255.0
!
interface Loopback1
 ip address 200.60.2.1 255.255.255.0
!
interface Serial0/0
 ip address 10.1.57.2 255.255.255.0
 serial restart-delay 0
 clock rate 201600
!
interface Serial0/1
 ip address 10.1.67.2 255.255.255.0
 serial restart-delay 0
 clock rate 201600
!
interface Serial0/2
 no ip address
 shutdown
 serial restart-delay 0
!
interface Serial0/3
 no ip address
 shutdown
 serial restart-delay 0
!
router bgp 711
 no synchronization
 bgp log-neighbor-changes
 network 200.50.2.0
 network 200.60.2.0
 neighbor 10.1.57.1 remote-as 911
 neighbor 10.1.67.1 remote-as 777
 no auto-summary




4 comments:

  1. Hey thanks! I was looking for this configuration also....and seems almost the same as what I have. I am not getting also the secondary routes on R1.

    Maybe is a bug from GNS3...Jeremy did this lab with real equipment...actually the video is reused from the old series.

    Thanks!

    ReplyDelete
  2. Hi thanks is really helped me in ma lab with Jeremy

    ReplyDelete
  3. Great job , you helped me alot :)

    ReplyDelete