summaryrefslogtreecommitdiffstats
path: root/tests/topotests/bgp_l3vpn_to_bgp_vrf/r1/bgpd.conf
blob: 0d652dac073967b1751e3284fb97497246c78e92 (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
73
74
75
76
77
78
79
80
frr defaults traditional

hostname r1
password zebra
log stdout notifications
log commands

log file bgpd.log

#debug bgp vpn leak-to-vrf
#debug bgp vpn leak-from-vrf
#debug bgp vpn label
#debug bgp updates out

router bgp 5226
   bgp router-id 1.1.1.1
   bgp cluster-id 1.1.1.1
   no bgp ebgp-requires-policy
   neighbor 2.2.2.2 remote-as 5226
   neighbor 2.2.2.2 update-source 1.1.1.1
   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 r1-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 101
     rd vpn export 10:1
     rt vpn both 52:100

     import vpn
     export vpn
   exit-address-family

router bgp 5227 vrf r1-cust4
   no bgp network import-check

   bgp router-id 192.168.1.1

   address-family ipv4 unicast
     network 172.16.0.0/24

     rd vpn export 10:14
     rt vpn export 52:100

     import vpn
     export vpn
   exit-address-family

router bgp 5227 vrf r1-cust5
   bgp router-id 192.168.1.1

   address-family ipv4 unicast
     network 172.16.1.1/32

     label vpn export 105
     rd vpn export 10:15
     rt vpn both 52:100

     import vpn
     export vpn
   exit-address-family