Discussion:
Setting up 2 bridges on 2 network adapters
(too old to reply)
Wolf Humble
2018-01-29 21:41:52 UTC
Permalink
Hi,

I have two network cards and the devices, ip addresses and gateways
are as following:
eth1 – ip1: aaa.189.aaa.254 - GW: aaa.189.aaa.253
eth1 – ip2: bbb.143.bbb.214 - GW: bbb.143.bbb.213

eth2 – ip3: ccc.170.ccc.202 - GW: ccc.170.ccc.201
eth2 – ip4: ddd.180.ddd.101 - GW: ddd.180.ddd.100

As the interfaces are in different broadcast domains I have learned,
via the libteam list, that I cannot join these two together with any
link aggregation like teaming or bonding.

I will therefore set up two bridges:,
* eth1 in br1 for the IP addresses ip1 and ip2 above
* eth2 in br2 for the IP addresses ip3 and ip4 above

I will be using ip1 to control the host machine, and ip2 - ip4 for KVM VMs.

I have a few questions that I hope you can help me with:

1) Since ip1 only will be used for administrating the host machine,
whereas ip2 - ip4 will be used for the VMs, should br1 be set up any
differently than br2?

2) Would it be better to move ip2 over to br2? If yes, should ip1
still be connected to br1 or should I rather drop br1 and set its IP
address directly on the ethernet adapter itself, e.g. within
ifcfg-eno1 (Centos)?

3) Given two bridges, and initial setup shown above:
Since the machine has only one default route, e.g:
[#] ip route
default via aaa.189.aaa.253 dev br1 proto static metric 425
...

Is it better for the VMs to go via a GW on br2 rather than br1, or
does this not have any effect for the VMs?


4) I have seen examples where the bridge is set up with the following
bridging options for VMs:

[#] cat network-scripts/ifcfg-br0

BRIDGING_OPTS=priority=32768


a) Is that used, or should I rather skip it?
b) Is there good, basic setup I could follow when setting up a bridge
to use for VMs?

Thanks for you comments!


Wolf

Continue reading on narkive:
Loading...