Linux IEEE 802.1q VLAN the new iproute2 way

You need to add Linux system (router, server, etc.) directly onto an 802.1q VLAN trunk? Well, for one there is this old (read: deprecated) vlan, the new way is simply via iproute2’s ip:

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

As usual: just substitute the ethernet interface name, alias, and VLAN ID as needed :-)

One Response to “Linux IEEE 802.1q VLAN the new iproute2 way”

  1. Fred Sauter Says:

    Thanks! :)

Leave a Reply

You must be logged in to post a comment.