2nd IP address on an interface

Tom H tomh0665 at gmail.com
Fri Aug 29 08:49:53 UTC 2014


On Thu, Aug 28, 2014 at 6:11 PM, Robert Moskowitz <rgm at htt-consult.com> wrote:
> On 08/28/2014 04:24 PM, Tom Horsley wrote:
>>
>> These days, I'm pretty sure you are supposed to include
>> IPADDR2=, NETMASK2=, etc. in the one ifcfg-eth0 file
>> rather than creating a eth0:0 file (at least that worked
>> for me on centos 6.5 this week when setting up IP aliases).
>
> I added the IPADDR2 and NETMASK2 and it did not add the second address.
> Even after a reboot.

If you use IPADDR2, you have to display ip addresses with "ip a"
because "ifconfig" won't see the second address.


More information about the users mailing list