blob: 383460c09ba6ea4b58ae409115263f09d8de420d [file] [log] [blame]
Charles Chan6f149a92017-03-24 19:35:41 -07001log file /var/log/quagga/bgpdbgp1.log
2hostname bgp1
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.0.3.0/24
9!
10route-map NEXTHOP4 permit 10
11match ip address prefix-list 1
12set ip next-hop 10.0.1.254
13!
14! Different next hop for IPv6
15!
16ipv6 prefix-list 2 seq 10 permit 2000::200/120
17ipv6 prefix-list 2 seq 20 permit 2000::300/120
18!
19route-map NEXTHOP6 permit 10
20match ipv6 address prefix-list 2
21set ipv6 next-hop global 2000::1ff
22set ipv6 next-hop local 2000::1ff
23!
24! Basic router config
25!
26router bgp 65002
27bgp router-id 10.0.1.2
28timers bgp 3 9
29!
30! IPv4
31!
32neighbor 10.0.1.1 remote-as 65001
33neighbor 10.0.1.1 ebgp-multihop
34neighbor 10.0.1.1 timers connect 5
35neighbor 10.0.1.1 advertisement-interval 5
36neighbor 10.0.1.1 route-map NEXTHOP4 out
37!
38neighbor 2000::101 remote-as 65001
39neighbor 2000::101 timers connect 5
40neighbor 2000::101 advertisement-interval 1
41no neighbor 2000::101 activate
42!
43network 10.0.2.0/24
44network 10.0.3.0/24
45!
46! IPv6
47!
48address-family ipv6
49network 2000::200/120
50network 2000::300/120
51neighbor 2000::101 activate
52neighbor 2000::101 route-map NEXTHOP6 out
53exit-address-family