Configuring VLAN devices
Configure VLANs with the ip link add command. See the ip-link man page for details.
About this task
Information about the current VLAN configuration is available by listing the files in
/proc/net/vlan/*
with cat or more. For
example:
# cat /proc/net/vlan/config
VLAN Dev name | VLAN ID
Name-Type: VLAN_NAME_TYPE_RAW_PLUS_VID_NO_PAD bad_proto_recvd: 0
encd300.100 | 100 | encd300
encd300.200 | 200 | encd300
encd300.300 | 300 | encd300
# cat /proc/net/vlan/encd300.300
encd300.300 VID: 300 REORDER_HDR: 1 dev->priv_flags: 1
total frames received: 10914061
total bytes received: 1291041929
Broadcast/Multicast Rcvd: 6
total frames transmitted: 10471684
total bytes transmitted: 4170258240
total headroom inc: 0
total encap on xmit: 10471684
Device: encd300
INGRESS priority mappings: 0:0 1:0 2:0 3:0 4:0 5:0 6:0 7:0
EGRESS priority Mappings:
#