零起步1-CentOS6.3网卡配置
来源:互联网 发布:java手游下载 编辑:程序博客网 时间:2024/05/16 06:01
全新以最小化包安装了64位的CentOS6.3系统,作为本地的Web服务器使用,现记录全过程
第一步,配置并启用网上eth0
[root@localhost ~]# vi /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0 #网卡设备名称
ONBOOT=yes #启动时是否激活 yes|no
BOOTPROTO=static #协议类型 dhcp bootp none
IPADDR=192.168.1.90 #网络IP地址
NETMASK=255.255.255.0 #网络子网地址
GATEWAY=192.168.1.1 #网关地址
BROADCAST=192.168.1.255 #广播地址
HWADDR=00:0C:29:FE:1A:09#网卡MAC地址
TYPE=Ethernet #网卡类型为以太网
:wq 保存配置
[root@localhost ~]#service network restart
发现居然报错如下,百思不得其解,只能baidu了
bringing up interface eth0 error ... device not managed by networkmanager or unavailable
最终百度到一个很离奇的解决方法,不明原理,望高人指点
解决办法:
1 chkconfig NetworkManager off
2 chkconfig network on
3 service NetworkManager stop
4 service network start
1 chkconfig NetworkManager off
2 chkconfig network on
3 service NetworkManager stop
4 service network start
英文原文如下(大体意思是停掉NetworkManager,启用默认的Manager):
=================================================================================
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.
=================================================================================
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.
=================================================================================
- 零起步1-CentOS6.3网卡配置
- 零起步2-CentOS6.3配置yum源
- 零起步5-CentOS6.3配置samba文件服务器
- 零起步8-CentOS6.3安装配置mongodb-2.2、rockmongo
- 零起步9-CentOS6.3安装配置Resin4.0 + Apache2.4.3
- IT零起步-CentOS6.4配置NTP服务器
- CentOS6.3网卡配置
- 零起步4-CentOS6.3安装vnc远程桌面【RealVNC5.0】
- 零起步6-CentOS6.3源码安装mysql5.5.28
- IT零起步-CentOS6.3关于Bacula服务器部署
- 零起步7-CentOS6.3关于LAMP的配置apache-2.4.3、php-5.4.7、phpMyAdmin3.5
- Eclipse零起步(转)(1~3)
- 零起步3-CentOS6.3文字界面下使用yum安装Gnome桌面
- IT零起步-CentOS6.4部署PPTPVPN服务器
- IT零起步-CentOS6.4部署OpenVPN服务器
- CentOS6.2 命令配置网卡
- CentOS6.5配置网卡--虚拟机
- Vbox下CentOS6 两张网卡配置
- Js正则表达式
- java面包屑导航制作
- JVM 启动参数详解
- xfire方式调用 webserver
- 那年,那场青春繁华梦
- 零起步1-CentOS6.3网卡配置
- Redis命令总结
- java中进程间几种通信方式
- 零起步2-CentOS6.3配置yum源
- 零起步3-CentOS6.3文字界面下使用yum安装Gnome桌面
- php定时更新合作方数据
- 做饭记
- 零起步4-CentOS6.3安装vnc远程桌面【RealVNC5.0】
- kernel2.6.x Makefile详解