kapok

垃圾桶,嘿嘿,我藏的这么深你们还能找到啊,真牛!

  BlogJava :: 首页 :: 新随笔 :: 联系 :: 聚合  :: 管理 ::
  455 随笔 :: 0 文章 :: 76 评论 :: 0 Trackbacks

主机windows,虚拟机设置成采用NAT方式.
guest机采用DHCP自动获取地址,报错:说是check cable, no link present.
解决办法:



Getting a DHCP Address in a Red Hat Linux 9.0 Virtual Machine

When a Red Hat Linux 9.0 guest operating system tries to get a DHCP address, the attempt may fail with an error message that states the link is down. On ESX Server, this happens only if you are using the vlance driver for your network connection.

To work around this problem, become root (su -) and use a text editor to edit the following files in the guest operating system. If only one of these files exist, make the change for that file only.

/etc/sysconfig/network-scripts/ifcfg-eth[n]

/etc/sysconfig/networking/devices/ifcfg-eth[n]

In both cases, [n] is the number of the Ethernet adapter ?for example, eth0.

Add the following section to each of these two files:

check_link_down () {

return 1;

}

Then run the command ifup eth[n] (where [n] is the number of the Ethernet adapter) or restart the guest operating system.


测试成功,用ifconfig可以查看获得的ip地址.

posted on 2005-03-05 18:04 笨笨 阅读(1327) 评论(1)  编辑  收藏 所属分类: LinuxALL

评论

# re: 虚拟机上模拟red hat linux的网络配置 2007-10-07 23:51 jackyweijie
Thank you very much
  回复  更多评论
  


只有注册用户登录后才能发表评论。


网站导航: