Installed centos 6.4, but found
Step 1, configure and enable the online eth0 Nic without IP address, only LO Nic has 127.0.0.1, And then/etc/sysconfig/network-scripts/There is no ifcfg-eth0 file under it.
Solution:
Add ifcfg-eth0 file:
[[Email protected] ~] # Vi/etc/sysconfig/network-scripts/ifcfg-eth0
Device = eth0 # Nic device name
Onboot = yes # activate Yes at startup | No
Bootproto = static # protocol type dhcp bootp none
Ipaddr = 192.168.1.90 # network IP address
Netmask = 255.255.255.0 # network subnet address
Gateway = 192.168.1.1 # gateway address
Broadcast = 192.168.1.255 # broadcast address
Hwaddr = 00: 0C: 29: Fe: 1A: 09 # Nic MAC address
Type = Ethernet # The network adapter type is Ethernet.
: WQ save Configuration
[[Email protected] ~] # Service network restart
Result Error
[[Email protected] ~] # Service NetworkManager restart
Also, an error is reported.
Bringing up interface eth0 error... device not managed by NetworkManager or unavailable
Baidu said that there was a conflict between the network and NetworkManager and one was stopped.
Solution:
1 chkconfig NetworkManager off
2 chkconfig network on
3 service NetworkManager stop
4 service network start
The original English text is as follows (in general, NetworkManager is stopped and the default manager is enabled ):
========================================================== ====================================
1. Remove network manager from startup services.
Chkconfig NetworkManager off
2. Add default net manager
Chkconfig network on
Stop NetworkManager first
Service NetworkManager stop
And then start default Manager
Service Network start
Or you can change it easy:
System-config-network
Uncheck the box that sets the eth0 as managed by NetworkManager and set IP info from there.
System-config-services
Stop and disable NetworkManager, start and enable Network
You have problem because both of NetworkManager and network using same network driver and default network blocking access for NetworkManager. If you disable NetworkManager your problem will disappeared after restart.
This article is from the "perfectionist" blog, please be sure to keep this source http://liangxueming.blog.51cto.com/3911546/1547023
Centos etho Problems