Ethernet bridging at Linux Guest
Posted: 30. Dec 2012, 09:23
Hi,
I am trying to create a small topology as follows:
VM-AEnd <-----> VM-ISys <--------> VM-ZEnd
At VM-AEnd
eth0: NATed
eth1: Internal Network 1
At VM-ISys
eth0: NATed
eth1: Internal Network 1
eth2: Internet Network 2
At VM-ZEnd
eth0: NATed
eth1: Internal Network 2
Now at Guest Machine --> VM-ISys, I wanted to do ethernet bridging of eth1 & eth2 interface so that I expand the broadcast domain of Internal Network 1 into Internal Network 2 and vice versa.
I do not want to put the VM into single hostonly network, and do not want to assume about L3 network configurations. Hence I wanted simple ethernet bridging at VM-ISys so that I can create a test network topology in which I can play around.
At VM-Isys -->
(a) brctl of eth1 & eth2 does not work. The moment I add br0 with eth1 & eth2, the connectivity between VM-AEnd & VM-ISys is lost (with typical IPv4 configuration through ping). Same happens between VM-ZEnd and VM-ISys.
(b) If I create tap devices in host and attach them to the VM-AEnd, ZEnd & ISys, then will brctl based briding at the host give the above desired behaviour.
i.e. traffic in Internal Network 1 and Internal Network 2 gets bridged only at VM-ISys and not elsewhere.
Any suggestion how I can achieve the same ?
Regards,
Mahesh Babu
I am trying to create a small topology as follows:
VM-AEnd <-----> VM-ISys <--------> VM-ZEnd
At VM-AEnd
eth0: NATed
eth1: Internal Network 1
At VM-ISys
eth0: NATed
eth1: Internal Network 1
eth2: Internet Network 2
At VM-ZEnd
eth0: NATed
eth1: Internal Network 2
Now at Guest Machine --> VM-ISys, I wanted to do ethernet bridging of eth1 & eth2 interface so that I expand the broadcast domain of Internal Network 1 into Internal Network 2 and vice versa.
I do not want to put the VM into single hostonly network, and do not want to assume about L3 network configurations. Hence I wanted simple ethernet bridging at VM-ISys so that I can create a test network topology in which I can play around.
At VM-Isys -->
(a) brctl of eth1 & eth2 does not work. The moment I add br0 with eth1 & eth2, the connectivity between VM-AEnd & VM-ISys is lost (with typical IPv4 configuration through ping). Same happens between VM-ZEnd and VM-ISys.
(b) If I create tap devices in host and attach them to the VM-AEnd, ZEnd & ISys, then will brctl based briding at the host give the above desired behaviour.
i.e. traffic in Internal Network 1 and Internal Network 2 gets bridged only at VM-ISys and not elsewhere.
Any suggestion how I can achieve the same ?
Regards,
Mahesh Babu