Friday 5 June 2009

BGP Lab configs #2

R1


router bgp 1235
no synchronization
bgp router-id 1.1.1.1
bgp log-neighbor-changes
network 1.1.1.1 mask 255.255.255.255
network 10.1.1.0 mask 255.255.255.0
aggregate-address 16.0.0.0 252.0.0.0 summary-only
neighbor PEERGROUP1235 peer-group
neighbor PEERGROUP1235 remote-as 1235
neighbor PEERGROUP1235 route-reflector-client
neighbor PEERGROUP1235 prefix-list ALLOW520 out
neighbor 10.1.1.2 peer-group PEERGROUP1235
neighbor 10.1.1.3 peer-group PEERGROUP1235
neighbor 10.1.1.5 peer-group PEERGROUP1235
no auto-summary


R2

router bgp 1235
no synchronization
bgp router-id 2.2.2.2
bgp log-neighbor-changes
network 2.2.2.2 mask 255.255.255.255
network 10.1.1.0 mask 255.255.255.0
neighbor 10.1.1.1 remote-as 1235
no auto-summary
!


R3

router bgp 1235
no synchronization
bgp router-id 3.3.3.3
bgp log-neighbor-changes
network 3.3.3.3 mask 255.255.255.255
network 10.1.1.0 mask 255.255.255.0
neighbor 10.1.1.1 remote-as 1235
neighbor 10.1.1.4 remote-as 4
no auto-summary
!


R4

router bgp 4
no synchronization
bgp router-id 4.4.4.4
bgp log-neighbor-changes
network 4.4.4.4 mask 255.255.255.255
network 10.1.1.0 mask 255.255.255.0
neighbor 10.1.1.3 remote-as 1235
no auto-summary


R5

router bgp 1235
no synchronization
bgp router-id 5.5.5.5
bgp log-neighbor-changes
network 5.5.5.5 mask 255.255.255.255
network 10.1.1.0 mask 255.255.255.0
network 16.0.0.0
network 17.0.0.0
network 18.0.0.0
network 19.0.0.0
neighbor 10.1.1.1 remote-as 1235
no auto-summary



Most importantly R3 (and R2) should show something like this for
Show ip bgp:

R3#sh ip bgp
BGP table version is 6, local router ID is 3.3.3.3
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete

Network Next Hop Metric LocPrf Weight Path
*> 3.3.3.3/32 0.0.0.0 0 32768 i
*> 4.4.4.4/32 10.1.1.4 0 0 4 i
*>i5.5.5.5/32 10.1.1.5 0 100 0 i
* 10.1.1.0/24 10.1.1.4 0 0 4 i
*> 0.0.0.0 0 32768 i
*>i16.0.0.0/6 10.1.1.1 0 100 0 i


R2 obviously wont show 4.4.4.4


Next week I think im going to do a multi area OSPF lab with redistribution...OoooOooo

No comments: