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 |
Charles Chan | c3122db | 2017-09-01 10:58:24 -0700 | [diff] [blame] | 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 |
Charles Chan | 5254b06 | 2018-12-20 03:07:11 +0000 | [diff] [blame] | 11 | ip prefix-list 1 seq 50 permit 10.5.6.0/24 |
| 12 | ip prefix-list 1 seq 60 permit 10.11.1.0/24 |
| 13 | ip prefix-list 1 seq 70 permit 10.11.2.0/24 |
Charles Chan | 6f149a9 | 2017-03-24 19:35:41 -0700 | [diff] [blame] | 14 | ! |
Charles Chan | c3122db | 2017-09-01 10:58:24 -0700 | [diff] [blame] | 15 | route-map NEXTHOP41 permit 10 |
Charles Chan | 6f149a9 | 2017-03-24 19:35:41 -0700 | [diff] [blame] | 16 | match ip address prefix-list 1 |
| 17 | set ip next-hop 10.0.1.254 |
| 18 | ! |
Charles Chan | c3122db | 2017-09-01 10:58:24 -0700 | [diff] [blame] | 19 | ! |
| 20 | route-map NEXTHOP47 permit 10 |
| 21 | match ip address prefix-list 1 |
| 22 | set ip next-hop 10.0.7.254 |
| 23 | ! |
Charles Chan | 6f149a9 | 2017-03-24 19:35:41 -0700 | [diff] [blame] | 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 |
| 30 | |
Charles Chan | 6f149a9 | 2017-03-24 19:35:41 -0700 | [diff] [blame] | 31 | ! |
Charles Chan | c3122db | 2017-09-01 10:58:24 -0700 | [diff] [blame] | 32 | route-map NEXTHOP61 permit 10 |
Charles Chan | 6f149a9 | 2017-03-24 19:35:41 -0700 | [diff] [blame] | 33 | match ipv6 address prefix-list 2 |
| 34 | set ipv6 next-hop global 2000::1ff |
| 35 | set ipv6 next-hop local 2000::1ff |
| 36 | ! |
Charles Chan | c3122db | 2017-09-01 10:58:24 -0700 | [diff] [blame] | 37 | ! |
| 38 | route-map NEXTHOP67 permit 10 |
| 39 | match ipv6 address prefix-list 2 |
| 40 | set ipv6 next-hop global 2000::7ff |
| 41 | set ipv6 next-hop local 2000::7ff |
| 42 | ! |
Charles Chan | 6f149a9 | 2017-03-24 19:35:41 -0700 | [diff] [blame] | 43 | ! Basic router config |
| 44 | ! |
Charles Chan | c3122db | 2017-09-01 10:58:24 -0700 | [diff] [blame] | 45 | router bgp 65003 |
| 46 | bgp router-id 172.16.0.3 |
Charles Chan | 6f149a9 | 2017-03-24 19:35:41 -0700 | [diff] [blame] | 47 | timers bgp 3 9 |
| 48 | ! |
| 49 | ! IPv4 |
| 50 | ! |
| 51 | neighbor 10.0.1.1 remote-as 65001 |
| 52 | neighbor 10.0.1.1 ebgp-multihop |
| 53 | neighbor 10.0.1.1 timers connect 5 |
| 54 | neighbor 10.0.1.1 advertisement-interval 5 |
Charles Chan | c3122db | 2017-09-01 10:58:24 -0700 | [diff] [blame] | 55 | neighbor 10.0.1.1 route-map NEXTHOP41 out |
Charles Chan | 6f149a9 | 2017-03-24 19:35:41 -0700 | [diff] [blame] | 56 | ! |
| 57 | neighbor 2000::101 remote-as 65001 |
| 58 | neighbor 2000::101 timers connect 5 |
| 59 | neighbor 2000::101 advertisement-interval 1 |
| 60 | no neighbor 2000::101 activate |
| 61 | ! |
Charles Chan | c3122db | 2017-09-01 10:58:24 -0700 | [diff] [blame] | 62 | neighbor 10.0.7.1 remote-as 65002 |
| 63 | neighbor 10.0.7.1 ebgp-multihop |
| 64 | neighbor 10.0.7.1 timers connect 5 |
| 65 | neighbor 10.0.7.1 advertisement-interval 5 |
| 66 | neighbor 10.0.7.1 route-map NEXTHOP47 out |
| 67 | ! |
| 68 | neighbor 2000::701 remote-as 65002 |
| 69 | neighbor 2000::701 timers connect 5 |
| 70 | neighbor 2000::701 advertisement-interval 1 |
| 71 | no neighbor 2000::701 activate |
| 72 | ! |
Charles Chan | 6f149a9 | 2017-03-24 19:35:41 -0700 | [diff] [blame] | 73 | network 10.0.2.0/24 |
Charles Chan | c3122db | 2017-09-01 10:58:24 -0700 | [diff] [blame] | 74 | network 10.1.2.0/24 |
Charles Chan | 6f149a9 | 2017-03-24 19:35:41 -0700 | [diff] [blame] | 75 | network 10.0.3.0/24 |
Yi Tseng | 9e332d8 | 2017-07-28 17:52:21 -0700 | [diff] [blame] | 76 | network 10.0.4.0/24 |
Andrea Campanella | 6d2ae8a | 2018-03-09 08:44:35 -0800 | [diff] [blame] | 77 | network 10.5.6.0/24 |
| 78 | network 10.11.1.0/24 |
| 79 | network 10.11.2.0/24 |
Charles Chan | 6f149a9 | 2017-03-24 19:35:41 -0700 | [diff] [blame] | 80 | ! |
| 81 | ! IPv6 |
| 82 | ! |
| 83 | address-family ipv6 |
| 84 | network 2000::200/120 |
| 85 | network 2000::300/120 |
Andrea Campanella | 6d2ae8a | 2018-03-09 08:44:35 -0800 | [diff] [blame] | 86 | network 2000::a00/120 |
| 87 | network 2000::b00/120 |
Charles Chan | 6f149a9 | 2017-03-24 19:35:41 -0700 | [diff] [blame] | 88 | neighbor 2000::101 activate |
Charles Chan | c3122db | 2017-09-01 10:58:24 -0700 | [diff] [blame] | 89 | neighbor 2000::101 route-map NEXTHOP61 out |
| 90 | neighbor 2000::701 activate |
| 91 | neighbor 2000::701 route-map NEXTHOP67 out |
Charles Chan | 6f149a9 | 2017-03-24 19:35:41 -0700 | [diff] [blame] | 92 | exit-address-family |