VMware virtual machine fixed ip

70-persistent-net.rules 1, delete the virtual machine /etc/udev/rules.d/ under 70-persistent-net.rules.bak file

 cd /etc/udev/rules.d/

 mv 70-persistent-net.rules 70-persistent-net.rules.bak

2, modify ifcfg-eth0 in the / etc / sysconfig / network-scripts :

DEVICE=eth0

546a0d58-53d4-464d-b2f5 the UUID = #-f726c846082b (commented out)

TYPE=Ethernet

BOOTPROTO = static // static ip

HWADDR = 00 #: 0C: 29: D7: 81: 47 (commented)

IPADDR=192.168.37.140

GATEWAY=192.168.6.2

TYPE=Ethernets

ONBOOT=yes

Guess you like

Origin www.cnblogs.com/wumingxiaozi/p/11297158.html