linux网络命令 vconfig ifconfig

增删VLAN
    vconfig add eth0 10
    vconfig rem eth0.10

重启网卡
    ifconfig eth0.101 up
    ifconfig eth0.101 down

    ifconfig eth0 10.10.10.10 netmask 255.255.254.0

查看网卡列表
    一般查看网卡列表我们都是直接用ifconfig的,但是很多时间当网卡名称长时会被其他信息挡住。
    这样就可以用tcpdump -D 来查看了

ifconfig会自动添加不存在的网卡。同样down掉一个网卡也相当于删掉该网卡

    ifconfig eth1.202:1:102  ifconfig后面接的设备名可以不存在,会被自动创建的。

ip address  可以看到网卡全称

原文地址:https://www.cnblogs.com/dongzhiquan/p/2916334.html