LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices


Reply
  Search this Thread
Old 11-24-2011, 09:03 AM   #1
bala150985
Member
 
Registered: May 2009
Location: Chennai, India
Distribution: Ubuntu
Posts: 39

Rep: Reputation: 15
Unhappy Need to ping Guest hostonly adapter from Host


Hi

A picture speaks a 1000 words so here is my picture of what I am trying to achieve, Is it possible ? See attached picture.



I am able to ping my Guest's Hostonly adapter IP address when my host Ubuntu does not have a IP to it, however when I try to give it an IP using DHCP I lose the ability to ping my VirtualBox guest's hostonly IP address.

When host ubuntu does not have IP
bala@bala-laptop:~$ ifconfig eth0
eth0 Link encap:Ethernet HWaddr 00:12:de:cd:b0:af
inet6 addr: fe80::bbbb:aaaa:fe18:a94f/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:151981 errors:0 dropped:0 overruns:0 frame:0
TX packets:110240 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:192523623 (192.5 MB) TX bytes:13485268 (13.4 MB)
Interrupt:16
bala@bala-laptop:~$ route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.56.0 * 255.255.255.0 U 0 0 0 vboxnet0
bala@bala-laptop:~$ ping 192.168.56.101
PING 192.168.56.101 (192.168.56.101) 56(84) bytes of data.
64 bytes from 192.168.56.101: icmp_seq=6 ttl=64 time=11.1 ms
64 bytes from 192.168.56.101: icmp_seq=7 ttl=64 time=0.716 ms
64 bytes from 192.168.56.101: icmp_seq=8 ttl=64 time=0.661 ms
64 bytes from 192.168.56.101: icmp_seq=9 ttl=64 time=0.759 ms
64 bytes from 192.168.56.101: icmp_seq=10 ttl=64 time=0.617 ms

When host ubuntu does have IP

bala@bala-laptop:~$ ifconfig eth0
eth0 Link encap:Ethernet HWaddr 00:12:de:cd:b0:af
inet addr:192.168.1.2 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::bbbb:aaaa:fe18:a94f/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:151948 errors:0 dropped:0 overruns:0 frame:0
TX packets:110207 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:192517638 (192.5 MB) TX bytes:13479549 (13.4 MB)
Interrupt:16
bala@bala-laptop:~$ route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 * 255.255.255.0 U 1 0 0 eth0
192.168.56.0 * 255.255.255.0 U 0 0 0 vboxnet0
link-local * 255.255.0.0 U 1000 0 0 eth0
default 192.168.1.1 0.0.0.0 UG 0 0 0 eth0
bala@bala-laptop:~$ ping 192.168.56.101
PING 192.168.56.101 (192.168.56.101) 56(84) bytes of data.
ping: sendmsg: Operation not permitted
ping: sendmsg: Operation not permitted
ping: sendmsg: Operation not permitted

Is there any way by which I can get an IP to my host interface and still be able to ping my Guest OS's host only interface?
Attached Thumbnails
Click image for larger version

Name:	Virutalbox.png
Views:	17
Size:	117.3 KB
ID:	8469  
 
Old 11-24-2011, 10:00 AM   #2
bala150985
Member
 
Registered: May 2009
Location: Chennai, India
Distribution: Ubuntu
Posts: 39

Original Poster
Rep: Reputation: 15
I have shown my problem in video format for better understanding. I don't see a way to attach an AVI file so giving the link here. I hope it does not violate the forum rules, if it does let me know I will remove it immediately.

http://www.youtube.com/watch?v=eQheXEfN1PE
 
Old 11-24-2011, 10:38 AM   #3
bala150985
Member
 
Registered: May 2009
Location: Chennai, India
Distribution: Ubuntu
Posts: 39

Original Poster
Rep: Reputation: 15
Disabled Firestarter on base OS it fixed the issue. However I don't want my firewall to be completely down, I tried adding 192.168.56.0/24 to the allowed list. Still I am unable to ping. Any pointers as to what I should do ?
 
  


Reply

Tags
virtual network



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Host Fedora14, Windows 7 is running as Virtualbox guest- Mic is not working on Guest mwaheed Linux - Virtualization and Cloud 1 10-20-2011 12:51 PM
Forwarding ping packets from one 1st host to 2nd host via 2rd host sachee Linux - Networking 1 09-25-2011 01:51 PM
VirtualBox: Slackware64 host and guest; NFS mount from host fails catkin Linux - Virtualization and Cloud 0 11-15-2010 06:54 AM
Cannot ping host from guest cucolin@ Linux - Virtualization and Cloud 20 05-07-2010 11:25 PM
Why I can't ping winxp host form redhat linux guest in VMWare Jason Bao Linux - Newbie 4 09-09-2006 06:56 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud

All times are GMT -5. The time now is 04:59 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration