增删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  可以看到网卡全称

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-07-10
  • 2022-01-02
  • 2021-11-23
  • 2022-02-24
  • 2021-05-31
猜你喜欢
  • 2021-11-18
  • 2021-10-29
  • 2021-11-23
  • 2021-11-23
  • 2021-12-27
  • 2022-03-04
  • 2021-09-19
相关资源
相似解决方案