vxlan(4) man page - vxlan interface creation at boot via rc.conf(5) example added

James Lodge James at Lodge.me.uk
Thu Jan 14 18:55:16 UTC 2016


First patch of any kind, hopefully it is formatted correctly and appropriate. Reason for additional example in vxlan(4) is I struggled to workout how to create a vxlan interface via rc.conf(5). Hopefully it will help others if accepted.


--- vxlan.4.orig        2016-01-14 17:23:30.189282000 +0000
+++ vxlan.4     2016-01-14 18:05:12.401741000 +0000
@@ -214,6 +214,25 @@
 .Nm
 interface can be configured with
 .Xr ifconfig 8 .
+.Pp
+Create a
+.Cm vxlan
+interface at boot via
+.Xr rc.conf 5 .
+.Cm vxlan
+interface in unicast mode
+with the
+.Cm vxlanlocal
+tunnel address of 192.168.100.1,
+and the
+.Cm vxlanremote
+tunnel address of 192.168.200.1.
+.Cm vxlan
+interface is configured (optional) with a static IP address providing L3 connectivity between hosts.
+.Bd -literal -offset indent
+create_args_vxlan0="vxlanid 100 vxlanlocal 192.168.100.1 vxlanremote 192.168.200.1"
+cloned_interfaces="vxlan0"
+ifconfig_vxlan0="inet 10.10.10.1 netmask 255.255.255.0"
 .Sh SEE ALSO
 .Xr inet 4 ,
 .Xr inet6 4 ,

Regards
James



More information about the freebsd-doc mailing list