Solution: The eth0 Nic cannot be automatically loaded, and the NIC configuration information is not in network-scripts,
Problem scenario: the eth0 Nic cannot be automatically loaded, and the NIC configuration information is not in network-scripts
Solution:
1 vi/etc/rc. d/rc. loacl
Last join
Ifup eth0
2. reboot
3 Test
Change the ip address and check whether the service network restart is valid
Or check whether the NIC is connected in the desktop environment.
4 ifconfig-
Check whether eth0 information has changed
If it is changed, it means it takes effect.
This solution has passed the local test. In your centos6.2 or later versions, the vm Nic cannot be automatically connected after the physical ip address changes.
Prohibit copying, reprinting, and taking photos ---------- linux -- luo
Use vi/etc/sysconfig/network-scripts/ifcfg-eth0 to open the NIC configuration file add IPADDR, and you cannot change the IP
No!
If it is a static IP address
BOOTPROTO = static
Enter service network restart
Linux Nic eth0 cannot be started
Vim/etc/sysconfig/network-scripts/ifcfg-eth0
Open and check your configuration
DEVICE = eth0
BOOTPROTO = yes
ONBOOT = yes
NETMASK = 255.255.255.0
DNS2 = 222.85.85.85
TYPE = Ethernet
IPADDR = 192.168.1.62
GATEWAY = 192.168.1.1
DNS1 = 222.88.88.88