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