Index: current.html =================================================================== RCS file: /cvs/www/faq/current.html,v retrieving revision 1.832 diff -u -p -r1.832 current.html --- current.html 22 Jun 2017 16:16:56 -0000 1.832 +++ current.html 29 Jun 2017 03:30:02 -0000 @@ -221,7 +221,79 @@ Developers can deactivate the kernel rel kernels with cp obj/bsd /bsd and reactivate the automatic process using make install. +

2017/06/29 - vlan(4)/svlan(4) ifconfig(8) changes

+ +The +vlan(4) and +svlan(4) +specific configuration options in +ifconfig(8) +and +hostname.if(5) +have been deprecated in favour of the generic parent and +vnetid handling. +

+The vlan, vlandev, and -vlandev options +are now deprecated in favour of vnetid, -vnetid, +parent, and -parent when using ifconfig(8) or +in hostname.if(8) configuration files. +Use of the vlan option must be replaced with vnetid. +Because VLAN tag 0 is invalid according to the relevant VLAN +specifications, the vnetid option does not accept 0 as a +valid network identifier. +To use VLAN tag 0 on the wire the vnetid can be unconfigured with +-vnetid. +Use of vlandev and -vlandev must be replaced with +parent and -parent respectively. + +

+Unlike vlan and vlandev, vnetid and +parent do not implicitely bring the vlan interface up. +Similarly, the vlan option is no longer implied by the +interfaces minor when it is not explicitely set. + +

+ifconfig(8) +no longer outputs a vlan specific status line, or separate vnetid +and parent lines. +The vnetid and parent lines have been merged into a single encap +line containing the VLAN tag and parent information. + +

An example of the changes to a vlan(4) configuration file and +the ifconfig(8) output is below. Before the changes: + +

+# cat /etc/hostname.vlan7
+vlandev em0 # vlan 7 and up are implied
+lladdr random
+# ifconfig vlan7
+vlan7: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
+        lladdr 70:a7:3a:75:da:2d
+	index 7 priority 0 llprio 3
+	vlan: 7 parent interface: em0
+	vnetid: 7
+	parent: em0
+	status: active
+
+ +

+After the changes: + +

+# cat /etc/hostname.vlan7
+vnetid 7 parent em0
+up
+lladdr random
+# ifconfig vlan7
+vlan7: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
+        lladdr 60:e8:d7:0d:10:6d
+        index 7 priority 0 llprio 3
+        encap: vnetid 7 parent: em0
+        groups: vlan
+        status: active
+
+
$OpenBSD: current.html,v 1.832 2017/06/22 16:16:56 tj Exp $