Charles Chan | c3122db | 2017-09-01 10:58:24 -0700 | [diff] [blame] | 1 | log file /var/log/quagga/bgpdbgp2.log |
| 2 | hostname bgp2 |
| 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.1.2.0/24 |
| 9 | ip prefix-list 1 seq 30 permit 10.0.3.0/24 |
| 10 | ip prefix-list 1 seq 40 permit 10.0.4.0/24 |
Andrea Campanella | 6d2ae8a | 2018-03-09 08:44:35 -0800 | [diff] [blame^] | 11 | ip prefix-list 1 seq 40 permit 10.5.6.0/24 |
| 12 | ip prefix-list 1 seq 50 permit 10.11.1.0/24 |
| 13 | ip prefix-list 1 seq 60 permit 10.11.2.0/24 |
Charles Chan | c3122db | 2017-09-01 10:58:24 -0700 | [diff] [blame] | 14 | ! |
| 15 | route-map NEXTHOP45 permit 10 |
| 16 | match ip address prefix-list 1 |
| 17 | set ip next-hop 10.0.5.254 |
| 18 | ! |
| 19 | ! |
| 20 | route-map NEXTHOP46 permit 10 |
| 21 | match ip address prefix-list 1 |
| 22 | set ip next-hop 10.0.6.254 |
| 23 | ! |
| 24 | ! Different next hop for IPv6 |
| 25 | ! |
| 26 | ipv6 prefix-list 2 seq 10 permit 2000::200/120 |
| 27 | ipv6 prefix-list 2 seq 20 permit 2000::300/120 |
Andrea Campanella | 6d2ae8a | 2018-03-09 08:44:35 -0800 | [diff] [blame^] | 28 | ipv6 prefix-list 2 seq 30 permit 2000::a00/120 |
| 29 | ipv6 prefix-list 2 seq 40 permit 2000::b00/120 |
Charles Chan | c3122db | 2017-09-01 10:58:24 -0700 | [diff] [blame] | 30 | ! |
| 31 | route-map NEXTHOP65 permit 10 |
| 32 | match ipv6 address prefix-list 2 |
| 33 | set ipv6 next-hop global 2000::5ff |
| 34 | set ipv6 next-hop local 2000::5ff |
| 35 | ! |
| 36 | ! |
| 37 | route-map NEXTHOP66 permit 10 |
| 38 | match ipv6 address prefix-list 2 |
| 39 | set ipv6 next-hop global 2000::6ff |
| 40 | set ipv6 next-hop local 2000::6ff |
| 41 | ! |
| 42 | ! Basic router config |
| 43 | ! |
| 44 | router bgp 65003 |
| 45 | bgp router-id 172.16.0.4 |
| 46 | timers bgp 3 9 |
| 47 | ! |
| 48 | ! IPv4 |
| 49 | ! |
| 50 | neighbor 10.0.5.1 remote-as 65001 |
| 51 | neighbor 10.0.5.1 ebgp-multihop |
| 52 | neighbor 10.0.5.1 timers connect 5 |
| 53 | neighbor 10.0.5.1 advertisement-interval 5 |
| 54 | neighbor 10.0.5.1 route-map NEXTHOP45 out |
| 55 | ! |
| 56 | neighbor 2000::501 remote-as 65001 |
| 57 | neighbor 2000::501 timers connect 5 |
| 58 | neighbor 2000::501 advertisement-interval 1 |
| 59 | no neighbor 2000::501 activate |
| 60 | ! |
| 61 | neighbor 10.0.6.1 remote-as 65002 |
| 62 | neighbor 10.0.6.1 ebgp-multihop |
| 63 | neighbor 10.0.6.1 timers connect 5 |
| 64 | neighbor 10.0.6.1 advertisement-interval 5 |
| 65 | neighbor 10.0.6.1 route-map NEXTHOP46 out |
| 66 | ! |
| 67 | neighbor 2000::601 remote-as 65002 |
| 68 | neighbor 2000::601 timers connect 5 |
| 69 | neighbor 2000::601 advertisement-interval 1 |
| 70 | no neighbor 2000::601 activate |
| 71 | ! |
| 72 | network 10.0.2.0/24 |
| 73 | network 10.1.2.0/24 |
| 74 | network 10.0.3.0/24 |
| 75 | network 10.0.4.0/24 |
Andrea Campanella | 6d2ae8a | 2018-03-09 08:44:35 -0800 | [diff] [blame^] | 76 | network 10.5.6.0/24 |
| 77 | network 10.11.1.0/24 |
| 78 | network 10.11.2.0/24 |
Charles Chan | c3122db | 2017-09-01 10:58:24 -0700 | [diff] [blame] | 79 | ! |
| 80 | ! IPv6 |
| 81 | ! |
| 82 | address-family ipv6 |
| 83 | network 2000::200/120 |
| 84 | network 2000::300/120 |
Andrea Campanella | 6d2ae8a | 2018-03-09 08:44:35 -0800 | [diff] [blame^] | 85 | network 2000::a00/120 |
| 86 | network 2000::b00/120 |
Charles Chan | c3122db | 2017-09-01 10:58:24 -0700 | [diff] [blame] | 87 | neighbor 2000::501 activate |
| 88 | neighbor 2000::501 route-map NEXTHOP65 out |
| 89 | neighbor 2000::601 activate |
| 90 | neighbor 2000::601 route-map NEXTHOP66 out |
| 91 | exit-address-family |