vlan management with iproute2

Use iproute2 to manage vlan:

# ip link add name eth0.3 link eth0  type vlan id 3
# ip link

To show vlan info you need the -d option.

# ip -d link show eth0.3
# ip l f eth0.3

Names like eth0.3 are a convention. The following works too:

# ip l a name foo3 link eth0  type vlan id 3
# ip -d l s foo3
32: foo3@eth0 [snip]
    vlan protocol 802.1Q id 12

Lascia un commento