VxLAN does not work after tunnel is changed.
There is the topology
VyOS-1 configuration:
set interfaces bridge br0 member interface eth1 set interfaces bridge br0 member interface vxlan0 set interfaces ethernet eth0 address '192.0.2.2/30' set interfaces ethernet eth0 description 'WAN' set interfaces ethernet eth1 description 'Lan' set interfaces tunnel tun0 address '10.0.0.2/24' set interfaces tunnel tun0 description 'Gretap' set interfaces tunnel tun0 encapsulation 'gretap' set interfaces tunnel tun0 mtu '1500' set interfaces tunnel tun0 multicast 'enable' set interfaces tunnel tun0 parameters ip ignore-df set interfaces tunnel tun0 parameters ip key '1' set interfaces tunnel tun0 parameters ip no-pmtu-discovery set interfaces tunnel tun0 parameters ip ttl '0' set interfaces tunnel tun0 remote '203.0.113.2' set interfaces tunnel tun0 source-address '192.0.2.2' set interfaces vxlan vxlan0 group '239.0.0.241' set interfaces vxlan vxlan0 mtu '1426' set interfaces vxlan vxlan0 port '4789' set interfaces vxlan vxlan0 source-interface 'tun0' set interfaces vxlan vxlan0 vni '123'
VyOS-2 configuration:
set interfaces bridge br0 member interface eth1 set interfaces bridge br0 member interface vxlan0 set interfaces ethernet eth0 address '203.0.113.2/30' set interfaces ethernet eth0 description 'WAN' set interfaces ethernet eth1 description 'Lan' set interfaces tunnel tun0 address '10.0.0.1/24' set interfaces tunnel tun0 encapsulation 'gretap' set interfaces tunnel tun0 mtu '1500' set interfaces tunnel tun0 multicast 'enable' set interfaces tunnel tun0 parameters ip ignore-df set interfaces tunnel tun0 parameters ip key '1' set interfaces tunnel tun0 parameters ip no-pmtu-discovery set interfaces tunnel tun0 parameters ip ttl '0' set interfaces tunnel tun0 remote '192.0.2.2' set interfaces tunnel tun0 source-address '203.0.113.2' set interfaces vxlan vxlan0 group '239.0.0.241' set interfaces vxlan vxlan0 mtu '1426' set interfaces vxlan vxlan0 port '4789' set interfaces vxlan vxlan0 source-interface 'tun0' set interfaces vxlan vxlan0 vni '123'
Ping from cl-left => cl-right
vyos@c-left:~$ ping 100.64.0.2 count 1 PING 100.64.0.2 (100.64.0.2) 56(84) bytes of data. 64 bytes from 100.64.0.2: icmp_seq=1 ttl=64 time=1.57 ms --- 100.64.0.2 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 1.565/1.565/1.565/0.000 ms vyos@c-left:~$
Delete key from tunnel tun0 on both routers or add tunnel key if it doesn't exist on both routers
delete interfaces tunnel tun0 parameters ip key commit
After this VxLAN does not work, the same ping from cl-left
vyos@c-left:~$ ping 100.64.0.2 count 1 PING 100.64.0.2 (100.64.0.2) 56(84) bytes of data. --- 100.64.0.2 ping statistics --- 1 packets transmitted, 0 received, 100% packet loss, time 0ms vyos@c-left:~$
And GRE tunnels can ping each other at the same time without any issues. VxLAN does not work.
After rebooting routers, it works again.
NOTE after changing GRE key, VxLAN interface deleted for some reason
vyos@R1# show interfaces vxlan vxlan vxlan0 { group 239.0.0.241 mtu 1426 port 4789 source-interface tun0 vni 123 } [edit] vyos@R1# sudo ip link show type vxlan [edit] vyos@R1# `