View previous topic :: View next topic |
Author |
Message |
EspadaV8 n00b
Joined: 25 Mar 2004 Posts: 26
|
Posted: Thu Mar 25, 2004 5:50 am Post subject: problem with VMware network |
|
|
hey y'all
I've managed to install Gentoo and got it to reboot off the (virtual) hard drive. At first it was unable to bring up eth0 but i messed around with the kernel and got the right modules selected and now it can bring it up.
However, when I try and emerge something (anything) it says
Connecting to W.X.Y.Z ... failed: Network is unreachable
I've got the same set up in /etc/conf.d/net as what was used on the LiveCD and that worked fine
iface_eth0="192.16.0.2 broadcast 192.168.0.255 netmask 255.255.255.0"
everything else in that file is commented out
Thanks for any help
Andy |
|
Back to top |
|
|
fifo Guru
Joined: 14 Jan 2003 Posts: 437
|
Posted: Thu Mar 25, 2004 3:54 pm Post subject: Re: problem with VMware network |
|
|
EspadaV8 wrote: | iface_eth0="192.16.0.2 broadcast 192.168.0.255 netmask 255.255.255.0" |
You mean 192.168.0.2 don't you? Have you set the default gateway setting? Did you remember to add net.eth0 to the default runlevel? |
|
Back to top |
|
|
EspadaV8 n00b
Joined: 25 Mar 2004 Posts: 26
|
Posted: Thu Mar 25, 2004 9:41 pm Post subject: |
|
|
yes, sorry, it should be 192.168.0.2
Where abouts is the default gateway set? the line in /etc/conf.d/net at the bottom is commented out, just as in the version on the LiveCD.
And yes has been added to the default runlevel
i'm sure if it's any use but th outpur from /sbin/ifconfig is as follows...
Link encap:Ethernet HWaddr 00:0C:29:9B:9B:FD
inet addr:192.168.0.2 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROARDCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:19 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:2253 (2.2 Kb) TX bytes:0 (0.0 b)
Interrupt:11 Base address:0x10c0
thats just for eth0, lo is there as well of course.
Thanks again for any help |
|
Back to top |
|
|
fifo Guru
Joined: 14 Jan 2003 Posts: 437
|
Posted: Thu Mar 25, 2004 10:38 pm Post subject: |
|
|
EspadaV8 wrote: | Where abouts is the default gateway set? the line in /etc/conf.d/net at the bottom is commented out, just as in the version on the LiveCD. |
Uncomment that line, change it to the correct gateway address, and "/etc/init.d/net.eth0 restart". |
|
Back to top |
|
|
EspadaV8 n00b
Joined: 25 Mar 2004 Posts: 26
|
Posted: Fri Mar 26, 2004 3:44 am Post subject: |
|
|
i've uncommented the line and restarted net.eth0 but I'm still unable to download anything with emerge. I've also tried pinging IP address and websites. if i try ping www.kernel.org i get an unknown host error message, if i try ping 204.152.189.116 then it just hangs until i press CTRL-C and then it tells me it's trasmitted so many pactets and revieced none
Thanks again |
|
Back to top |
|
|
EspadaV8 n00b
Joined: 25 Mar 2004 Posts: 26
|
Posted: Fri Mar 26, 2004 7:24 am Post subject: |
|
|
I've managed to get it working now, i've changed the IP to 192.168.0.5 and the gateway to 192.168.0.2 and everything seems to be working and i'm trying an emerge sync.
thanks for your help
andy |
|
Back to top |
|
|
hch3 n00b
Joined: 06 Apr 2004 Posts: 9
|
Posted: Thu Apr 08, 2004 4:49 am Post subject: Re: problem with VMware network |
|
|
EspadaV8 wrote: | At first it was unable to bring up eth0 but i messed around with the kernel and got the right modules selected and now it can bring it up. |
what did you do? i'm having the same problem. thanks! |
|
Back to top |
|
|
EspadaV8 n00b
Joined: 25 Mar 2004 Posts: 26
|
Posted: Thu Apr 15, 2004 1:22 am Post subject: |
|
|
hey, don't know if you still haven't got it working and sorry about the long delay in replying, i've been having trouble with windows in general and just finished a re-install.
I haven't got VMware installed again just yet but i'll be doing it sometime soon, then I can check everything through before i post something that might not work, I have a rough idea of what i did but I want to be sure first. All i can remember is checking something in the VMware network settings to get the IP address and gateway it uses, but i can't remember where i found them in there.
I'll get back to you soon
Andy |
|
Back to top |
|
|
hch3 n00b
Joined: 06 Apr 2004 Posts: 9
|
Posted: Thu Apr 15, 2004 1:53 am Post subject: |
|
|
yeah...i'm still interested in knowing what you did...it works fine when i boot up the livecd, but it isnt detected when i check dmesg...reallly weird... |
|
Back to top |
|
|
EspadaV8 n00b
Joined: 25 Mar 2004 Posts: 26
|
Posted: Thu Apr 15, 2004 3:17 am Post subject: |
|
|
Ok, got VMware running now.
In VMware I'm using a NAT for NIC1 which is setup to connect at startup. Then to find out what the settings are you can open up the "Manage Virtual Networks" for VMware. The summary tab should tell you what vitural network is used for the NAT connections (in my case it's VMnet8) then you can go to the DHCP tab and select the correct Virtual Network and get properites. This will tell you most of the info you need. The first thing you want is the Start IP Address, this tells you the first IP you can use in the VM, you can use any IP between the start and finish IP. You'll also find the Broadcast Address and the Netmask. Once you've got all that you then need to go back and go to the NAT tab and note down the Gateway IP of VMnet8.
You then need to enter this into the
file as such
Code: | iface_eth0="192.168.153.128 broardcast 192.168.153.255 netmask 255.255.255.0" |
(this is only my settings, yours might be different) and then run
Code: | /etc/init.d/net.eth0 restart |
this should (hopefully) bring up the network.
This _should_ work. I have now managed to get my VM to work by just using the line
but this didn't work for me before so I'm not sure what makes it work now that made it not work before.
Other than that you need to make sure you've got the ethernet drivers installed in the kernel menu. I've got it as part of the kernel not a module but if should work either way. If you're not sure if you've got it installed or not check in
Code: | Device Drivers - Networking support - Ethernet (10 or 100Mbit) - EISA, VLB, PCI and on board controllers - AMD PCnet32 PCI support |
I'm using the 2.6.x kernel so if you're using the 2.4.x then it might be elsewhere but it shouldn't be too hard to find. Like I said I've got it as part of the kernel but having it as a module should still work.
Hope this helps, it's been a long night and it's WAY to early in the morning so if any of this doesn't make sence then let me know and i'll verify it for you. If it does make sence but still doesn't work still let me know and i'll see if i can help any more
andy |
|
Back to top |
|
|
infecticide Apprentice
Joined: 10 Mar 2004 Posts: 262 Location: Regina, SK Canada
|
Posted: Mon Aug 16, 2004 10:00 am Post subject: |
|
|
I've tried all the above and it still doesn't work. eth0 shows up in ifconfig but as indicated above it hangs on ping until a CTRL+C and shows packets sent and none returned. Kernel modules are loaded as indicated above as well.
Any other suggestions?[/code] |
|
Back to top |
|
|
infecticide Apprentice
Joined: 10 Mar 2004 Posts: 262 Location: Regina, SK Canada
|
Posted: Thu Aug 19, 2004 2:35 am Post subject: |
|
|
Problem solved by reinstalling VMWare. Apparently for some reason the NAT daemon failed to start anymore. |
|
Back to top |
|
|
revertex l33t
Joined: 23 Apr 2003 Posts: 806
|
Posted: Thu Aug 19, 2004 3:05 am Post subject: |
|
|
you need to start vmware network stuff.
Code: | /etc/init.d/vmare start
rc-update add vmware default |
|
|
Back to top |
|
|
infecticide Apprentice
Joined: 10 Mar 2004 Posts: 262 Location: Regina, SK Canada
|
Posted: Fri Aug 20, 2004 3:41 am Post subject: |
|
|
I'm using a Windows XP Host... |
|
Back to top |
|
|
revertex l33t
Joined: 23 Apr 2003 Posts: 806
|
Posted: Sat Aug 21, 2004 2:49 am Post subject: |
|
|
infecticide wrote: | I'm using a Windows XP Host... |
duh! forgive my stupidy!
i had some fun a time ago creating a loopback as gateway then bridging it to join my lan network to vmware virtual network.
this way you don't need the vmware adapters in your xp host. |
|
Back to top |
|
|
|