Tuesday, May 31, 2016

cisco BGP confederation

configuration
!AS100
!R10
interface Loopback0
 ip address 10.10.10.10 255.255.255.255
!
interface Loopback1
 ip address 10.10.10.1 255.255.255.255
!
interface Loopback2
 ip address 10.10.10.2 255.255.255.255
!
interface Loopback3
 ip address 10.10.10.3 255.255.255.255
!
interface Loopback4
 ip address 10.10.10.4 255.255.255.255
!
interface Loopback5
 ip address 10.10.10.5 255.255.255.255
!
interface Serial3/0
 ip address 100.1.1.1 255.255.255.252
 serial restart-delay 0
!
router bgp 100
 bgp log-neighbor-changes
 network 100.1.1.0 mask 255.255.255.252
 redistribute connected route-map BGP
 neighbor 100.1.1.2 remote-as 500
!
ip access-list standard BGP
 permit 10.10.10.0 0.0.0.255
!
route-map BGP permit 10
 match ip address BGP

!AS200
!R11
interface Loopback0
 ip address 11.11.11.11 255.255.255.255
!
interface Loopback1
 ip address 11.11.11.1 255.255.255.255
!
interface Loopback2
 ip address 11.11.11.2 255.255.255.255
!
interface Loopback3
 ip address 11.11.11.3 255.255.255.255
!
interface Loopback4
 ip address 11.11.11.4 255.255.255.255
!
interface Loopback5
 ip address 11.11.11.5 255.255.255.255
!
interface Serial3/0
 ip address 200.1.1.1 255.255.255.252
 serial restart-delay 0
!
router bgp 200
 bgp log-neighbor-changes
 network 200.1.1.0 mask 255.255.255.252
 redistribute connected route-map BGP
 neighbor 200.1.1.2 remote-as 500
!

ip access-list standard BGP
 permit 11.11.11.0 0.0.0.255
!
route-map BGP permit 10
 match ip address BGP

!AS300
!R12

interface Loopback0
 ip address 12.12.12.12 255.255.255.255
!
interface Loopback1
 ip address 12.12.12.1 255.255.255.255
!
interface Loopback2
 ip address 12.12.12.2 255.255.255.255
!
interface Loopback3
 ip address 12.12.12.3 255.255.255.255
!
interface Loopback4
 ip address 12.12.12.4 255.255.255.255
!
interface Loopback5
 ip address 12.12.12.5 255.255.255.255
!
interface Serial3/0
 ip address 150.1.1.1 255.255.255.252
 serial restart-delay 0
!
router bgp 300
 bgp log-neighbor-changes
 network 150.1.1.0 mask 255.255.255.252
 redistribute connected route-map BGP
 neighbor 150.1.1.2 remote-as 500
!
ip access-list standard BGP
 permit 12.12.12.0 0.0.0.255
!
route-map BGP permit 10
 match ip address BGP


!AS500
!AS64512
!R1
interface Ethernet1/0
 ip address 10.1.1.1 255.255.255.252
 duplex full
!
interface Ethernet1/1
 ip address 10.1.1.5 255.255.255.252
 duplex full
!
router ospf 1
 network 0.0.0.0 255.255.255.255 area 0
!
router bgp 64512
 bgp cluster-id 1
 bgp log-neighbor-changes
 bgp confederation identifier 500
 bgp confederation peers 64514
 neighbor 10.1.0.2 remote-as 64514
 neighbor 10.1.1.2 remote-as 64512
 neighbor 10.1.1.2 route-reflector-client
 neighbor 10.1.1.6 remote-as 64512
 neighbor 10.1.1.6 route-reflector-client
!
!R2
!
interface Ethernet1/0
 ip address 10.1.1.2 255.255.255.252
 duplex full
!
interface Serial3/1
 ip address 10.1.0.5 255.255.255.252
 serial restart-delay 0
!
router ospf 1
 network 0.0.0.0 255.255.255.255 area 0
!
router bgp 64512
 bgp log-neighbor-changes
 bgp confederation identifier 500
 bgp confederation peers 64513
 neighbor 10.1.0.6 remote-as 64513
 neighbor 10.1.1.1 remote-as 64512
!

!R3
interface Ethernet1/1
 ip address 10.1.1.6 255.255.255.252
 duplex full
!
interface Serial3/0
 ip address 100.1.1.2 255.255.255.252
 serial restart-delay 0
!
router ospf 1
 passive-interface Serial3/0
 network 0.0.0.0 255.255.255.255 area 0
!
router bgp 64512
 bgp log-neighbor-changes
 bgp confederation identifier 500
 neighbor 10.1.1.5 remote-as 64512
 neighbor 100.1.1.1 remote-as 100
!

!AS64513
!R4

!
interface Ethernet1/0
 ip address 10.1.2.1 255.255.255.252
 duplex full
!
interface Ethernet1/1
 ip address 10.1.2.5 255.255.255.252
 duplex full
!
router ospf 1
 network 0.0.0.0 255.255.255.255 area 0
!
router bgp 64513
 bgp cluster-id 2
 bgp log-neighbor-changes
 bgp confederation identifier 500
 bgp confederation peers 64512
 neighbor 10.1.0.5 remote-as 64512
 neighbor 10.1.2.2 remote-as 64513
 neighbor 10.1.2.2 route-reflector-client
 neighbor 10.1.2.6 remote-as 64513
 neighbor 10.1.2.6 route-reflector-client
!

!R5 

!
interface Ethernet1/0
 ip address 10.1.2.2 255.255.255.252
 duplex full
!
interface Serial3/0
 ip address 200.1.1.2 255.255.255.252
 serial restart-delay 0
!
router ospf 1
 network 0.0.0.0 255.255.255.255 area 0
!
router bgp 64513
 bgp log-neighbor-changes
 bgp confederation identifier 500
 neighbor 10.1.2.1 remote-as 64513
 neighbor 200.1.1.1 remote-as 200
!

!R6

!
interface Ethernet1/1
 ip address 10.1.2.6 255.255.255.252
 duplex full
!
interface Serial3/1
 ip address 10.1.0.10 255.255.255.252
 serial restart-delay 0
!
router ospf 1
 network 0.0.0.0 255.255.255.255 area 0
!
router bgp 64513
 bgp log-neighbor-changes
 bgp confederation identifier 500
 bgp confederation peers 64514
 neighbor 10.1.0.9 remote-as 64514
 neighbor 10.1.2.5 64513

!AS6414
!R7

!
interface Ethernet1/0
 ip address 10.1.3.5 255.255.255.252
 duplex full
!
interface Ethernet1/1
 ip address 10.1.3.1 255.255.255.252
 duplex full
!
interface Serial3/1
 ip address 10.1.0.2 255.255.255.252
 serial restart-delay 0
!
router ospf 1
 network 0.0.0.0 255.255.255.255 area 0
!
router bgp 64514
 bgp cluster-id 3
 bgp log-neighbor-changes
 bgp confederation identifier 500
 bgp confederation peers 64512
 neighbor 10.1.0.1 remote-as 64512
 neighbor 10.1.3.2 remote-as 64514
 neighbor 10.1.3.2 route-reflector-client
 neighbor 10.1.3.6 remote-as 64514
 neighbor 10.1.3.6 route-reflector-client
!

!R8

!
interface Ethernet1/0
 ip address 10.1.3.6 255.255.255.252
 duplex full
!
interface Serial3/0
 ip address 150.1.1.2 255.255.255.252
 serial restart-delay 0
!
router ospf 1
 passive-interface Serial3/0
 network 0.0.0.0 255.255.255.255 area 0
!
router bgp 64514
 bgp log-neighbor-changes
 bgp confederation identifier 500
 neighbor 10.1.3.5 remote-as 64514
 neighbor 150.1.1.1 remote-as 300
!

!R9 


interface Ethernet1/1
 ip address 10.1.3.2 255.255.255.252
 duplex full
!
interface Serial3/1
 ip address 10.1.0.9 255.255.255.252
 serial restart-delay 0
!
router ospf 1
 network 0.0.0.0 255.255.255.255 area 0
!
router bgp 64514
 bgp log-neighbor-changes
 bgp confederation identifier 500
 bgp confederation peers 64513
 neighbor 10.1.0.10 remote-as 64513
 neighbor 10.1.3.1 remote-as 64514
!


No comments:

Post a Comment