Setting a Static IP Running FreeBSD8 in VirtualBox hosted on Windows 7
- by gvkv
I'm using VirtualBox on Windows 7 (host) to run a FreeBSD (guest) based web server. I`ve assigned a static ip of 192.168.80. 1 to the (virtualized) NIC which is run in bridged mode. The problem is that when I ping an external server (such as google.com) I get a No route to host error:
dimetro# ping google.com
PING google.com (66.249.90.104): 56 data bytes
ping: sendto: No route to host
...
I can ping the BSD server from both another virtualized machine and my host machine and from the server, I can ping everything on the network. The router ip is 192.168.1.1/16.
ADDENDUM:
I have the following lines in /etc/rc.conf on the BSD VM to configure networking:
defaultrouter="192.168.1.1"
ifconfig_em0="inet 192.168.80.1 netmask 255.255.0.0"