cannot ping using host-only adapter

Discussions related to using VirtualBox on Mac OS X hosts.
Post Reply
ranggadablues
Posts: 4
Joined: 13. Mar 2012, 10:47

cannot ping using host-only adapter

Post by ranggadablues »

Hi there..

Ok just straight to the point
my host Mac OS X Lion
my guest freebsd 8.2 stable

Code: Select all

on my network setting preferences like this:
adapter
ip      192.168.0.102
netmask 255.255.255.0
DHCP server
server address 192.168.0.102
server mask    255.255.255.0
lower bound    192.168.0.1
upper bound    192.168.0.255
 
host
ip      192.168.0.102
netmask 255.255.255.0

guest
ip      192.168.0.1 -> DHCP
netmask 255.255.255.0
my problem is:
I can't ping both host->guest or guest->host

please..please help me,its something wrong with my network configure
thank you
ranggadablues
Posts: 4
Joined: 13. Mar 2012, 10:47

Re: cannot ping using host-only adapter

Post by ranggadablues »

someone?

anyone can help me for this problem?

thank you
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: cannot ping using host-only adapter

Post by Perryg »

Did you reset the host-only adapter settings? Because by default it should have been 192.168.56.*
Normally the host has 192.168.56.1 and the guest 192.168.56.101
ranggadablues
Posts: 4
Joined: 13. Mar 2012, 10:47

Re: cannot ping using host-only adapter

Post by ranggadablues »

Perryg wrote:Did you reset the host-only adapter settings? Because by default it should have been 192.168.56.*
Normally the host has 192.168.56.1 and the guest 192.168.56.101
thanks for the reply,

ya I know by default the ip is 192.168.56.*, but I already setup my BSD using static ip 192.168.0.*

is there any possible that I use my static ip and not use on default VM ip?

thank you
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: cannot ping using host-only adapter

Post by Perryg »

Only if you edit the host-only networking to be in that range.
There is a whole section on how to do this in your VirtualBox users manual.
See Chapter 6.6 Host-only networking.

Although it would be easier to simply change the guest network addresses then to change the adapter IMHO.
ranggadablues
Posts: 4
Joined: 13. Mar 2012, 10:47

Re: cannot ping using host-only adapter

Post by ranggadablues »

Perryg wrote:Only if you edit the host-only networking to be in that range.
There is a whole section on how to do this in your VirtualBox users manual.
See Chapter 6.6 Host-only networking.

Although it would be easier to simply change the guest network addresses then to change the adapter IMHO.
thanks for the reply

on network preference I already create my network range, the host is 192.168.0.102 and the guest is 192.168.0.199 for network mask is 255.255.255.0.
when I use bridge adapter on my office it's running as I hope, I can ping each other or hostname, but when I use host-only adapter I cannot ping between host and guest.

Now on network preference I change for ip4 address same as I have ip DHCP address on my office, and taraa.. :lol: I can ping each other use the ip address, but the opposite I can't ping use guest hostname, it's kind of confused.. :cry:
Post Reply