public:managing_networking_on_debian
Table of Contents
Managing networking in Debian
Showing info about a bridge interface
brctl show <bridgename>
This requires the bridge-utils package.
Setting up VLAN interfaces
In /etc/modules add the line to load the module automatically on startup:
8021q
Load the module manually for the current session:
modprobe 8021q
Install VLAN management tools:
apt install vlan
Now, in /etc/network/interfaces, you can define vlan interfaces as such:
auto eth0.222
iface eth0.222 inet static
address 10.10.10.1/24
vlan-raw-device eth0
The vlan-raw-device parameter is optional, if you use the standard name format (interface.vlanid). If you use the alternative naming scheme (vlanXXX), then it must be added to refer to the underlying interface.
If you create VLAN interfaces only to put them into a bridge, there is no need to define the VLAN interfaces manually. Just config the bridge, and the VLAN interface will be created automatically when creating the bridge.
Show overview of active VLANs
cat /proc/net/vlan/config VLAN Dev name | VLAN ID Name-Type: VLAN_NAME_TYPE_RAW_PLUS_VID_NO_PAD enp10s0.2 | 2 | enp10s0 enp10s0.6 | 6 | enp10s0
References
public/managing_networking_on_debian.txt · Last modified: by thomas
