clarification request - bridged networking
Posted: 30. Jan 2012, 23:32
Hello community!
I try hard to understand the bridged networking paradigm and am failing miserably.
So, if there is anybody out there, who would care to enlighten me (may she/he, if existing, be manyfold blessed by the God of their choosing) I would, by all means, be very much in debt to you.
What am I trying to do: having a virtualbox machine act as a router between 2 networks: 172.28.0.0/24 and 172.29.0.0/24.
- The host would run ubuntu server with VirtualBox 4.1.8 as the virtualiser.
- The host would have 3 physical ethernet interfaces (eth0, eth1, eth2).
- ALL IP addresses in all networks are static
- The host should have eth0 be it's dedicated interf. and should have a static IP, like 172.28.0.100/24
- The virtual machine would have 2 network interfs, bridged to eth1 and eth2.
- The virtual machine should be seen in the 172.28 net by the IP 172.28.0.1. on the interf. eth1/v.if1
- The virtual machine should be seen in the 172.29 net by the IP 172.29.0.1. on the interf. eth2/v.if2
schematic:
physical machine
|--- eth0 (172.28.0.100/24)
|--- eth1 (?.?.?.?/?) ------- v.if1 (?.?.?.?/?) --- |
|--- eth2 (?.?.?.?/?) ------- v.if2 (?.?.?.?/?) --- | virtual machine
Now, if I understand the concept of bridging correctly, I should be able to construct a bridge br1 by joining eth1 and v.if1; and a br2 accordingly, in some sort of way. The way is my quest.
What I do not understand is:
- What happens when I choose "bridged" in the network config of the vbox machine? (I do not see a virtual interface or a bridge appearing on either host nor guest)
- On which side should the config of the bridge happen, so that the above works (So: which ?.?.?.? in the above scheme would hold the 172.28.0.1, etc.)?
- And where in the scheme would br1 and br2 appear?
If anybody could find the time to explain things to me, that would be grand.
A link to some site describing a setup as above would also be much appreciated.
Thank you very much in advance!
P.S. In all the material I have looked at so far, there was not one, that I could extract the information from:
http://www.virtualbox.org/manual/ch06.html
http://samiux.wordpress.com/2007/07/11/ ... irtualbox/
http://forum.pfsense.org/index.php?topic=40074.0
http://aztcs.org/meeting_notes/linuxsig ... -Linux.pdf
http://timita.org/wordpress/2011/07/29/ ... -preamble/
http://www.linuxforen.de/forums/showthread.php?t=236444
I try hard to understand the bridged networking paradigm and am failing miserably.
So, if there is anybody out there, who would care to enlighten me (may she/he, if existing, be manyfold blessed by the God of their choosing) I would, by all means, be very much in debt to you.
What am I trying to do: having a virtualbox machine act as a router between 2 networks: 172.28.0.0/24 and 172.29.0.0/24.
- The host would run ubuntu server with VirtualBox 4.1.8 as the virtualiser.
- The host would have 3 physical ethernet interfaces (eth0, eth1, eth2).
- ALL IP addresses in all networks are static
- The host should have eth0 be it's dedicated interf. and should have a static IP, like 172.28.0.100/24
- The virtual machine would have 2 network interfs, bridged to eth1 and eth2.
- The virtual machine should be seen in the 172.28 net by the IP 172.28.0.1. on the interf. eth1/v.if1
- The virtual machine should be seen in the 172.29 net by the IP 172.29.0.1. on the interf. eth2/v.if2
schematic:
physical machine
|--- eth0 (172.28.0.100/24)
|--- eth1 (?.?.?.?/?) ------- v.if1 (?.?.?.?/?) --- |
|--- eth2 (?.?.?.?/?) ------- v.if2 (?.?.?.?/?) --- | virtual machine
Now, if I understand the concept of bridging correctly, I should be able to construct a bridge br1 by joining eth1 and v.if1; and a br2 accordingly, in some sort of way. The way is my quest.
What I do not understand is:
- What happens when I choose "bridged" in the network config of the vbox machine? (I do not see a virtual interface or a bridge appearing on either host nor guest)
- On which side should the config of the bridge happen, so that the above works (So: which ?.?.?.? in the above scheme would hold the 172.28.0.1, etc.)?
- And where in the scheme would br1 and br2 appear?
If anybody could find the time to explain things to me, that would be grand.
A link to some site describing a setup as above would also be much appreciated.
Thank you very much in advance!
P.S. In all the material I have looked at so far, there was not one, that I could extract the information from:
http://www.virtualbox.org/manual/ch06.html
http://samiux.wordpress.com/2007/07/11/ ... irtualbox/
http://forum.pfsense.org/index.php?topic=40074.0
http://aztcs.org/meeting_notes/linuxsig ... -Linux.pdf
http://timita.org/wordpress/2011/07/29/ ... -preamble/
http://www.linuxforen.de/forums/showthread.php?t=236444