linux下网卡配vlan -电脑资料

电脑资料 时间:2019-01-01 我要投稿
【www.unjs.com - 电脑资料】

   

    临时用用的话参考下面命令就可以了

    其中505是vlan id

    [root@1 network-scripts]# /sbin/modprobe -a 8021q

    [root@1 network-scripts]# /sbin/vconfig add eth0 505

    Added VLAN with VID == 505 to IF -:eth0:-

    [root@1 network-scripts]# ifconfig eth0.505 10.4.3.2/24

最新文章