Making VLANs work on Bering

Or any other distribution that uses Debian network scripts:
$ cat /etc/network/interfaces
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet dhcp
# VLAN 100
auto eth0.100
iface eth0.100 inet static
address 10.0.15.1
netmask 255.255.255.0
broadcast 10.0.15.255
pre-up /sbin/ifconfig eth0 up
pre-up /sbin/vconfig add eth0 100

Grabbed from some random searching

Or, you could try the method mentioned here:
auto lo
iface lo inet loopback
auto eth0 eth1 vlan2 vlan3 vlan4 vlan5
iface eth0 inet dhcp
# VLAN 1 - native management VLAN
iface eth1 inet static
address 10.0.0.1
netmask 255.255.255.224
vlan_raw_device eth1
# VLAN 2 - DMZ
iface vlan2 inet static
address 10.0.0.33
netmask 255.255.255.224
vlan_raw_device eth1

And if you want to get really crafty: Transparent vlan bridging firewall with debian

Leave a Reply

Your email address will not be published. Required fields are marked *