Вы находитесь на странице: 1из 2

Bridge Interfaces

Lab 1
Purpose: Create one bridge using shell commands. The bridge created
this way is temporary, since it will be lost after restart.

Procedure: use brctl to create a bridge. Brctl can also be used to add
or remove interfaces from the bridge.
[root@centos6 /]# brctl addbr ibridge
[root@centos6 /]# brctl addif ibridge intel0
[root@centos6 /]# brctl addif ibridge intel1
You can also activate stp:
[root@centos6 /]# brctl stp ibridge on
[root@centos6 /]# brctl show
bridge name
bridge id
STP enabled
ibridge
8000.0002a54f10c4
yes
intel1

interfaces
intel0

Lab 2
Purpose: Create a permanent bridge by configuring specific files.

Procedure: Edit
Create the ifcfg-<bridge_name> file and add settings for the bridge
interface. You can add one IP address (for the local machine).
[root@centos6 network-scripts]# cat ifcfg-ibridge
DEVICE=ibridge
TYPE=Bridge
BOOTPROTO=none
ONBOOT=yes
#IPADDR=10.0.0.1
#NETMASK=255.255.255.0
DELAY=0

Edit the configuration files for the physical interfaces you want to
add to the bridge:
[root@centos6 network-scripts]# cat ifcfg-intel0
DEVICE="intel0"
BOOTPROTO="none"
HWADDR="00:02:A5:4F:10:C4"
NM_CONTROLLED="no"
ONBOOT="yes"
TYPE="Ethernet"
BRIDGE="ibridge"
UUID="35e34c3f-bc3e-4f6e-8dbc-9bd830f1a827"
[root@centos6 network-scripts]# cat ifcfg-intel1
DEVICE="intel1"
BOOTPROTO="none"
HWADDR="00:02:A5:4F:10:C5"
NM_CONTROLLED="no"
ONBOOT="yes"
BRIDGE="ibridge"
TYPE="Ethernet"
UUID="128552d3-0903-429e-a354-f651b1889ce6"

Вам также может понравиться