Friday, March 8, 2013

Adding new Network Alias to a Network Card while bridging

Adding new Network Alias to a Network Card while bridging works good in Red Hat Enterprise Linux 6.2

Step 1: Copy the configuration file of bridge as follows:
#cp /etc/sysconfig/network-scripts/ifcfg-br0 /etc/sysconfig/network-scripts/ifcfg-br0:0

Step 2: Open the copied file and make the changes in IPADDR, DEVICE, NAME, PREFIX (refer the following entries)
#vim /etc/sysconfig/network-scripts/ifcfg-br0:0

DEVICE="br0:0"
NM_CONTROLLED="NO"
ONBOOT=yes
TYPE="Bridge"
IPV6INIT=no
NAME="System br0:0"
UUID=9c92fad9-6ecb-3e6c-eb4d-8a47c6f50c04
BOOTPROTO=none
IPADDR=192.168.250.250
PREFIX=24
GATEWAY=192.168.250.1
DEFROUTE=yes
IPV4_FAILURE_FATAL=yes
DNS1=192.168.250.1
DNS2=4.2.2.2
HWADDR=00:0C:41:22:8C:2F
DELAY="0"

Note: There is no change in UUID & HWADDR.

Step3: Restart the service or enable the particular device. (anyone of the following)
#ifup br0:0       or     #service network restart