当前位置:   article > 正文

PVE克隆虚机后网卡不正常问题处理_pve 网卡不活动

pve 网卡不活动

centos6.x虚机系统为例

1.记录网卡MAC信息

2.修改虚机网卡

  1. [root@rac2 ~]# cat /etc/udev/rules.d/70-persistent-net.rules
  2. # This file was automatically generated by the /lib/udev/write_net_rules
  3. # program, run by the persistent-net-generator.rules rules file.
  4. #
  5. # You can modify it, as long as you keep each rule on a single
  6. # line, and change only the value of the NAME= key.
  7. # PCI device 0x1af4:0x1000 (virtio-pci)
  8. # PCI device 0x1af4:0x1000 (virtio-pci)
  9. # PCI device 0x1af4:0x1000 (virtio-pci)
  10. SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="0e:f9:ab:61:42:17", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"
  11. # PCI device 0x1af4:0x1000 (virtio-pci)
  12. SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="aa:60:17:fd:0e:e3", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"
  13. [root@rac2 ~]#

 3.修改系统ip信息:

  1. [root@rac2 ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth0
  2. DEVICE=eth0
  3. HWADDR=0E:F9:AB:61:42:17
  4. TYPE=Ethernet
  5. ONBOOT=yes
  6. NM_CONTROLLED=yes
  7. BOOTPROTO=static
  8. IPADDR=192.168.207.137
  9. GATEWAY=192.168.207.1
  10. NETMASK=255.255.255.0
  11. DNS1=223.5.5.5
  12. [root@rac2 ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth1
  13. DEVICE=eth1
  14. HWADDR=AA:60:17:FD:0E:E3
  15. TYPE=Ethernet
  16. ONBOOT=yes
  17. NM_CONTROLLED=yes
  18. BOOTPROTO=static
  19. IPADDR=10.1.1.137
  20. NETMASK=255.255.255.0

4.修改主机名:(附带)

hostname xxx

vi /etc/sysconfig/network

声明:本文内容由网友自发贡献,转载请注明出处:【wpsshop】
推荐阅读
相关标签
  

闽ICP备14008679号