Adding alias networking in C-6.

Issues related to configuring your network
Post Reply
grifs71
Posts: 157
Joined: 2007/10/02 05:15:38
Location: Arkansas, United States

Adding alias networking in C-6.

Post by grifs71 » 2011/07/21 22:10:41

In the past in CentOS4/5 and even in older versions of RHEL variants when adding an alias of the nic, I always used NETMASK=255.255.255.0 for example.

In the new release I noticed that the ifcfg-eth0 has the new notation of PREFIX=24, when I created the alias off the nic I followed suit.

It turns out, the correct method is still like the example below:

DEVICE=eth0:1
NM_CONTROLLED=no (why does this come in static configs???)
ONBOOT=yes
TYPE=Ethernet
BOOTPROTO=none
IPADDR=192.168.1.1
NETMASK=255.255.255.0
NAME=eth0:1
USERCTL=no


I had (did NOT work correctly) ---- PREFIX=24 ---- in there before hand and it gave me a netmask of 255.0.0.0 which is incorrect.



Does anyone know why the PREFIX does not work in the alias?

I assumed this was the manner since they used PREFIX in the ifcfg-eth0 config.

Post Reply

Return to “CentOS 6 - Networking Support”