User Tools

Site Tools


public:managing_networking_on_debian

This is an old revision of the document!


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.

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.1715882952.txt.gz · Last modified: by thomas

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki