jottings

1.使用ip a 命令查看是否有新加的网卡

 

如上图新网卡为ens36,默认分配ip为192.168.3.14

2. 使用nmcli conn 命令查看新网卡的uuid

 

 3.将旧网卡配置复制为新网卡配置

 

 后缀修改为新网卡名

 4.vi 修改配置

 

 

 type uuid device 修改为nmcli 查出来的值

name修改为ip a 出来的 ens36

如果需要使用固定ip 修改bootproto 为static或者none

ipaddr 修改为路由主机同一网段的ip,如192.168.3.0到192.168.3.255网段

gateway修改为路由主机的网关

dns修改为路由主机的网关,或者路由主机的dns,或者正常使用的dns

5.ifup激活

 

分类:

技术点:

相关文章:

  • 2021-11-19
  • 2022-02-03
  • 2021-12-10
  • 2021-06-14
  • 2021-12-04
  • 2021-04-24
  • 2022-01-19
猜你喜欢
  • 2021-12-18
  • 2021-12-13
  • 2021-05-02
  • 2021-07-15
  • 2021-12-03
相关资源
相似解决方案