VirtualBox

Opened 15 years ago

Last modified 11 years ago

#4038 closed defect

Host Only / NAT: DHCP does not work always — at Initial Version

Reported by: Martin Burger Owned by:
Component: network Version: VirtualBox 2.2.2
Keywords: Cc:
Guest type: other Host type: other

Description

Hello,

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.

Change History (0)

Note: See TracTickets for help on using tickets.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy