LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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-2009, 10:28 PM   #1
mindrunner
LQ Newbie
 
Registered: Mar 2004
Posts: 5

Rep: Reputation: 0
How to Configure This Type of Bridged Network?


Hi all,

Firstly, I have no idea of what the proper networking terms for this should be, so I hope this crude illustration may help explain what I want to do:-

I run either Fedora 11 or Centos 5.

I have a machine connected to my standard dlink home router.


PC eth0(192.168.0.10) -> router(192.168.0.1),dhcp & gateway

How do I add another network subnet within the eth0 for VMs?

PC eth0(192.168.0.10) -> router(192.168.0.1)
br0(172.16.1.0/24) -> router(192.168.0.1)

I want to then add VMs into the new network(172.16.1.0/24), and make them accessible to other machines in my home lan as well.

Sorry for the 'vague'-ness. Quite the network noob i am.

Last edited by mindrunner; 08-07-2009 at 10:33 PM. Reason: Edit title to make more clear
 
Old 08-08-2009, 12:23 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,397

Rep: Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963
well your choice of VM system will sort this out for you, you should have no need to worry about this yourself. If you're using Xen under CentOS 5 then you'll be given a virtual eth0 which bridges to peth0, your physical eth0 device, which also connects to a xenbr0 interface which puts the VM's on the same subnet as the machine itself. If you put VM's on a seperate internal network you then need to sort out routing on the rest of your network to hit those IP's via this host machine which is kinda sucky. Alternatively you can look to nat all VM's to the IP address of the physical machine, but that would only assist with the VM's getting out, not others getting in. So a bridge is preferable really.
 
Old 08-08-2009, 02:12 AM   #3
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Servers: Debian Squeeze and Wheezy. Desktop: Slackware64 14.0. Netbook: Slackware 13.37
Posts: 8,546
Blog Entries: 28

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
If you use VirtualBox after 2.x (2.1?), VirtualBox running on the host does the bridging itself so no special bridge configuration is required.
 
Old 08-08-2009, 10:28 AM   #4
mindrunner
LQ Newbie
 
Registered: Mar 2004
Posts: 5

Original Poster
Rep: Reputation: 0
Hi guys,

thanks for the info. But I was wondering, If I wanted to do such a configuration in linux, how would I configure it ?

Add a Bridge interface, some tun / tap drivers and iptables for routing ?
 
Old 08-08-2009, 10:48 AM   #5
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Servers: Debian Squeeze and Wheezy. Desktop: Slackware64 14.0. Netbook: Slackware 13.37
Posts: 8,546
Blog Entries: 28

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Yes, tun and tap. I did it for VirtualBox prior to version 2.x. There was way to much half-informed information on the Internet about how to do it -- my head span -- but the VirtualBox manual was very helpful. Notes attached.
Attached Files
File Type: pdf tun and tap.pdf (66.7 KB, 5 views)
 
  


Reply

Tags
network bridge


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
How to configure a reverse zone as forwarder type? sharu99 Linux - Server 5 06-09-2009 03:14 PM
How to configure a Sun Type 7 Keyboard (Solaris 10 11/06) crisostomo_enrico Solaris / OpenSolaris 8 07-26-2007 05:41 AM
configure bash to not show what you type until the prompt juanbobo Linux - Software 1 04-01-2005 01:55 PM
How do I configure my standard Session-type erik_wout_ew2 Linux - Software 4 12-09-2003 11:02 AM
error when type ./configure eduac Linux - Software 3 07-10-2003 01:35 PM


All times are GMT -5. The time now is 08:39 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration