Ticket #4038 (closed defect: obsolete)
Host Only / NAT: DHCP does not work always
|Reported by:||mburger||Owned by:|
Description (last modified by Hachiman) (diff)
I am using VirtualBox 2.2.2 on Mac OS X 10.5.6. My guest OS is Debian Etch-and-a-half:
Linux etch08 2.6.24-etchnhalf.1-686 #1 SMP Fri Dec 26 04:10:16 UTC 2008 i686 GNU/Linux
I setup two network interfaces: Adapter 1 "NAT" and Adapter 2 "Host-only". Thus, the machine should have access to the internet (NAT) and I should have access to the virtual machine from my Mac without port forwarding (Host-only).
Most if the time, this setup works perfectly. However, sometimes one of the two interfaces does not get an IP v4 internet address, like this:
# ifconfig eth0 Link encap:Ethernet HWaddr 08:00:27:4E:83:92 inet6 addr: fe80::a00:27ff:fe4e:8392/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:6 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 b) TX bytes:468 (468.0 b) Base address:0xc010 Memory:f0000000-f0020000 eth1 Link encap:Ethernet HWaddr 08:00:27:98:09:41 inet addr:192.168.56.101 Bcast:192.168.56.255 Mask:255.255.255.0 inet6 addr: fe80::a00:27ff:fe98:941/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:117 errors:0 dropped:0 overruns:0 frame:0 TX packets:127 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:21488 (20.9 KiB) TX bytes:87887 (85.8 KiB) Base address:0xc240 Memory:f0820000-f0840000
In this case I can access the guest via 192.168.56.101, but the machine cannot access the internet. Sometimes it happens the other way around: eth0 gets 10.0.2.15 and eth1 does not get an address. Then, of course, the guest can access the internet but I cannot access it via network.
comment:23 Changed 6 years ago by ssteiner
- Status changed from closed to reopened
- Resolution fixed deleted