Page 1 of 1
[Network] Only works 1st time after reboot
Posted: 31. Dec 2008, 15:00
by rptl
Hello there,
I'm facing a network issue here:
Host: Windows XP SP3
Guest: Debian Etch
VB: 2.1.0
Using network as "Host Interface" and static IP on Linux.
Actually it works. But only for the 1st time I start VM. If I stop VM and then start it again, I can't get network to work. Always got "Network Unreachable"
I always have to reboot Host machine to get it working again.
Somebody facing same issue? Or better, somebody know how fix it ?
Posted: 31. Dec 2008, 15:45
by Sasquatch
The error you get, is that on the Host or the Guest? If it's on the Host, have you tried a repair on the interface you use? Is it by chance a wireless interface? If it's wifi, it might be disconnected without showing that. A repair often fixes these things.
Posted: 1. Jan 2009, 15:10
by rptl
Thanks for your reply.
Nope, I got this from Guest OS.
I played some more time with this issue.
Looks like Guest OS is tyring to get IP using NAT mode network even using HIF interface. I figure out that turning DHCP to get IP automatically in Guest OS, It receives DHCP RELEASE from 10.0.2.2 instead my Local Network.
That's why my network doesn't work when I give static IP to Guest? Looks like I'm attached to 'NAT mode' network in someway...
Just wondering, I really don't know what is happening here.
Some things I think is valid to comment:
Host OS has 2 VPN network interfaces (Tap Win 32 V8 Adapter and AGN Virtual Network Adapter)
Thanks!
Posted: 1. Jan 2009, 15:42
by Sasquatch
If you attach the interface to NAT (which is the default when you create a VM), you can't set a static address in your own network range. DHCP is the only way to get it working.
If you want to have the VM take a part of your own network, you need HIF. See the manual for more info on VB Networking.
Posted: 1. Jan 2009, 16:21
by rptl
I did that already. I'm not using NAT. Its set to work as HIF.
Well, something funny is happening:
I do a ping -t from Host OS and put Guest to reboot.
When Guest OS bring up eth0 I got a single ping reply. After that, no response or networking from Guest OS for about some 3 minutes.
Then, networking starts to work again...
That's weird! Why network doesn't work just after is it started in Guest OS??
Any clues ?
EDIT1: Looks like networking stop to work after some time.
If I start to ping from guest to host, it back to work again, without no actions...
EDIT2: even Networking between Host and Guest start to work, I can't reach my network Gateway from Guest.
Host IP: 192.168.1.10
Guest IP: 192.168.1.11
GW: 192.168.1.1
Posted: 1. Jan 2009, 17:26
by Sasquatch
Do you have a firewall on the Host running? It might cause problems with the network of the Guest.
Posted: 1. Jan 2009, 18:22
by rptl
no firewalls nor antivirus. also I disabled MAC Address filter on my WRT54G wifi router.