Install and configure network bridge
Steps:
1. Install brdige:
Run:
$ yum clean all && yum update
$ yum install -y bridge-utils
2. Create conf file for br0 interface
Run:
$ cp /etc/sysconfig/network-scripts/ifcfg-eth0 /etc/sysconfig/network-scripts/ifcfg-br0
3. Backup conf file for eth0
Run
$ cp /etc/sysconfig/network-scripts/ifcfg-eth0 ~/
4. Comment file /etc/sysconfig/network-scripts/ifcfg-eth0
Run:
$ sed --in-place "s/^/#/g" /etc/sysconfig/network-scripts/ifcfg-eth0
5. Edit conf file for eth0.
Output of /etc/sysconfig/network-scripts/ifcfg-eth0:
DEVICE=eth0
ONBOOT=yes
BRIDGE=br0
6. Edit conf file for br0
Output of /etc/sysconfig/network-scripts/ifcfg-br0:
DEVICE=br0
TYPE=Bridge
BOOTPROTO=dhcp
ONBOOT=yes
DELAY=0
NM_CONTROLLED=no
7. Add br0 network interface
Run:
$ reboot
Steps:
1. Install brdige:
Run:
$ yum clean all && yum update
$ yum install -y bridge-utils
2. Create conf file for br0 interface
Run:
$ cp /etc/sysconfig/network-scripts/ifcfg-eth0 /etc/sysconfig/network-scripts/ifcfg-br0
3. Backup conf file for eth0
Run
$ cp /etc/sysconfig/network-scripts/ifcfg-eth0 ~/
4. Comment file /etc/sysconfig/network-scripts/ifcfg-eth0
Run:
$ sed --in-place "s/^/#/g" /etc/sysconfig/network-scripts/ifcfg-eth0
5. Edit conf file for eth0.
Output of /etc/sysconfig/network-scripts/ifcfg-eth0:
DEVICE=eth0
ONBOOT=yes
BRIDGE=br0
6. Edit conf file for br0
Output of /etc/sysconfig/network-scripts/ifcfg-br0:
DEVICE=br0
TYPE=Bridge
BOOTPROTO=dhcp
ONBOOT=yes
DELAY=0
NM_CONTROLLED=no
7. Add br0 network interface
Run:
$ reboot