[CentOS] question on alias IPs using ifcfg-eth0:x

Barry Brimer lists at brimer.org
Fri Sep 14 19:46:32 UTC 2007

Quoting Ray Leventhal <centos at swhi.net>:

> Barry Brimer wrote:
> > I apparently have my alias files all ifcfg-eth0:0 - ifcfg-eth0:7 show
> >
> >> DEVICE=eth0:0.  Is this right?  It seems odd to me and while it does
> >> seem odd, the alias IPs are being appropriately responded to, answering
> >> pings and nameserver requests.
> >>
> >
> > /etc/sysconfig/network-scripts/ifcfg-eth0:0 = DEVICE=eth0:0
> > /etc/sysconfig/network-scripts/ifcfg-eth0:1 = DEVICE=eth0:1
> >
> >

> My question now is, how can the box be responding to all those IPs with
> the ifcfg-eth0:x files clearly not what they should be?

The network init scripts do not actually use /sbin/ifconfig, they really use
/sbin/ip from the iproute package.  I suspect if you run "ip addr list" you
will see all of your IP addresses under "eth0".


More information about the CentOS mailing list