ip link

ip link is to setup the interface/link config

  • Show Detail link information

ip -d li sh $interface_name

  • Add vlan to interface

ip li add eth0 name eth0.1000 type vlan id 1000 #name column could be any alias of interface name

eth0.1000@eth0 # add vlan on eth0 interface, traffic Output from eth0 will be with vlan 1000

Last updated

Was this helpful?