LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 07-31-2010, 09:12 PM   #1
enine
Senior Member
 
Registered: Nov 2003
Distribution: Slackʍɐɹǝ
Posts: 1,486
Blog Entries: 4

Rep: Reputation: 282Reputation: 282Reputation: 282
Bridged networks in VirtualBox only works one way.


I've setup a virtual guest on VirtualBox using a bridged adapter and can not reach the guest from the rest of my network. Its been a while but I thought this used to work. So example

test workstation 192.168.1.100
host server 192.168.1.108
virtual guest 192.168.1.109

the workstation on .100 can't ping the guest on .109 but can the server on .108. I thought I've set this up before and it worked fine, would think the bridged adapter should pass through both ways.
 
Old 08-02-2010, 01:43 PM   #2
alroger
Member
 
Registered: Apr 2008
Location: Brazil
Distribution: Ubuntu
Posts: 36

Rep: Reputation: 17
It should work without any trouble. Are you sure you using BRIDGE mode, and not NAT or user mode?
Is there only one network adapter on the host?
Could it be a firewall blocking stuff from the LAN?
 
Old 08-03-2010, 08:53 AM   #3
scheidel21
Senior Member
 
Registered: Feb 2003
Location: CT
Distribution: Debian 6+, CentOS 5+
Posts: 1,323

Rep: Reputation: 100Reputation: 100
Go with what alroger said, I would hazard you are using host only, or something other than bridged by accident. If that is not the case t is very likely the guest is running some sort of firewall.
 
Old 08-03-2010, 09:23 PM   #4
enine
Senior Member
 
Registered: Nov 2003
Distribution: Slackʍɐɹǝ
Posts: 1,486

Original Poster
Blog Entries: 4

Rep: Reputation: 282Reputation: 282Reputation: 282
I double and triple checked, guest is set for bridged. Guest can get to the internet, ping other systems on the network but not the host. Other systems on the network can't ping the guest, no firewall, its just a simple install of slackware 13.1.
Only think I could think, is virtualbox particular about what nic you bridge the guests to? I'm using the hosts wireless for now until I run a cable to my closet.
 
Old 08-03-2010, 09:26 PM   #5
krasl
Member
 
Registered: Nov 2005
Distribution: Fedora 4
Posts: 40

Rep: Reputation: 15
If the guest is running a recent Linux distro with iptables, try turning iptables off then testing. (not a good idea in production environments)

service iptables stop on Fedora-based distros

What about firewall on host pc? does it have one?
 
Old 08-03-2010, 09:58 PM   #6
enine
Senior Member
 
Registered: Nov 2003
Distribution: Slackʍɐɹǝ
Posts: 1,486

Original Poster
Blog Entries: 4

Rep: Reputation: 282Reputation: 282Reputation: 282
The host is also slackware 13.1, iptables or any other firewall doesn't run by default, I'd have to turn any on myself.
 
Old 08-04-2010, 12:01 AM   #7
alroger
Member
 
Registered: Apr 2008
Location: Brazil
Distribution: Ubuntu
Posts: 36

Rep: Reputation: 17
Thumbs down

Quote:
Originally Posted by enine View Post
I double and triple checked, guest is set for bridged. Guest can get to the internet, ping other systems on the network but not the host. Other systems on the network can't ping the guest, no firewall, its just a simple install of slackware 13.1.
Only think I could think, is virtualbox particular about what nic you bridge the guests to? I'm using the hosts wireless for now until I run a cable to my closet.
Ooooops, I think that's your problem. Very few wireless adapters will work right with BRIDGE. Try the cable before anything else.
 
Old 08-04-2010, 07:46 AM   #8
krasl
Member
 
Registered: Nov 2005
Distribution: Fedora 4
Posts: 40

Rep: Reputation: 15
Sorry; didn't notice that you were working with a wireless adapter.

Here's a quote from http://forums.virtualbox.org/viewtopic.php?t=1787
"Wireless adapters don't always bridge properly in Windows. They will report connected to the bridge (so it reports bridged) but does not pass on the IP address at all..."

Good luck!
 
Old 08-04-2010, 07:57 PM   #9
enine
Senior Member
 
Registered: Nov 2003
Distribution: Slackʍɐɹǝ
Posts: 1,486

Original Poster
Blog Entries: 4

Rep: Reputation: 282Reputation: 282Reputation: 282
Quote:
Originally Posted by krasl View Post
Sorry; didn't notice that you were working with a wireless adapter.

Here's a quote from http://forums.virtualbox.org/viewtopic.php?t=1787
"Wireless adapters don't always bridge properly in Windows. They will report connected to the bridge (so it reports bridged) but does not pass on the IP address at all..."

Good luck!
I'm not running Windows.
 
Old 08-05-2010, 01:56 AM   #10
alroger
Member
 
Registered: Apr 2008
Location: Brazil
Distribution: Ubuntu
Posts: 36

Rep: Reputation: 17
enine, forget bridging on wireless adapters.
A quote from https://help.ubuntu.com/community/KVM/Networking

Warning: Network bridging will not work when the physical network device (eg eth1, ath0) used for bridging is a wireless device (eg ipw3945), as most wireless device drivers do not support bridging!

And the tech behind it:
http://www.linuxfoundation.org/colla...reless_card.21
 
Old 08-05-2010, 06:21 AM   #11
enine
Senior Member
 
Registered: Nov 2003
Distribution: Slackʍɐɹǝ
Posts: 1,486

Original Poster
Blog Entries: 4

Rep: Reputation: 282Reputation: 282Reputation: 282
OK, thanks, that makes more sense. I'll have to pick up a roll or cable next week and climb in the attic.
 
  


Reply



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
VirtualBox 3.1.6 works better with Slackware/KDE Erik_FL Slackware 2 04-04-2010 11:58 PM
VirtualBox Bridged Network help bourne Linux - Software 4 07-21-2009 04:06 PM
VirtualBox-2.2 - bridged networking on Slackware-12.2 botnet Linux - Software 10 05-02-2009 01:56 AM
iwconfig - works for other networks, but not mine? neutron001 Linux - Wireless Networking 2 04-15-2008 03:49 PM
Make 2 networks works as one novis Linux - Networking 1 06-15-2006 08:24 AM

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

All times are GMT -5. The time now is 11:23 PM.

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