Home | Mirror | Search |
首先需確保加載了內核模組 802.1q
[root@development ~]# lsmod | grep 8021q [root@development ~]# modprobe 8021q
加載後會生成目錄/proc/net/vlan
[root@development ~]# cat /proc/net/vlan/config VLAN Dev name | VLAN ID Name-Type: VLAN_NAME_TYPE_RAW_PLUS_VID_NO_PAD