Charles Chan | 6f149a9 | 2017-03-24 19:35:41 -0700 | [diff] [blame^] | 1 | log file /var/log/quagga/bgpdbgp1.log |
| 2 | hostname bgp1 |
| 3 | password quagga |
| 4 | ! |
| 5 | ! Different next hop for IPv4 |
| 6 | ! |
| 7 | ip prefix-list 1 seq 10 permit 10.0.2.0/24 |
| 8 | ip prefix-list 1 seq 20 permit 10.0.3.0/24 |
| 9 | ! |
| 10 | route-map NEXTHOP4 permit 10 |
| 11 | match ip address prefix-list 1 |
| 12 | set ip next-hop 10.0.1.254 |
| 13 | ! |
| 14 | ! Different next hop for IPv6 |
| 15 | ! |
| 16 | ipv6 prefix-list 2 seq 10 permit 2000::200/120 |
| 17 | ipv6 prefix-list 2 seq 20 permit 2000::300/120 |
| 18 | ! |
| 19 | route-map NEXTHOP6 permit 10 |
| 20 | match ipv6 address prefix-list 2 |
| 21 | set ipv6 next-hop global 2000::1ff |
| 22 | set ipv6 next-hop local 2000::1ff |
| 23 | ! |
| 24 | ! Basic router config |
| 25 | ! |
| 26 | router bgp 65002 |
| 27 | bgp router-id 10.0.1.2 |
| 28 | timers bgp 3 9 |
| 29 | ! |
| 30 | ! IPv4 |
| 31 | ! |
| 32 | neighbor 10.0.1.1 remote-as 65001 |
| 33 | neighbor 10.0.1.1 ebgp-multihop |
| 34 | neighbor 10.0.1.1 timers connect 5 |
| 35 | neighbor 10.0.1.1 advertisement-interval 5 |
| 36 | neighbor 10.0.1.1 route-map NEXTHOP4 out |
| 37 | ! |
| 38 | neighbor 2000::101 remote-as 65001 |
| 39 | neighbor 2000::101 timers connect 5 |
| 40 | neighbor 2000::101 advertisement-interval 1 |
| 41 | no neighbor 2000::101 activate |
| 42 | ! |
| 43 | network 10.0.2.0/24 |
| 44 | network 10.0.3.0/24 |
| 45 | ! |
| 46 | ! IPv6 |
| 47 | ! |
| 48 | address-family ipv6 |
| 49 | network 2000::200/120 |
| 50 | network 2000::300/120 |
| 51 | neighbor 2000::101 activate |
| 52 | neighbor 2000::101 route-map NEXTHOP6 out |
| 53 | exit-address-family |