For When You Can't Have The Real Thing
[ start | index | login ]
start > Linux > CentOS > 7 > VLAN interfaces from command line

VLAN interfaces from command line

Created by dave. Last edited by dave, 6 years and 189 days ago. Viewed 1,721 times. #1
[edit] [rdf]
labels
attachments
(2017-10-19)

Problem

Define VLAN interfaces using the command line.

Solution

# ip link add link $INTERFACE name $INTERFACE.$VID type vlan id $VID
# ip link set dev $INTERFACE.$VID up
# ip link delete $INTERFACE.$VID

(>>Source)

no comments | post comment
This is a collection of techical information, much of it learned the hard way. Consider it a lab book or a /info directory. I doubt much of it will be of use to anyone else.

Useful:


snipsnap.org | Copyright 2000-2002 Matthias L. Jugel and Stephan J. Schmidt