public:managing_networking_on_debian
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| public:managing_networking_on_debian [2024/05/15 18:48] – created thomas | public:managing_networking_on_debian [2024/05/16 18:21] (current) – [Setting up VLAN interfaces] thomas | ||
|---|---|---|---|
| Line 8: | Line 8: | ||
| This requires the '' | This requires the '' | ||
| + | |||
| + | ===== Setting up VLAN interfaces ===== | ||
| + | |||
| + | In / | ||
| + | < | ||
| + | 8021q | ||
| + | </ | ||
| + | |||
| + | Load the module manually for the current session: | ||
| + | < | ||
| + | modprobe 8021q | ||
| + | </ | ||
| + | |||
| + | Install VLAN management tools: | ||
| + | < | ||
| + | apt install vlan | ||
| + | </ | ||
| + | |||
| + | Now, in ''/ | ||
| + | |||
| + | < | ||
| + | auto eth0.222 | ||
| + | iface eth0.222 inet static | ||
| + | address 10.10.10.1/ | ||
| + | vlan-raw-device eth0 | ||
| + | </ | ||
| + | |||
| + | The vlan-raw-device parameter is optional, if you use the standard name format ('' | ||
| + | |||
| + | 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 / | ||
| + | VLAN Dev name | VLAN ID | ||
| + | Name-Type: VLAN_NAME_TYPE_RAW_PLUS_VID_NO_PAD | ||
| + | enp10s0.2 | ||
| + | enp10s0.6 | ||
| + | </ | ||
| + | |||
| + | |||
| + | ===== References ===== | ||
| + | |||
| + | * https:// | ||
public/managing_networking_on_debian.1715798898.txt.gz · Last modified: by thomas
