Configurazione BGP
Ecco un possibile esempio (semplice) di configurazione di una istanza bgp e redistribuzione delle rotte ospf:
NODE A:
hostname bgpd-router
bgp config-type cisco
!
password xxx
enable password xxx
!
router bgp 65063
no synchronization
bgp router-id 10.0.0.1
redistribute ospf
network 10.0.0.0 mask 255.255.255.0
!redistribute connected
neighbor 10.0.0.11 remote-as 65063
neighbor 10.0.0.11 password xxx
no auto-summary
!
!
!set local-preference 222
!
!
line vty
no login
NODE B:
!
hostname bgpd-router2
bgp config-type cisco
!
password xxx
enable password xxx
!
router bgp 65063
no synchronization
bgp router-id 10.0.0.11
network 10.0.144.0 mask 255.255.255.0
network 10.0.0.0 mask 255.255.255.0
!redistribute connected
neighbor 10.0.0.1 remote-as 65063
neighbor 10.0.0.1 password xxx
!neighbor 10.0.0.1 route-map ROTTE-IN in
neighbor 10.0.0.1 distribute-list 3 in
!
no auto-summary
!
access-list 3 permit 10.1.0 0.0.255.255
access-list 3 permit 10.2.0.0 0.0.255.255
access-list 3 permit 10.3.0.0 0.0.255.255
access-list 3 deny any
!route-map ROTTE-IN permit 100
!match ip address prefix-list ACCEPT-ROUTES-FROM-A
!ip prefix-list ACCEPT-ROUTES-FROM-A seq 10 permit 10.0.0.0/14
!
!set local-preference 222
!
!
line vty
no login