Andreas Pantelopoulos | 971c91d | 2018-02-12 11:28:10 -0800 | [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 |
| 11 | |
| 12 | ip prefix-list 1 seq 50 permit 10.1.0.0/24 |
| 13 | ip prefix-list 1 seq 60 permit 10.1.10.0/24 |
| 14 | ip prefix-list 1 seq 70 permit 10.2.0.0/24 |
| 15 | ip prefix-list 1 seq 80 permit 10.2.30.0/24 |
| 16 | ip prefix-list 1 seq 90 permit 10.2.20.0/24 |
| 17 | ip prefix-list 1 seq 100 permit 10.2.10.0/24 |
| 18 | ip prefix-list 1 seq 110 permit 10.2.40.0/24 |
| 19 | ip prefix-list 1 seq 120 permit 10.3.0.0/24 |
| 20 | ip prefix-list 1 seq 130 permit 10.3.30.0/24 |
| 21 | ip prefix-list 1 seq 140 permit 10.3.10.0/24 |
| 22 | ip prefix-list 1 seq 150 permit 10.3.20.0/24 |
Andreas Pantelopoulos | d5d470f | 2018-03-23 18:02:47 -0700 | [diff] [blame^] | 23 | ip prefix-list 1 seq 160 permit 10.5.10.0/24 |
| 24 | ip prefix-list 1 seq 170 permit 10.5.20.0/24 |
Andreas Pantelopoulos | 971c91d | 2018-02-12 11:28:10 -0800 | [diff] [blame] | 25 | |
| 26 | ! |
| 27 | route-map NEXTHOP45 permit 10 |
| 28 | match ip address prefix-list 1 |
| 29 | set ip next-hop 10.0.5.254 |
| 30 | ! |
| 31 | ! |
| 32 | route-map NEXTHOP46 permit 10 |
| 33 | match ip address prefix-list 1 |
| 34 | set ip next-hop 10.0.6.254 |
| 35 | ! |
| 36 | ! Different next hop for IPv6 |
| 37 | ! |
| 38 | ipv6 prefix-list 2 seq 10 permit 2000::200/120 |
| 39 | ipv6 prefix-list 2 seq 20 permit 2000::300/120 |
Andreas Pantelopoulos | 1b91b35 | 2018-02-19 14:30:52 -0800 | [diff] [blame] | 40 | |
| 41 | ipv6 prefix-list 2 seq 30 permit 1000::300/120 |
| 42 | ipv6 prefix-list 2 seq 40 permit 1001::300/120 |
| 43 | ipv6 prefix-list 2 seq 50 permit 1002::300/120 |
| 44 | ipv6 prefix-list 2 seq 60 permit 1003::300/120 |
| 45 | ipv6 prefix-list 2 seq 70 permit 1004::300/120 |
| 46 | ipv6 prefix-list 2 seq 80 permit 1005::300/120 |
| 47 | ipv6 prefix-list 2 seq 90 permit 1006::300/120 |
| 48 | ipv6 prefix-list 2 seq 100 permit 1007::300/120 |
| 49 | ipv6 prefix-list 2 seq 110 permit 1008::300/120 |
| 50 | ipv6 prefix-list 2 seq 120 permit 1009::300/120 |
| 51 | ipv6 prefix-list 2 seq 130 permit 1010::300/120 |
Andreas Pantelopoulos | d5d470f | 2018-03-23 18:02:47 -0700 | [diff] [blame^] | 52 | ipv6 prefix-list 2 seq 140 permit 1011::300/120 |
| 53 | ipv6 prefix-list 2 seq 150 permit 1012::300/120 |
Andreas Pantelopoulos | 1b91b35 | 2018-02-19 14:30:52 -0800 | [diff] [blame] | 54 | ! |
| 55 | |
Andreas Pantelopoulos | 971c91d | 2018-02-12 11:28:10 -0800 | [diff] [blame] | 56 | ! |
| 57 | route-map NEXTHOP65 permit 10 |
| 58 | match ipv6 address prefix-list 2 |
| 59 | set ipv6 next-hop global 2000::5ff |
| 60 | set ipv6 next-hop local 2000::5ff |
| 61 | ! |
| 62 | ! |
| 63 | route-map NEXTHOP66 permit 10 |
| 64 | match ipv6 address prefix-list 2 |
| 65 | set ipv6 next-hop global 2000::6ff |
| 66 | set ipv6 next-hop local 2000::6ff |
| 67 | ! |
| 68 | ! Basic router config |
| 69 | ! |
| 70 | router bgp 65003 |
| 71 | bgp router-id 172.16.0.4 |
| 72 | timers bgp 3 9 |
| 73 | ! |
| 74 | ! IPv4 |
| 75 | ! |
| 76 | neighbor 10.0.5.1 remote-as 65001 |
| 77 | neighbor 10.0.5.1 ebgp-multihop |
| 78 | neighbor 10.0.5.1 timers connect 5 |
| 79 | neighbor 10.0.5.1 advertisement-interval 5 |
| 80 | neighbor 10.0.5.1 route-map NEXTHOP45 out |
| 81 | ! |
| 82 | neighbor 2000::501 remote-as 65001 |
| 83 | neighbor 2000::501 timers connect 5 |
| 84 | neighbor 2000::501 advertisement-interval 1 |
| 85 | no neighbor 2000::501 activate |
| 86 | ! |
| 87 | neighbor 10.0.6.1 remote-as 65002 |
| 88 | neighbor 10.0.6.1 ebgp-multihop |
| 89 | neighbor 10.0.6.1 timers connect 5 |
| 90 | neighbor 10.0.6.1 advertisement-interval 5 |
| 91 | neighbor 10.0.6.1 route-map NEXTHOP46 out |
| 92 | ! |
| 93 | neighbor 2000::601 remote-as 65002 |
| 94 | neighbor 2000::601 timers connect 5 |
| 95 | neighbor 2000::601 advertisement-interval 1 |
| 96 | no neighbor 2000::601 activate |
| 97 | ! |
| 98 | |
| 99 | network 10.1.0.0/24 |
| 100 | network 10.1.10.0/24 |
| 101 | network 10.2.0.0/24 |
| 102 | network 10.2.30.0/24 |
| 103 | network 10.2.20.0/24 |
| 104 | network 10.2.10.0/24 |
| 105 | network 10.2.40.0/24 |
| 106 | network 10.3.0.0/24 |
| 107 | network 10.3.30.0/24 |
| 108 | network 10.3.10.0/24 |
| 109 | network 10.3.20.0/24 |
Andreas Pantelopoulos | d5d470f | 2018-03-23 18:02:47 -0700 | [diff] [blame^] | 110 | network 10.5.10.0/24 |
| 111 | network 10.5.20.0/24 |
Andreas Pantelopoulos | 971c91d | 2018-02-12 11:28:10 -0800 | [diff] [blame] | 112 | |
| 113 | network 10.1.0.0/24 |
| 114 | network 10.0.2.0/24 |
| 115 | network 10.1.2.0/24 |
| 116 | network 10.0.3.0/24 |
| 117 | network 10.0.4.0/24 |
| 118 | ! |
| 119 | ! IPv6 |
| 120 | ! |
| 121 | address-family ipv6 |
Andreas Pantelopoulos | 1b91b35 | 2018-02-19 14:30:52 -0800 | [diff] [blame] | 122 | |
| 123 | network 1000::300/120 |
| 124 | network 1001::300/120 |
| 125 | network 1002::300/120 |
| 126 | network 1003::300/120 |
| 127 | network 1004::300/120 |
| 128 | network 1005::300/120 |
| 129 | network 1006::300/120 |
| 130 | network 1007::300/120 |
| 131 | network 1008::300/120 |
| 132 | network 1009::300/120 |
| 133 | network 1010::300/120 |
Andreas Pantelopoulos | d5d470f | 2018-03-23 18:02:47 -0700 | [diff] [blame^] | 134 | network 1011::300/120 |
| 135 | network 1012::300/120 |
Andreas Pantelopoulos | 1b91b35 | 2018-02-19 14:30:52 -0800 | [diff] [blame] | 136 | |
Andreas Pantelopoulos | 971c91d | 2018-02-12 11:28:10 -0800 | [diff] [blame] | 137 | network 2000::200/120 |
| 138 | network 2000::300/120 |
| 139 | neighbor 2000::501 activate |
| 140 | neighbor 2000::501 route-map NEXTHOP65 out |
| 141 | neighbor 2000::601 activate |
| 142 | neighbor 2000::601 route-map NEXTHOP66 out |
| 143 | exit-address-family |