CertificationMaterials

Configure Network Bridges

Bridge Configuration in YaST

  • Delete the configuration of the bridged device

The IP address is assigned to the bridge, not the network device that is part of the bridge. Therefore, any existing IP configuration should be removed from the device. This can be done in the dialog shown below:

Attach:br0.png

Bridge Configuration in YaST

  • Add a bridge: In the Hardware Dialog, choose Bridge as the Device Type.
  • Configure the IP address of the bridge: The IP configuration of the bridge is done in the usual dialog. Select Bridged Devices to assign a physical

interface to the bridge.

  • Assign devices to the bridge: Select the device you want to connect to the bridge. If the device is already configured, a dialog will open

asking you to confirm the removal of the existing configuration.

Bridge Network Interface: Config File

  • Typically named ifcfgbrX
    BOOTPROTO='static'
    BRIDGE='yes'
    BRIDGE_FORWARDDELAY='0'
    BRIDGE_PORTS='eth0'
    BRIDGE_STP='off'
    IPADDR='10.0.2.1/24'
    STARTMODE='auto'
    USERCONTROL='no'

The brctl Command

  • The brctl command allows you to create and work with network bridges in Linux
  • The brctl command only modifies bridge configuration in memory, persistent bridge configuration must be stored in /etc/sysconfig/network/ifcfg* files
  • The SUSE network configuration scripts use the brctl command to do the actual bridge configuration

Bridges are most frequently used to connect the interfaces of virtual machines to the physical device of the host machine.

The brctl Command: Examples

  • The brctl Command – Bridge Configuration
* Syntax:

brctl <action> <argument(s)>

* Display currently configured bridges:

brctl show

* Create a new bridge:

brctl addbr br1

* Add an interface to a bridge:

brctl addif br1 eth1

* Remove an interface from a bridge:

brctl delif br1 eth1

* Remove an existing bridge:

brctl delbr br1

Trick and tweaks

Other

Certification materials

edit SideBar

Blix theme adapted by David Gilbert, powered by PmWiki