Tuesday, April 5, 2011

BGP LAB 2, advertising networks, Auto summary, Synchronization, and Next Hop addresses

Ahh, now into the meat of the stuff I at least monitor at work, BGP.


A note of caution about these configs. I'm not 100% sure they are 100% correct. I keep going until I get the same results as in the Nugget's vids, but I'm sure there are commands that I may not have entirely correct. These configs result in the correct output of sh ip route, and sh ip bgp, so I'm pretty sure they are close.

Router 1 (labs router 2)



r1#sh run | b int
interface Loopback2
 ip address 2.2.2.2 255.255.255.255
!
interface FastEthernet0/0
 no ip address
 shutdown
 duplex auto
 speed auto
!
interface Serial0/0
 ip address 10.1.12.2 255.255.255.0
 no fair-queue
 no dce-terminal-timing-enable
 service-module t1 clock source internal
 service-module t1 timeslots 1-24
!
interface Serial0/1
 ip address 10.1.24.1 255.255.255.0
 no dce-terminal-timing-enable
!
router ospf 1
 router-id 2.2.2.2
 log-adjacency-changes
 network 10.0.0.0 0.255.255.255 area 0

Router 2 (labs router 3)


r2#sh run | b int
interface Loopback3
 ip address 3.3.3.3 255.255.255.255
!
interface FastEthernet0/0
 no ip address
 shutdown
 duplex auto
 speed auto
!
interface Serial0/0
 ip address 10.1.13.2 255.255.255.0
 no fair-queue
 no dce-terminal-timing-enable
 service-module t1 timeslots 1-24
!
interface Serial0/1
 ip address 10.1.34.1 255.255.255.0
 no fair-queue
 no dce-terminal-timing-enable
!
router ospf 1
 router-id 3.3.3.3
 log-adjacency-changes
 network 10.1.13.0 0.0.0.255 area 0
 network 10.1.34.0 0.0.0.255 area 0

Router 3 (labs router 4)


interface Serial0/0
 no ip address
 shutdown
 no fair-queue
 no dce-terminal-timing-enable
!
interface Serial1/0
 ip address 10.1.24.2 255.255.255.0
 clock rate 64000
 no dce-terminal-timing-enable
!
interface Serial1/1
 ip address 10.1.34.2 255.255.255.0
 clock rate 64000
 dce-terminal-timing-enable
!
interface Serial1/2
 ip address 10.1.45.1 255.255.255.0
 clock rate 64000
 no dce-terminal-timing-enable
!
interface Serial1/3
 description link to AS(R5 s/0)
 no ip address
 logging event subif-link-status
 no dce-terminal-timing-enable
!
interface Serial1/4
 no ip address
 logging event subif-link-status
 clock rate 64000
 dce-terminal-timing-enable
!
interface Serial1/5
 no ip address
 shutdown
 no dce-terminal-timing-enable
!
interface Serial1/6
 no ip address
 shutdown
 no dce-terminal-timing-enable
!
interface Serial1/7
 no ip address
 shutdown
 no dce-terminal-timing-enable
!
router ospf 1
 router-id 4.4.4.4
 log-adjacency-changes
 network 1.1.1.1 0.0.0.0 area 0
 network 4.4.4.4 0.0.0.0 area 0
 network 10.0.0.0 0.255.255.255 area 0
!
router bgp 5500
 no synchronization
 bgp log-neighbor-changes
 neighbor 1.1.1.1 remote-as 5500
 neighbor 1.1.1.1 update-source Loopback4
 neighbor 1.1.1.1 next-hop-self
 neighbor 10.1.45.2 remote-as 6500
 no auto-summary
!
ip route 5.5.5.5 255.255.255.255 10.1.45.2

Router 4 (labs router 1)


interface Loopback0
 ip address 1.1.1.1 255.255.255.255
!
interface FastEthernet0/0
 no ip address
 shutdown
 duplex auto
 speed auto
!
interface Serial0/0
 ip address 10.1.13.1 255.255.255.0
 no fair-queue
 service-module t1 clock source internal
 service-module t1 timeslots 1-24
!
interface Serial0/1
 ip address 10.1.12.1 255.255.255.0
 service-module t1 clock source internal
 service-module t1 timeslots 1-24
!
router ospf 1
 router-id 1.1.1.1
 log-adjacency-changes
 network 1.1.1.1 0.0.0.0 area 0
 network 4.4.4.4 0.0.0.0 area 0
 network 10.0.0.0 0.255.255.255 area 0
!
router bgp 5500
 no synchronization
 bgp log-neighbor-changes
 neighbor 4.4.4.4 remote-as 5500
 neighbor 4.4.4.4 update-source Loopback0
 no auto-summary

Router 5 (Labs router 5)


interface Loopback0
 ip address 200.1.1.1 255.255.255.0
!
interface Loopback1
 ip address 200.1.2.1 255.255.255.0
!
interface Loopback2
 ip address 200.1.3.1 255.255.255.0
!
interface Loopback3
 ip address 200.1.4.1 255.255.255.0
!
interface Loopback4
 ip address 200.1.5.1 255.255.255.0
!
interface Loopback5
 ip address 200.1.6.1 255.255.255.0
!
interface Loopback6
 ip address 50.1.1.1 255.255.255.0
!
interface FastEthernet0/0
 ip address 192.168.0.186 255.255.255.0
 shutdown
 duplex auto
 speed auto
!
interface Serial0/0
 ip address 10.45.1.5 255.255.255.0
 ip ospf network point-to-point
 shutdown
 no dce-terminal-timing-enable
 service-module t1 clock source internal
 service-module t1 timeslots 1-24
!
interface Serial0/1
 ip address 10.1.45.2 255.255.255.0
 no dce-terminal-timing-enable
!
router bgp 6500
 no synchronization
 bgp log-neighbor-changes
 network 50.1.1.0 mask 255.255.255.0
 redistribute connected route-map FILTER
 neighbor 10.1.45.1 remote-as 5500
 no auto-summary
!
ip classless
ip route 4.4.4.4 255.255.255.255 10.1.45.1
!
!
ip http server
no ip http secure-server
!
access-list 50 permit 200.1.1.0
access-list 50 permit 200.1.3.0
access-list 50 permit 200.1.2.0
access-list 50 permit 200.1.4.0
!
route-map FILTER permit 10
 match ip address 50

No comments:

Post a Comment