Bridge Configuration

Updated -

This app is designed to help you configure a bridged network interface for for applications such as KVM using Red Hat Enterprise Linux 5.4 or later. You can download an all-in-one script and execute it.

#chmod +x bridge-config.sh 
#./bridge-config.sh 

Was this helpful?

We appreciate your feedback. Leave a comment if you would like to provide more detail.
It looks like we have some work to do. Leave a comment to let us know how we could improve.

Get notified when this content is updated

Follow

7 Comments

Subscriber exclusive content

An active Red Hat subscription is required to participate.

Log In

This lab does not work for me on IE10 on Windows 7 64-bit SP1. Specifically, when I click to download any of the 5 files, nothing happens. The .sh and 3 conf files appear as blob URLs, while the .zip file appears as the following URL: https://access.redhat.com/labs/kvmbridgeconfiguration/

I successfully worked around this issue by using FireFox ESR 24.7 on the same computer.

Hi Michael,

Thanks for using the workaround to get the tool working. Our mainly targeted browsers are those that can be running on RHEL such as Firefox, Chrome. We will later test it for more browsers.

I was looking into generated kvm-config and there is a typo at the beginning. Instead of "dose" should be probably "does". Please remove my comment after correction.

Thanks. We will fix this ASAP.

Nice. How about several NICs bonded and bridged?

Sounds good. We will add this into our feature list and implement it later.

I'd like to have not only DHCP/Static IP but None also as a option.
We do use such a configuration in production

Really nice :). Is lacking RHEL7 support, but out than that is really nice :)

There was an effort to support RHEL 7, but we hold off it because systemd (required by this tool) does not apply some required iptables tunables on RHEL7 and there is no solution yet.
We can add the RHEL 7 support once all required iptables tunables are supported on RHEL 7.

Thanks, Interesting.

Any idea of where one could find documentation on how to achieve the same configurations, using the network described in the virsh network XML file?

It appears virsh man page is the documentation you need to use. If you have further questions, you can contact support team.

no matter what i enter for Gateway, I get "Gateway is invalid"

Hi Venkatesh,

I tried it just now, and I can get it working with the gateway set to 192.168.1.1

Why you saw the problem might be that your browser is using an outdated Javascript. Can you reload the page or even clean historical data and try again?

(repeated commend - removed.)

We should add RHEL 7 in this tool .
It will be very useful for new cases..
Thanks.

+1

How do I add multiple interfaces for slaves for a bridge (without bonding) ?

I tried multiple ways likem (1) eth0, eth1 (2) eth0 eth1 (3) "eth0,eth1" etc...but the script does NOT generate appropriate steps for both the interfaces (which will be part of bridge as slaves).

Will appreciate your help/feedback.

Regards, Dharmesh.

Hi Dharmesh, Can you help me understand what you want to achieve here? This app does not support adding multiple interface names, because having one bridge associated with more than one interfaces may result in unexpected problems, such as network packet loss.

Thanks, Dong

Oh Ok, So first I need to create a bond with multiple interfaces and then create a bridge over that bond. Is that the recommended way to go when multiple interfaces are present ?

Regards, Dharmesh.

Yes. that is the recommended way. If you need assistance for configuring a bonded interface, there is another tool: https://access.redhat.com/labs/networkbondinghelper/

Yes, the link helps w.r.t. bonding. However, I did not see an option in that tool to do a bridge over a bonded interface. Is there a tool for the same ? Or will I have to follow manual method of doing the same ? Will appreciate your response.

Thanks, Dharmesh.

Firstly, you use the networkbondinghelper app to create a bonded interface then, you use the kvmbridgeconfiguration app to create a bridge. Input the name of the bonded interface you just created to the "NIC / Bond Name" input field.

let me know if you have other questions about these apps.

Hi,

Bridge assumes presence of at least two ports. Where is in your script we can specify more than one port? Generated script seems quite idiotic vs elegant "brctl addbr/brctl addif/ifconfig up".