ip link add link eth0 name eth0.100 type vlan id 100

Category: Networking

ip link add link eth0 name eth0.100 type vlan id 100

Create a VLAN subinterface

Use `ip link add link eth0 name eth0.100 type vlan id 100` to create a VLAN subinterface. Helpful when you need this quickly on a Linux server.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.