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