linux下redhatlinux网卡不兼容问题

今天在虚拟机中装linux遇到了无法激活网卡的问题,上网找到了原因,现转帖如下:

VMware4.5以上和Redhat 9以上之间,网卡驱动有些不兼容:
Redhat 9.0作Guest OS时,用"ifconfig eth0 up"是无法激活虚拟网卡的,总是提示
诸如 "Determining IP information for eth0... failed; no link present. Check cable?"

解决方法是:

以root权限,编辑 /etc/sysconfig/network-scripts/ifcfg-eth N
/etc/sysconfig/networking/devices/ifcfg-ethN

其中N是数字,比如eth0,

在每个文件中添加:
check_link_down () {
return 1;
}

然后重新激活网卡,不需要重启就能上网,要是还不能激活,重新启动虚拟机

虚拟机上的网络设置如下:

首先HOST是自动分配IP的

C:\Documents and Settings\yhl>ipconfig -all

Windows IP Configuration

        Host Name . . . . . . . . . . . . : yhl
        Primary Dns Suffix  . . . . . . . : unimassystem.com
        Node Type . . . . . . . . . . . . : Hybrid
        IP Routing Enabled. . . . . . . . : No
        WINS Proxy Enabled. . . . . . . . : No
        DNS Suffix Search List. . . . . . : unimassystem.com
                                            unimassystem.com

Ethernet adapter 本地连接:

        Connection-specific DNS Suffix  . : unimassystem.com
        Description . . . . . . . . . . . : Broadcom 440x 10/100 Integrated Con
roller
        Physical Address. . . . . . . . . : 00-0F-1F-46-40-52
        Dhcp Enabled. . . . . . . . . . . : Yes
        Autoconfiguration Enabled . . . . : Yes
        IP Address. . . . . . . . . . . . : 192.168.0.29
        Subnet Mask . . . . . . . . . . . : 255.255.255.0
        Default Gateway . . . . . . . . . : 192.168.0.1
        DHCP Server . . . . . . . . . . . : 192.168.0.1
        DNS Servers . . . . . . . . . . . : 10.71.0.10
                                            10.71.0.40
        Primary WINS Server . . . . . . . : 10.71.0.10
        Secondary WINS Server . . . . . . : 10.71.0.40
        Lease Obtained. . . . . . . . . . : 2006年7月7日 7:56:00
        Lease Expires . . . . . . . . . . : 2006年7月10日 7:56:00

Ethernet adapter VMware Network Adapter VMnet1:

        Connection-specific DNS Suffix  . :
        Description . . . . . . . . . . . : VMware Virtual Ethernet Adapter for
VMnet1
        Physical Address. . . . . . . . . : 00-50-56-C0-00-01
        Dhcp Enabled. . . . . . . . . . . : No
        IP Address. . . . . . . . . . . . : 192.168.184.1
        Subnet Mask . . . . . . . . . . . : 255.255.255.0
        Default Gateway . . . . . . . . . :

Ethernet adapter VMware Network Adapter VMnet8:

        Connection-specific DNS Suffix  . :
        Description . . . . . . . . . . . : VMware Virtual Ethernet Adapter for
VMnet8
        Physical Address. . . . . . . . . : 00-50-56-C0-00-08
        Dhcp Enabled. . . . . . . . . . . : No
        IP Address. . . . . . . . . . . . : 192.168.118.1
        Subnet Mask . . . . . . . . . . . : 255.255.255.0
        Default Gateway . . . . . . . . . :

24695024_201010041942541.jpg

24695024_201010041942543.jpg

24695024_201010041942542.jpg

fj.png111d797de66.jpg

fj.png111d7975487.jpg

fj.png111d7986173.jpg

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/24695024/viewspace-675435/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/24695024/viewspace-675435/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值