Solved Bring up interface with no IP addresses assigned (for VLAN-tagged sub-interfaces)

Though obvious in retrospect, how to bring up a "master" interface through /etc/rc.conf without an IP address assigned was not easy to find.

The application is when all traffic through the interface is to be VLAN-tagged.

Code:
ifconfig_re0="up"  # Otherwise re0.NNN are not created

vlans_re0="100"
ifconfig_re0_100="inet 192.0.2.2/24"

Will not only create re0 and re0.100, but also bring up re0. Otherwise, even though re0.100 is up, no traffic flows.
 
Back
Top