blob: fa03c9ba394e7dae0671080a92460eabb5601512 [file] [log] [blame]
log file /var/log/quagga/bgpdbgp1.log
hostname bgp1
password quagga
!
! Different next hop for IPv4
!
ip prefix-list 1 seq 10 permit 10.0.2.0/24
ip prefix-list 1 seq 20 permit 10.1.2.0/24
ip prefix-list 1 seq 30 permit 10.0.3.0/24
ip prefix-list 1 seq 40 permit 10.0.4.0/24
ip prefix-list 1 seq 50 permit 10.1.0.0/24
ip prefix-list 1 seq 70 permit 10.1.10.0/24
ip prefix-list 1 seq 80 permit 10.2.0.0/24
ip prefix-list 1 seq 90 permit 10.2.30.0/24
ip prefix-list 1 seq 100 permit 10.2.20.0/24
ip prefix-list 1 seq 110 permit 10.2.10.0/24
ip prefix-list 1 seq 120 permit 10.2.40.0/24
ip prefix-list 1 seq 130 permit 10.3.0.0/24
ip prefix-list 1 seq 140 permit 10.3.30.0/24
ip prefix-list 1 seq 150 permit 10.3.10.0/24
ip prefix-list 1 seq 160 permit 10.3.20.0/24
!
route-map NEXTHOP41 permit 10
match ip address prefix-list 1
set ip next-hop 10.0.1.254
!
!
route-map NEXTHOP47 permit 10
match ip address prefix-list 1
set ip next-hop 10.0.7.254
!
! Different next hop for IPv6
!
ipv6 prefix-list 2 seq 10 permit 2000::200/120
ipv6 prefix-list 2 seq 20 permit 2000::300/120
ipv6 prefix-list 2 seq 30 permit 1000::300/120
ipv6 prefix-list 2 seq 40 permit 1001::300/120
ipv6 prefix-list 2 seq 50 permit 1002::300/120
ipv6 prefix-list 2 seq 60 permit 1003::300/120
ipv6 prefix-list 2 seq 70 permit 1004::300/120
ipv6 prefix-list 2 seq 80 permit 1005::300/120
ipv6 prefix-list 2 seq 90 permit 1006::300/120
ipv6 prefix-list 2 seq 100 permit 1007::300/120
ipv6 prefix-list 2 seq 110 permit 1008::300/120
ipv6 prefix-list 2 seq 120 permit 1009::300/120
ipv6 prefix-list 2 seq 130 permit 1010::300/120
!
route-map NEXTHOP61 permit 10
match ipv6 address prefix-list 2
set ipv6 next-hop global 2000::1ff
set ipv6 next-hop local 2000::1ff
!
!
route-map NEXTHOP67 permit 10
match ipv6 address prefix-list 2
set ipv6 next-hop global 2000::7ff
set ipv6 next-hop local 2000::7ff
!
! Basic router config
!
router bgp 65003
bgp router-id 172.16.0.3
timers bgp 3 9
!
! IPv4
!
neighbor 10.0.1.1 remote-as 65001
neighbor 10.0.1.1 ebgp-multihop
neighbor 10.0.1.1 timers connect 5
neighbor 10.0.1.1 advertisement-interval 5
neighbor 10.0.1.1 route-map NEXTHOP41 out
!
neighbor 2000::101 remote-as 65001
neighbor 2000::101 timers connect 5
neighbor 2000::101 advertisement-interval 1
no neighbor 2000::101 activate
!
neighbor 10.0.7.1 remote-as 65002
neighbor 10.0.7.1 ebgp-multihop
neighbor 10.0.7.1 timers connect 5
neighbor 10.0.7.1 advertisement-interval 5
neighbor 10.0.7.1 route-map NEXTHOP47 out
!
neighbor 2000::701 remote-as 65002
neighbor 2000::701 timers connect 5
neighbor 2000::701 advertisement-interval 1
no neighbor 2000::701 activate
!
network 10.1.0.0/24
network 10.1.10.0/24
network 10.2.0.0/24
network 10.2.30.0/24
network 10.2.20.0/24
network 10.2.10.0/24
network 10.2.40.0/24
network 10.3.0.0/24
network 10.3.30.0/24
network 10.3.10.0/24
network 10.3.20.0/24
network 10.0.2.0/24
network 10.1.2.0/24
network 10.0.3.0/24
network 10.0.4.0/24
!
! IPv6
!
address-family ipv6
network 1000::300/120
network 1001::300/120
network 1002::300/120
network 1003::300/120
network 1004::300/120
network 1005::300/120
network 1006::300/120
network 1007::300/120
network 1008::300/120
network 1009::300/120
network 1010::300/120
network 2000::200/120
network 2000::300/120
neighbor 2000::101 activate
neighbor 2000::101 route-map NEXTHOP61 out
neighbor 2000::701 activate
neighbor 2000::701 route-map NEXTHOP67 out
exit-address-family