Open Network Interface
nano /etc/network/interfaces
Standard Network Interface
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address <IPADDRESS>
gateway <GATEWAY>
netmask <NETMASK>
dns-nameservers <DNS1> <DNS2>
Bridged Network Interface
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet manual
auto br0
iface br0 inet static
bridge_ports eth0
address <IPADDRESS>
gateway <GATEWAY>
netmask <NETMASK>
dns-nameservers <DNS1> <DNS2>
bridge_stp off
bridge_waitport 0
bridge_fd 0
Tagged VLAN Interface
Standard
auto eth0.1000
iface eth0.1000 inet static
address <IPADDRESS>
gateway <GATEWAY>
netmask <NETMASK>
dns-nameservers <DNS1> <DNS2>
Bridged
auto lo
iface lo inet loopback
auto eth0.1000
iface eth0.1000 inet manual
auto br0
iface br0 inet static
bridge_ports eth0.1000
address <IPADDRESS>
gateway <GATEWAY>
netmask <NETMASK>
dns-nameservers <DNS1> <DNS2>
bridge_stp off
bridge_waitport 0
bridge_fd 0
VLAN / Bridged Setup Dependencies
- apt install bridge-utils
- apt-get install vlan
- With the package installed you can now load the module: modprobe 8021q && echo "8021q" >> /etc/modules
- With the 802.1q module loaded into the kernel we need to determine what the interfaces are called: ls /sys/class/net
- Determine whether the 802.1q VLAN module is loaded: lsmod | grep 8021q
- ls /sys/class/net to determine the network interface name
- nano /etc/resolv.conf check Debian name servers are set