blob: 0bb4b7cab52878b8b5ef1d81063b9b1d727b21f0 (
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
|
! debug zebra vxlan
! debug bgp neighbor-events
! debug bgp updates
! debug bgp zebra
vrf r2-vrf-101
vni 101
exit-vrf
!
interface loop101 vrf r2-vrf-101
ip address 192.168.101.41/32
ipv6 address fd00::2/128
!
interface r2-eth0
ip address 192.168.100.41/24
!
router bgp 65000
bgp router-id 192.168.100.41
bgp log-neighbor-changes
no bgp default ipv4-unicast
neighbor 192.168.100.21 peer-group
neighbor 192.168.100.21 remote-as 65000
neighbor 192.168.100.21 capability extended-nexthop
!
address-family l2vpn evpn
neighbor 192.168.100.21 activate
advertise-all-vni
exit-address-family
!
router bgp 65000 vrf r2-vrf-101
bgp router-id 192.168.101.41
bgp log-neighbor-changes
no bgp network import-check
address-family ipv4 unicast
network 192.168.101.41/32
network 192.168.102.41/32
exit-address-family
address-family ipv6 unicast
network fd00::2/128
network fd00::3/128
exit-address-family
address-family l2vpn evpn
rd 65000:201
route-target both 65:101
advertise ipv4 unicast route-map rmap4
advertise ipv6 unicast route-map rmap6
exit-address-family
!
access-list acl4_1 seq 10 permit 192.168.101.41/32
access-list acl4_2 seq 10 permit 192.168.102.41/32
ipv6 access-list acl6_1 seq 10 permit fd00::2/128
ipv6 access-list acl6_2 seq 10 permit fd00::3/128
route-map rmap4 permit 1
match ip address acl4_1
exit
route-map rmap4 deny 2
match ip address acl4_2
exit
route-map rmap6 permit 1
match ipv6 address acl6_1
exit
route-map rmap6 deny 2
match ipv6 address acl6_2
exit
|