blob: 0c33b825c4753ea8ac40d7fd45801541251ce515 [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
Charles Chanc3122db2017-09-01 10:58:24 -07008ip 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
Charles Chan5254b062018-12-20 03:07:11 +000011ip prefix-list 1 seq 50 permit 10.5.6.0/24
12ip prefix-list 1 seq 60 permit 10.11.1.0/24
13ip prefix-list 1 seq 70 permit 10.11.2.0/24
Charles Chan6f149a92017-03-24 19:35:41 -070014!
Charles Chanc3122db2017-09-01 10:58:24 -070015route-map NEXTHOP41 permit 10
Charles Chan6f149a92017-03-24 19:35:41 -070016match ip address prefix-list 1
17set ip next-hop 10.0.1.254
18!
Charles Chanc3122db2017-09-01 10:58:24 -070019!
20route-map NEXTHOP47 permit 10
21match ip address prefix-list 1
22set ip next-hop 10.0.7.254
23!
Charles Chan6f149a92017-03-24 19:35:41 -070024! 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
30
Charles Chan6f149a92017-03-24 19:35:41 -070031!
Charles Chanc3122db2017-09-01 10:58:24 -070032route-map NEXTHOP61 permit 10
Charles Chan6f149a92017-03-24 19:35:41 -070033match ipv6 address prefix-list 2
34set ipv6 next-hop global 2000::1ff
35set ipv6 next-hop local 2000::1ff
36!
Charles Chanc3122db2017-09-01 10:58:24 -070037!
38route-map NEXTHOP67 permit 10
39match ipv6 address prefix-list 2
40set ipv6 next-hop global 2000::7ff
41set ipv6 next-hop local 2000::7ff
42!
Charles Chan6f149a92017-03-24 19:35:41 -070043! Basic router config
44!
Charles Chanc3122db2017-09-01 10:58:24 -070045router bgp 65003
46bgp router-id 172.16.0.3
Charles Chan6f149a92017-03-24 19:35:41 -070047timers bgp 3 9
48!
49! IPv4
50!
51neighbor 10.0.1.1 remote-as 65001
52neighbor 10.0.1.1 ebgp-multihop
53neighbor 10.0.1.1 timers connect 5
54neighbor 10.0.1.1 advertisement-interval 5
Charles Chanc3122db2017-09-01 10:58:24 -070055neighbor 10.0.1.1 route-map NEXTHOP41 out
Charles Chan6f149a92017-03-24 19:35:41 -070056!
57neighbor 2000::101 remote-as 65001
58neighbor 2000::101 timers connect 5
59neighbor 2000::101 advertisement-interval 1
60no neighbor 2000::101 activate
61!
Charles Chanc3122db2017-09-01 10:58:24 -070062neighbor 10.0.7.1 remote-as 65002
63neighbor 10.0.7.1 ebgp-multihop
64neighbor 10.0.7.1 timers connect 5
65neighbor 10.0.7.1 advertisement-interval 5
66neighbor 10.0.7.1 route-map NEXTHOP47 out
67!
68neighbor 2000::701 remote-as 65002
69neighbor 2000::701 timers connect 5
70neighbor 2000::701 advertisement-interval 1
71no neighbor 2000::701 activate
72!
Charles Chan6f149a92017-03-24 19:35:41 -070073network 10.0.2.0/24
Charles Chanc3122db2017-09-01 10:58:24 -070074network 10.1.2.0/24
Charles Chan6f149a92017-03-24 19:35:41 -070075network 10.0.3.0/24
Yi Tseng9e332d82017-07-28 17:52:21 -070076network 10.0.4.0/24
Andrea Campanella6d2ae8a2018-03-09 08:44:35 -080077network 10.5.6.0/24
78network 10.11.1.0/24
79network 10.11.2.0/24
Charles Chan6f149a92017-03-24 19:35:41 -070080!
81! IPv6
82!
83address-family ipv6
84network 2000::200/120
85network 2000::300/120
Andrea Campanella6d2ae8a2018-03-09 08:44:35 -080086network 2000::a00/120
87network 2000::b00/120
Charles Chan6f149a92017-03-24 19:35:41 -070088neighbor 2000::101 activate
Charles Chanc3122db2017-09-01 10:58:24 -070089neighbor 2000::101 route-map NEXTHOP61 out
90neighbor 2000::701 activate
91neighbor 2000::701 route-map NEXTHOP67 out
Charles Chan6f149a92017-03-24 19:35:41 -070092exit-address-family