VLAN

Using VLANs is a power tool for a network admin.

Cisco switches and the like can to 802.1Q trunk ports, where frames are tagged for what port they are on.

Linux can use these too.

If you have a linux box connected to a 802.1q trunk port, you can set up interfaces using the ip command.

Create a VLAN interface and start it: $ sudo ip link add link eth1 eth1.23 type vlan id 23 $ sudo ip link set dev eth1.23 up

It should be clear from that we are setting up an interface on VLAN 23

Give address to VLAN interface: $ sudo ip addr add 2605:e200:c201:3::f/24 dev eth1.23

To show your config, i often use: $ ip addr

Which has an implicit show at the end.