1、命令行使用vi编辑器打开网卡配置文件ifcfg-eth0:
vi /etc/sysconfig/network-scripts/ifcfg-eth0
2. linux重启网络服务,显示激活连接失败
检查下 网络 网线跟网卡
3. linux系统不能上网,提示无法激活eth0
给你说说步骤吧,首先你的保证自己硬件连接没有问题
1、确保eth0的状态为up,
sudo
ifconfig
eth0
up
2、配置ip,sudo
ifconfig
eth0
x.x.x.x
3、添加路由
sudo
route
add
default
gw
x.x.x.x(你的路由)
4、设置dns,编辑/etc/resolv.conf文件
把里面的内容改成
nameserver
x.x.x.x
5、重启网络不要重启机器,直接sudo
/etc/init.d/networking
restart
如果你是fc的环境,可能会提示找不到ifconfig,改成/sbin/ifconfog就可以了
4. Red Hat Linux 系统网络配置BUG解惑
使用ubuntu吧,基于Linux内核,集成性高很多,基本是傻瓜式的,安装很方便,而且功能很强大。
下载地址:http://www.ubuntu.org.cn/getubuntu/download/
ubuntu论坛:http://forum.ubuntu.org.cn/