Bridging Network Interfaces

From Bitbull Wiki
Jump to navigation Jump to search

1) create virtual bridge interfaces
/etc/sysconfig/network-scripts/ifcfg-br0

DEVICE=br0
TYPE=Bridge
BOOTPROTO=static
BROADCAST=192.168.11.255
IPADDR=192.168.11.222
NETMASK=255.255.255.0
NETWORK=192.168.11.0
GATEWAY=192.168.11.254
ONBOOT=yes
USERCTL=no
IPV6INIT=no
PEERDNS=no
ONBOOT=yes

2) attach all the interfaces to the bridge
/etc/sysconfig/network-scripts/ifcfg-eth0

DEVICE=eth0
BRIDGE=br0
ONBOOT=yes

/etc/sysconfig/network-scripts/ifcfg-wlan0

DEVICE=wlan0
BRIDGE=br0
ONBOOT=yes

3) test it

service network restart
brctl show
ifconfig