switch(4) needs to have its interface start up delayed, otherwise the netstart script will fail to configure switch(4) with virtual interfaces like vether(4). This diff adds switch(4) to the delayed list just like bridge(4).
ok? Index: netstart =================================================================== RCS file: /home/obsdcvs/src/etc/netstart,v retrieving revision 1.170 diff -u -p -r1.170 netstart --- netstart 9 Sep 2016 19:48:16 -0000 1.170 +++ netstart 27 Sep 2016 10:04:47 -0000 @@ -251,7 +251,7 @@ fi # Configure all the non-loopback interfaces which we know about, but # do not start interfaces which must be delayed. Refer to hostname.if(5) -ifmstart "" "trunk svlan vlan carp gif gre pfsync pppoe tun bridge pflow" +ifmstart "" "trunk svlan vlan carp gif gre pfsync pppoe tun bridge pflow switch" # The trunk interfaces need to come up first in this list. # The (s)vlan interfaces need to come up after trunk. @@ -283,7 +283,7 @@ fi # require routes to be set. TUN might depend on PPPoE, and GIF or GRE may # depend on either of them. PFLOW might bind to ip addresses configured # on either of them. -ifmstart "pppoe tun gif gre bridge pflow" +ifmstart "pppoe tun gif gre bridge pflow switch" # Reject 127/8 other than 127.0.0.1. route -qn add -net 127 127.0.0.1 -reject >/dev/null
