Configuring vlans

To tag a packet with virtual network identifier:

# cat /etc/hostname.if0
up
# cat /etc/hostname.vlan0
vnetid 100 parent if0
inet 10.0.5.2 0xffffff00
up

Replace if0 with the interface, such as vio0 for virtio(4).