3

I'm trying to establish bridged networking from linux mint vsn 12 in virtualbox to a Mac Lion host.

Mac config:

  • Network setting: en3 configured by DHCP
  • Sharing setting: Internet Sharing selected, Share connection from en3 to computers using en3

Virtualbox Linux setting:

  • Network setting: Bridged Adapter, Name: en3

I can ping from host (192.168.2.1) to guest (192.168.2.2) and guest to host, but I Cannot ping from the Linux guest to the outside world. Connection in host is up, because I can ping from the Mac host to the outside world.

Something else that's seems weird to me, in the Mac Network setting, the IP Address generated by DHCP says 169.254.243.185. What the heck is that?? When I open a terminal up in the Mac, however, ifconfig shows its en3 inet address as 192.168.2.1.

tgoneil
  • 165
  • 1
  • 1
  • 7

3 Answers3

3

I had same issue: NAT was working fine while in bridged mode failed to get DHCP.

I was suspicious about Lion Firewall but switching it off did not help.

Later I found that it is only DHCP that is not working in Bridged mode; so I set the IP address manually on my Linux host and everything started to work nicely.

jonsca
  • 4,084
pnemec
  • 131
1

Found a simple solution to the connectivity problem in VirtualBox:

  1. Set the Network setting to "NAT" in VirtualBox settings for the virtual/guest machine
  2. After booting into the VM, go to "Network Adapter Properties" and insert the following DNS server addresses (OpenDNS configuration):
    • 208.67.222.222
    • 208.67.220.220
  3. Now full internet connectivity is established.
Indrek
  • 24,874
0

I have a CentOS guest OS in VirtualBox and am using a Mac OS X host. Bridged networking is working for me.

I did not enable Internet Sharing on my Mac OS X config. Is there a reason you needed to enable that? Have you tried the bridged networking option without Internet Sharing enabled?

Rohit
  • 16