cannot ping from CentOS guest to Vista host

Discussions related to using VirtualBox on Windows hosts.
Post Reply
shaymol
Posts: 4
Joined: 27. Aug 2009, 18:29
Primary OS: MS Windows Vista
VBox Version: OSE other
Guest OSses: CentOS

cannot ping from CentOS guest to Vista host

Post by shaymol »

Hi there
i have Vista as host and CentOS as guest OS
i can ping guest os from host os but cannot ping host os from guest os

my host ip is 192.168.1.2
and guest ip is 192.168.1.1

if i ping 192.168.1.1 from host that is windows cmd it works
but if i try ping 192.168.1.2 from virtualbox (CentOS) it wont work

i disabled my vista firewall but still it cannot works, i dont have any other virus guard installed in vista.

Is this any firewall problem or what ?

Please help me out to solve this problem

Thanks in advance

Shaymol
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 from CentOS guest to Vista host

Post by Perryg »

What is the network mode for the guest? Bridged, NAT, Host-only?
What does ipconfig /all from vista command window, and ifconfig in Cent terminal show?
shaymol
Posts: 4
Joined: 27. Aug 2009, 18:29
Primary OS: MS Windows Vista
VBox Version: OSE other
Guest OSses: CentOS

Re: cannot ping from CentOS guest to Vista host

Post by shaymol »

Hi
i have two network options as follows

Adapter 1 : PCnet-FAST III (NAT)
Adapter 2: PCnet-FAST III (Host-only adapter, 'VirtualBox Host-Only Ethernet Adapter')

i have attached my vista ipconfig/ all and centos ifconfig result

Please help me out to solve this problem

Thanks in advance

Shaymol
Attachments
CentOS ifconfig.txt
My CentOS guest os ifconfig result
(1.46 KiB) Downloaded 73 times
Vista ipconfig.txt
My vista ipconfig/all result
(5 KiB) Downloaded 31 times
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 from CentOS guest to Vista host

Post by Perryg »

Look in the CentOS and make sure that you have disabled the firewall there also.
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Re: cannot ping from CentOS guest to Vista host

Post by Sasquatch »

Also check the output of the arp command. On Windows, you need to enter arp -a, on CentOS, a simple arp is enough. That should give you the IP addresses and MAC addresses of the systems you already tried to access (in whatever way, ping triggers it too). Is there any reason btw why you have 192.168.1.1 for the Guest, and not just 192.168.1.10 or something like that? Even though your ipconfig /all doesn't mention any network adapters with connection, there might be some IP conflict that Windows doesn't report, and Linux doesn't show that either by default (a separate package is needed for that detection).

Have you also tried to ping the IPv6 address (fe80:..... etc)? You ping such addresses from Windows with ping fe80:..., Linux uses ping6 fe80:.... You might need to specify which NIC to use for the ping.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
shaymol
Posts: 4
Joined: 27. Aug 2009, 18:29
Primary OS: MS Windows Vista
VBox Version: OSE other
Guest OSses: CentOS

Re: cannot ping from CentOS guest to Vista host

Post by shaymol »

Perryg wrote:Look in the CentOS and make sure that you have disabled the firewall there also.
i installed text mode of CentOS as guest OS, also the same vdi file i used in my desktop pc with windows XP host and it works there , i mean both ping works ok , form host to geust and guest to host. but in my laptop under vista host it doesnt work :(
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Re: cannot ping from CentOS guest to Vista host

Post by Sasquatch »

Do you happen to have some additional security software installed, like some internet security software?
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
shaymol
Posts: 4
Joined: 27. Aug 2009, 18:29
Primary OS: MS Windows Vista
VBox Version: OSE other
Guest OSses: CentOS

Re: cannot ping from CentOS guest to Vista host

Post by shaymol »

Sasquatch wrote:Do you happen to have some additional security software installed, like some internet security software?
No i dont have any third party security software installed in my vista yet
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 from CentOS guest to Vista host

Post by Perryg »

Change the ip address of the guest to something else beside (.1) and turn off the firewall in the vista host.
Those are the only things that I can think of at the moment to help you.
Post Reply