Enable trunked networking in Debian

From Wiki
Jump to: navigation, search

Trunked networking is fairly simple to configure. Edit /etc/network/interfaces to look something like this. The switch port must also be set to be a trunk port.

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
allow-hotplug eth0
iface eth0 inet dhcp
#post-up /usr/local/bin/firewall
# VLAN 1000 - SysEng Kickstart VLAN
auto eth0.1000
iface eth0.1000 inet static