After reading various posts on the forum, I have noticed that my vxlan device is missing despite having
-
created a vxlan interface using luci
-
created a bridge device bridging one ethernet adapter to the vxlan interface name using luci
-
created an interface for the bridge device using luci
-
created an interface for the vxlan to bind to using luci
/etc/config/network:
config interface 'vxlan100'
option proto 'vxlan'
option peeraddr '192.168.3.2'
option ipaddr '192.168.3.1'
option port '4789'
option learning '0'
option vid '100'
option tunlink 'vxlan'
config device
option name 'br-vlan'
option type 'bridge'
list ports 'lan2'
list ports 'vxlan100'
config interface 'vlan'
option proto 'static'
option device 'br-vlan'
option ipaddr '192.168.3.1'
option netmask '255.255.255.0'
config interface 'vxlan'
option proto 'static'
option device 'lan0'
option ipaddr '192.168.2.1'
option netmask '255.255.255.0'
ip -d addr did not show a vxlan device.
EDIT:
Based on Make config change -> vxlan adapter vanishes - Installing and Using OpenWrt - OpenWrt Forum, UCI no longer supports vxlan parameters. I have tried the ip link add command similar to the one in that post but I got an error Unknown device type.
Command:
ip link add "vxlan100" type vxlan id "100" dev "lan0" remote "192.168.3.2" local "192.168.3.1" dstport 4789