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