LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-07-2008, 04:50 PM   #1
htamayo
Member
 
Registered: Jan 2005
Location: san salvador, el salvador
Distribution: Debian Stable, UbuntuStudio Karmic Koala
Posts: 190

Rep: Reputation: 30
bridging networking with VirtualBox and Ubuntu


Hi, I'm using ubuntu 8.04 and virtualbox 1.6.2. I'm trying to bridge networking between my host OS and the guest OS, so I'm following a how-to that I found and it was written using exactly the same version of virtualbox and ubuntu.


So, when I do the follow steps:
Code:
sudo invoke-rc.d networking stop

sudo nano /etc/network/interfaces

auto lo
iface lo inet loopback

auto br0
iface br0 inet static
address       192.168.1.2
netmask       255.255.255.0
broadcast     192.168.1.255
gateway       192.168.1.1

bridge_ports eth0
bridge_fd 9
bridge_hello 2
bridge_maxage 12
bridge_stp off

auto eth0
iface eth0 inet dhcp

sudo /etc/init.d/networking restart
In fact, I obtained my IP from the dhcp and also the bridge got the ip static that I want, but I just lost internet conecction, it seems that I'm out of the network services, if I tried to use the internet I received a message from my browser that the proxy is rejecting connection.

My network enviroment is:
-Squid for authentication and access to the internet
-Astaro for web filter
-the network is "A" class
-dhcp

My questions are:
-how can I create my bridge object --for networking between host and guest OS-- and at the same time keep my network services? such as internet

-why the br0 object creates a conflict between the internet connection?

-Do i have to use a Class A ip for br0 setting or can I use the setting that I decide to use? (address 192.168.1.2, netmask 255.255.255.0 ....)

Regards
 
Old 08-07-2008, 07:23 PM   #2
grepmasterd
Member
 
Registered: Aug 2003
Location: Seattle
Distribution: ubuntu, lately
Posts: 182
Blog Entries: 1

Rep: Reputation: 35
I haven't used virtualbox, but this doesn't look like the right way to set up a linux bridge. you might try looking at this link instead

http://affix.sourceforge.net/affix-n...user/x199.html

you can't attach eth0 to br0 and then dhcp eth0. you can only dhcp the bridge address, br0. use 'brctl show' to display the bridge status.

you can configure br0 in the same way you would configure eth0 (when it is not a bridge member), there are no arbitrary restrictions like class-restricted addressing.
 
Old 08-07-2008, 07:26 PM   #3
grepmasterd
Member
 
Registered: Aug 2003
Location: Seattle
Distribution: ubuntu, lately
Posts: 182
Blog Entries: 1

Rep: Reputation: 35
or better yet

/usr/share/doc/bridge-utils/README.Debian.gz
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
VirtualBox and networking AQG Linux - Software 2 06-02-2008 12:50 PM
VMWare's bridging vs Window's bridging - routing is messed up when Windows bridging brenan99 General 0 05-04-2008 10:24 PM
Network Bridging With VirtualBox Woodsman Slackware 5 04-21-2008 02:06 PM
Networking Ubuntu on VirtualBox on Vista jgombos Linux - Networking 2 03-14-2008 09:57 PM
Ubuntu Host Virtualbox guest Networking weirdness ddales Linux - Networking 0 01-20-2008 02:24 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:03 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