FRRouting / frr

The FRRouting Protocol Suite
https://frrouting.org/
Other
3.19k stars 1.23k forks source link

BGP L2VPN EVPN mac addresses not learned/resolved for VNI #11963

Open asterix11 opened 1 year ago

asterix11 commented 1 year ago

When creating a VXLAN interface using (for example) ID 100 with an IP address assigned, the command show evpn mac vni 100 should display a MAC address as in Version 7.5.1 on Debian 10.9. This is not the case and there is also no type 2 entry in the show bgp l2vpn evpn table. This leads to unreachability on the VXLAN "Destination Host unreachable" when pinging, due to the unresolved MAC address.

Important: Using the same configuration, there is already a system running on Version 7.5.1 and Debian 10.9 which returns the output in section Expected behavior. So in general this should work, if there are no significant changes on FRR since then. Please take this into account.

To Reproduce

  1. Install Debian 11.5
  2. Install FRR 8.3.1 from the FRR repo
  3. Configure like described in section Configuration.

Expected behavior When issuing the command show evpn mac vni 100:

# show evpn mac vni 100
Number of MACs (local and remote) known for this VNI: 1
Flags: N=sync-neighs, I=local-inactive, P=peer-active, X=peer-proxy
MAC               Type   Flags Intf/Remote ES/VTEP            VLAN  Seq #'s
f6:58:fe:a2:d6:e7 local        vmbr100                        1     0/0

Screenshots

N/A

Configuration

Node 1:

Interfaces:

auto lo
iface lo inet loopback
iface lo inet static
  address 10.0.255.253/32

auto ens19
iface ens19 inet static
  address 10.0.0.254/24

auto vxlan100
iface vxlan100 inet manual
  pre-up ip link add vxlan100 type vxlan id 100 dstport 4789 local 10.0.255.253 nolearning
  up ip link set up dev vxlan100
  post-down ip link del dev vxlan100

auto vmbr10
iface vmbr100 inet static
  address 172.16.0.253/24
  bridge-stp off
  bridge-fd 0
  bridge-ports vxlan100

FRR:

frr version 8.3.1
frr defaults traditional
hostname rr1
log syslog informational
no ipv6 forwarding
service integrated-vtysh-config
!
interface ens19
 ip ospf area 0
 ip ospf cost 1
 ip ospf dead-interval 3
 ip ospf hello-interval 1
exit
!
interface lo
 ip ospf area 0
exit
!
router bgp 65000
 bgp router-id 10.0.255.253
 no bgp suppress-duplicates
 no bgp hard-administrative-reset
 no bgp default ipv4-unicast
 no bgp graceful-restart notification
 bgp bestpath as-path multipath-relax
 bgp bestpath compare-routerid
 neighbor fabric peer-group
 neighbor fabric remote-as internal
 neighbor fabric capability extended-nexthop
 neighbor ens19 interface peer-group fabric
 !
 address-family l2vpn evpn
  neighbor fabric activate
  neighbor fabric route-reflector-client
  neighbor fabric next-hop-self
  advertise-all-vni
 exit-address-family
exit
!
router ospf
exit
!

Node 2:

Interfaces:

auto lo
iface lo inet loopback
iface lo inet static
  address 10.0.255.1/32

auto ens19
iface ens19 inet static
  address 10.0.0.1/24

auto vxlan100
iface vxlan100 inet manual
  pre-up ip link add vxlan100 type vxlan id 100 dstport 4789 local 10.0.255.1 nolearning
  up ip link set up dev vxlan100
  post-down ip link del dev vxlan100

auto vmbr100
iface vmbr100 inet static
  address 172.16.0.1/24
  bridge-stp off
  bridge-fd 0
  bridge-ports vxlan100

FRR:

frr version 8.3.1
frr defaults traditional
hostname l1
log syslog informational
no ipv6 forwarding
service integrated-vtysh-config
!
interface ens19
 ip ospf area 0
 ip ospf cost 1
 ip ospf dead-interval 3
 ip ospf hello-interval 1
exit
!
interface lo
 ip ospf area 0
exit
!
router bgp 65000
 bgp router-id 10.0.255.1
 no bgp suppress-duplicates
 no bgp hard-administrative-reset
 no bgp default ipv4-unicast
 no bgp graceful-restart notification
 bgp bestpath as-path multipath-relax
 bgp bestpath compare-routerid
 neighbor fabric peer-group
 neighbor fabric remote-as internal
 neighbor fabric capability extended-nexthop
 neighbor ens19 interface peer-group fabric
 !
 address-family l2vpn evpn
  neighbor fabric activate
  neighbor fabric route-reflector-client
  neighbor fabric next-hop-self
  advertise-all-vni
 exit-address-family
exit
!
router ospf
exit
!

Versions

asterix11 commented 1 year ago

advertise-svi-ip solved the issue maybe. Can you describe, why this wasn't needed in 7.5.1?

github-actions[bot] commented 1 year ago

This issue is stale because it has been open 180 days with no activity. Comment or remove the autoclose label in order to avoid having this issue closed.

frrbot[bot] commented 1 year ago

This issue will be automatically closed in the specified period unless there is further activity.