Setting a Static IP Running FreeBSD8 in VirtualBox hosted on Windows 7
Posted
by
gvkv
on Super User
See other posts from Super User
or by gvkv
Published on 2010-03-02T15:02:00Z
Indexed on
2012/09/18
9:41 UTC
Read the original article
Hit count: 289
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"
© Super User or respective owner