[CentOS] Cannot set alias IP address

Nikolaos Milas

nmilas at noa.gr
Mon Jun 18 09:06:10 UTC 2012


On 18/6/2012 11:31 πμ, Nikolaos Milas wrote:

> I cannot set an alias IP address.

Note that if I issue:

# ifconfig eth0:1 xxx.xxx.xxx.131 netmask 255.255.255.248

then it works fine. Then I can ping .131 without problems.

Why doesn't it run correctly when run from 
/etc/sysconfig/network-scripts/ifcfg-eth0:1?

I also tried:

eth0:1
--------------------------------------
DEVICE="eth0:1"
ONBOOT="yes"
ONPARENT="yes"
BOOTPROTO=static
IPADDR=xxx.xxx.xxx.131
NETMASK=255.255.255.248
--------------------------------------

without success.

Please help.

Thanks,
Nick



More information about the CentOS mailing list