RH9 under VMware Player loses network access after restart
Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
RH9 under VMware Player loses network access after restart
I installed Red Hat 9 in a virtual machine running under VMware Player according to the article, "HOW TO: Run Other OSes On Your PC" (can't link to it yet--newbie). Works great except that I lose network connectivity when I restart RH9! Maybe VMware is overwriting my settings somehow? Maybe this is just an RH9 networking issue. Please help.
This how to reproduce my problem:
Restart RH9 to start with a clean slate.
ping 192.168.1.1; says, "connect: Network is unreachable."
From GUI Network Configuration tool, set and select static IP address, subnet mask, and default gateway to 192.168.1.105, 255.255.255.0, and 192.168.1.1, respectively. Click OK. Save configuration; click OK.
Click Activate ( same as "ifup eth0").
ping 192.168.1.1; get a bunch of "Destination Host Unreachable."
From Network Configuration tool, select DHCP; click OK. Save configuration; click OK.
ping 192.168.1.1; get a bunch of "Destination Host Unreachable."
Enter "ifup eth0" at command line. Says, "Determining IP information for eth0... done." Via ifconfig, I see that VMware DHCP assigned IP address of 192.168.71.128, mask 255.255.255.0 (I'm using VMware NAT mode).
ping 192.168.1.1; get responses!!!!!!!!!!!!!!!
Restart RH9. On the way back up RH9 says, "Bringing up interface eth0: Determining IP information for eth0... failed; no link present. Check cable? [FAILED]"
ping 192.168.1.1; says, "connect: Network is unreachable." I'm back to where I started.
Enter "ifup eth0" at command line. Says, "Determining IP information for eth0... failed; no link present. Check cable?" Via ifconfig, the IP address/network mask is now 127.0.0.1/255.0.0.0.
For step 6, if I also specify DNS addresses of 207.235.20.7 and 168.215.165.186 and DNS search path of zeecon.com (probably not needed), besides being able to successfully ping 192.168.1.1 in step 9, I am also able to ping google.com, browse the internet, e.g., msnbc.com, etc. Everything works! However, restarting RH9 negates all my gains. All of my previous settings show up in the Network Configuration tool, e.g., use-DHCP and the DNS addresses, but I have to go through steps 3 through 8 again to bring network connectivity back.
Never mind, I found the fix in another thread. I had come across this particular fix earlier, and it didn't help me then. I guess that several things needed to be in position, so to speak, for it to all come together. Needed to add this to /etc/sysconfig/network-scripts/ifcfg-eth0:
Code:
check_link_down() {
return 1;
}
I'm guessing that, to RH9, the spooky, virtual VMware network device looks as if it is "down" when RH9 boots, so RH9 marks it as being down for the duration, even though it is configured correctly. This snippet of code apparently makes the link look as if it is up all the time, which is enough to fool RH9 when it boots. At least, that's my best guess. Sorry for the wasted bandwdith.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.