Centos etho Problems

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.