Quickly creating VLANs?

Rudy Rucker crapsh at monkeybrains.net
Sat Jun 16 23:50:20 UTC 2007

Works for me, but if you put in the 'inet' if breaks.

# ifconfig vlan600 create vlan 600 vlandev fxp1 inet
ifconfig: inet: bad value

man ifconfig:
  Since an interface can receive transmissions in differing
  protocols with different naming schemes, specifying the
  address family is recommended.

either needs to be revised to:
  except when creating a vlan, 'cause that causes sh*t to break

or, the ifconfig command needs to accept 'inet' when creating a vlan.

Is inet inherited from the 'vlandev' and therefore redundant?


Pieter de Boer wrote:
> Ivan Voras wrote:
>> ifconfig vlan600 destroy
>> ifconfig vlan600 create
>> ifconfig vlan600 vlan 600 vlandev fxp1
>> ifconfig vlan600 inet netmask
> Try ifconfig vlan600 create vlan 600 vlandev fxp1

More information about the freebsd-net mailing list