Section: Bridges, VLANs, and Tunnels

Create VLAN subinterface

bash
bash
sudo ip link add link eth0 name eth0.100 type vlan id 100
Explanation

Create a VLAN-tagged interface.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Bridges, VLANs, and Tunnels
Create bridge
Create a software bridge device.
OpenIn sheetbashsame section
Attach interface to bridge
Add an interface as a bridge port.
OpenIn sheetbashsame section
Create bond
Create a bonding interface.
OpenIn sheetbashsame section
Create GRE tunnel
Create a GRE tunnel interface.
OpenIn sheetbashsame section
Show ARP/neighbor cache
Display IPv4 ARP and IPv6 neighbor entries.
OpenIn sheetbashsame section
Show bridge ports
Display interfaces participating in Linux bridges.
OpenIn sheetbashsame section