Sunday, August 26, 2012

IBGP and EBGP basic tuning 1 and 2

Router 1


interface Loopback0
 ip address 1.1.1.1 255.255.255.255
!
interface Serial0/0
 ip address 10.1.13.1 255.255.255.0
 serial restart-delay 0
!
interface Serial0/1
 ip address 10.1.12.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 ospf 1
 log-adjacency-changes
 network 1.1.1.1 0.0.0.0 area 0
 network 10.1.12.0 0.0.0.255 area 0
 network 10.1.13.0 0.0.0.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 2


interface Serial0/0
 ip address 10.1.12.2 255.255.255.0
 serial restart-delay 0
!
interface Serial0/1
 ip address 10.1.24.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 ospf 1
 log-adjacency-changes
 network 10.1.12.0 0.0.0.255 area 0
 network 10.1.24.0 0.0.0.255 area 0

Router 3


interface Serial0/0
 ip address 10.1.13.2 255.255.255.0
 serial restart-delay 0
!
interface Serial0/1
 ip address 10.1.34.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 ospf 1
 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 4


interface Loopback4
 ip address 4.4.4.4 255.255.255.255
!
interface Serial0/0
 ip address 10.1.24.2 255.255.255.0
 serial restart-delay 0
!
interface Serial0/1
 ip address 10.1.34.2 255.255.255.0
 serial restart-delay 0
!
interface Serial0/2
 ip address 10.1.45.1 255.255.255.0
 serial restart-delay 0
 clock rate 201600
!
interface Serial0/3
 no ip address
 shutdown
 serial restart-delay 0
!
router ospf 1
 log-adjacency-changes
 network 4.4.4.4 0.0.0.0 area 0
 network 10.1.24.0 0.0.0.255 area 0
 network 10.1.34.0 0.0.0.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

Router 5


interface Loopback10
 ip address 200.1.1.1 255.255.255.0
!
interface Loopback11
 ip address 200.1.2.1 255.255.255.0
!
interface Loopback12
 ip address 200.1.3.1 255.255.255.0
!
interface Loopback13
 ip address 200.1.4.1 255.255.255.0
!
interface Loopback14
 ip address 200.1.5.1 255.255.255.0
!
interface Loopback15
 ip address 200.1.6.1 255.255.255.0
!
interface Loopback20
 ip address 50.1.1.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
 no ip address
 shutdown
 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 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
!
no ip http 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