summaryrefslogtreecommitdiffstats
path: root/tests/topotests/bgp_l3vpn_to_bgp_vrf/r4/bgpd.conf
blob: ca9e62717259c89b613a9ab10ac835db2e057c7e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
frr defaults traditional

hostname r4
password zebra
log stdout notifications
log commands
log file bgpd.log debug

#debug bgp vpn label
#debug bgp nht
#debug bgp zebra

router bgp 5226
   bgp router-id 4.4.4.4
   bgp cluster-id 4.4.4.4
   no bgp ebgp-requires-policy
   neighbor 2.2.2.2 remote-as 5226
   neighbor 2.2.2.2 update-source 4.4.4.4
   neighbor 2.2.2.2 timers 3 10

   address-family ipv4 unicast
     no neighbor 2.2.2.2 activate
   exit-address-family

   address-family ipv4 vpn
     neighbor 2.2.2.2 activate
   exit-address-family

router bgp 5227 vrf r4-cust1

   bgp router-id 192.168.1.1
   no bgp ebgp-requires-policy

   neighbor 192.168.1.2 remote-as 5227
   neighbor 192.168.1.2 update-source 192.168.1.1
   neighbor 192.168.1.2 timers 3 10

   address-family ipv4 unicast
     neighbor 192.168.1.2 activate
     neighbor 192.168.1.2 next-hop-self

     label vpn export 1041
     rd vpn export 10:41
     rt vpn both 52:100

     import vpn
     export vpn
   exit-address-family

router bgp 5228 vrf r4-cust2

   bgp router-id 192.168.2.1
   no bgp ebgp-requires-policy

   neighbor 192.168.2.2 remote-as 5228
   neighbor 192.168.2.2 update-source 192.168.2.1
   neighbor 192.168.2.2 timers 3 10

   address-family ipv4 unicast
     neighbor 192.168.2.2 activate
     neighbor 192.168.2.2 next-hop-self

     label vpn export 1042
     rd vpn export 10:42
     # note RT same as r4-cust1 for inter-vrf route leaking
     rt vpn both 52:100

     import vpn
     export vpn
   exit-address-family

end