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