RHEL 6.1 Network Configurations

RedHat Enterprise Linux 6.1 Network Configurations

The names of the network interfaces have changed for some systems.
The first interface in RHEL 6.0 is eth0 and in RHEL 6.1, its em1.
so, eth0 = em1, eth1 = em2, and so on for Gagabit interface.
For Intel x520 10 Gb its:
p3p1, p3p2, p4p1, p4p2 and so on.

To configure the interface, edit its config file:
ifcfg-em1 for the first interface and
ifcfg-p3p1 for the first Intel x520 interface.

The Network devices configuration is located at:
/etc/sysconfig/network-scripts/

For Example configuring ifcfg-em1:
vi /etc/sysconfig/network-scripts/
DEVICE=”em1″
HWADDR=”xx:xx:xx:xx:xx:xx”
NM_CONTROOLED=”yes”
BOOTPROTO=”none”
ONBOOT=”yes”
IPADDR=”10.0.1.27″
NETMASK=”255.255.255.0″
IPADDR=”10.0.1.27″
USERCTL=”no”
GATEWAY=
#############################

For DHCP:

HWADDR=”xx:xx:xx:xx:xx:xx”
NM_CONTROOLED=”yes”
BOOTPROTO=”dhcp”
ONBOOT=yes

#############################

Parameters:
ONBOOT=
yes – This device should be activated at boot-time.
no – This device should not be activated at boot-time.

BOOTPROTO=
none – No boot-time protocol should be used.
bootp – The BOOTP protocol should be used.
dhcp – The DHCP protocol should be used.