vxlan interface rc.conf configuration
James Lodge
James at Lodge.me.uk
Sat Jan 9 23:00:49 UTC 2016
>I'd appreciate some help with vxlan interface creation at boot up. I can create a vxlan interface (unicast) using >ifconfig(8) but I'm unable to work out or find the correct rc.conf syntax.
>
>I can clone the interface, but cannot configure a vni or any other parameters.
>
>This is what I have
>
>
>rc.conf
>cloned_interfaces="vxlan0"
>ifconfig_vxlan0="vxlanid 100 vxlanlocal x.x.x.x vxlanremote x.x.x.x inet x.x.x.x netmask x.x.x.x"
>
>I'm sure I'm missing something obvious, but any help gratefully received.
>
>Regards
>
>James
FYI if anyone is interested, I worked out how to create a vxlan interface in rc.conf at boot. I'll see about updating the man pages with an example as it wasn't very clear, atleast not to me! [😊]
rc.conf
create_args_vxlan0="vxlanid 100 vxlanlocal x.x.x.x vxlanremote x.x.x.x"
cloned_interfaces="vxlan0"
ifconfig_vxlan0="inet x.x.x.x netmask x.x.x.x"
Hope it helps someone else and saves them time.
Regards
James
More information about the freebsd-net
mailing list