Page 1 of 1

win7 host, Debian Guest Network Issues

Posted: 24. Mar 2012, 13:38
by Ekar
Read a few older post with similar symptoms, but it seems like the resolution is always different. Thought I would enlist everyone's help here. New VBox user, so it's probably something silly I am doing wrong.

Basically I have the Network set to bridged adapter, and everything starts up fine. But eth0 doesn't get set up correctly.
ifconfig -a shows that I don't have any ipv4 or v6 address assigned by the dhcp.

Windows shows the VB Network is on a different subnet than the host network.
Appreciate any help in debugging the issue.

Re: win7 host, Debian Guest Network Issues

Posted: 24. Mar 2012, 14:39
by Perryg
Need to see the ifconfig -a from the guest an an ipconfig /all from the host to see what is happening. First thought about the "Windows sees the guest on a different subnet" would be the host-only adapter which would not come into play with Bridged.

I have seen Windows get confused because of the the way it sets this adapter to unknown. If you are not going to use host-only disable it and see if that helps.

Re: win7 host, Debian Guest Network Issues

Posted: 24. Mar 2012, 23:25
by Ekar
Here it is...

Re: win7 host, Debian Guest Network Issues

Posted: 24. Mar 2012, 23:33
by Perryg
I don't see where you state what the Linux guest is. But supposing it is a Debian based system the guest is more than likely wanting to see eth0 for the default.
You can either edit the /etc/udev/rules.d/70-persistent-net.rules or you can delete the rules and Linux will configure it on the next boot and see if the NM will sort this all out for you. Or you will need to ifconfig up the eth1 adapter and configure it accordingly.

Code: Select all

eth1	Link encap:Ethernet  HWaddr 08:00:27:aa:9a:32
	BROADCAST MULTICAST  MTU:1500  Metric:1
	RX packets:0 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:0 (0.0 B)  TX bytes:0 (0.0 B)

Re: win7 host, Debian Guest Network Issues

Posted: 25. Mar 2012, 15:36
by Ekar
Your help was perfect. I looked at the file and it had eth0 and eth1 defined. I moved it to *.bak and rebooted. Then when I did a cat of the file, only eth0 was in the 70-persistent-net.rules. And everything is working!

Thanks!

Re: win7 host, Debian Guest Network Issues

Posted: 30. Oct 2014, 05:00
by annekaelber
I'm having a similar problem, I think, but I don't have /etc/udev/rules.d/7-persistent-net.rules at all. (The directory is there, and there's a couple other rules, but not the one mentioned or anything like "net").

I'm running Win7 Host with Debian (wheezy) guest. I have configured eth0 several times, but today I'm having trouble getting it to *stay* "on". I'm not sure if it's related, but I'm also having "can't resolve name" issues (probably because the connection dies and can't see my server, right?). When the problem occurs, ifconfig shows eth0 with no inet or inet6 addresses. Then I'll run these commands and it will work for a bit:

Code: Select all

ifconfig eth0 172.16.1.3 netmask 255.255.0.0
/etc/init.d/networking start
I had thought I'd *permanently* set eth0 in /etc/network/interfaces with this:

Code: Select all

# The primary network interface
auto eth0
iface eth0 inet static
   address 172.16.1.3
   netmask 255.255.0.0
   network 172.16.0.0
   gateway 172.16.1.1
   dns-nameservers 172.16.1.1
But maybe I did it wrong?

I used to be a Linux geek, but I'm rusty these days! I would appreciate any help you can offer.

Anne.