In my example i am using, CentOS 6.3 64bit.
Use following steps to create Bridge.
Make Susre Bridge PKG is installed.
# rpm -qa | grep bridge
bridge-utils-1.2-9.el6.x86_64
If not then installed by YUM
# yum install bridge-utils
After installation, go under network Dir.
cd /etc/sysconfig/network-scripts
Here choose your NIC, on which you want to create Bridge. I am using p3p1 (PCI 4 port card )
Do the following setting
[root@*****2 network-scripts]# vi ifcfg-p3p1
DEVICE="p3p1"
HWADDR="00:1B:21:3A:98:F8"
ONBOOT="yes"
BRIDGE=br1
Save the file. Now open/create br1
[root@inf1basevm02 network-scripts]# vi ifcfg-br1
DEVICE="br1"
ONBOOT="yes"
TYPE=Bridge
IPADDR=10.131.11.190
NETMASK=255.255.255.0
GATEWAY=10.131.11.254
Save the file, Now just restart the services.
#/etc/init.d/network restart
Command to check.
brctl show
bridge name bridge id STP enabled interfaces
br1 8000.001b213a98f8 no p3p1
Use following steps to create Bridge.
Make Susre Bridge PKG is installed.
# rpm -qa | grep bridge
bridge-utils-1.2-9.el6.x86_64
If not then installed by YUM
# yum install bridge-utils
After installation, go under network Dir.
cd /etc/sysconfig/network-scripts
Here choose your NIC, on which you want to create Bridge. I am using p3p1 (PCI 4 port card )
Do the following setting
[root@*****2 network-scripts]# vi ifcfg-p3p1
DEVICE="p3p1"
HWADDR="00:1B:21:3A:98:F8"
ONBOOT="yes"
BRIDGE=br1
Save the file. Now open/create br1
[root@inf1basevm02 network-scripts]# vi ifcfg-br1
DEVICE="br1"
ONBOOT="yes"
TYPE=Bridge
IPADDR=10.131.11.190
NETMASK=255.255.255.0
GATEWAY=10.131.11.254
Save the file, Now just restart the services.
#/etc/init.d/network restart
Command to check.
brctl show
bridge name bridge id STP enabled interfaces
br1 8000.001b213a98f8 no p3p1
0 comments:
Post a Comment