[CentOS] Weird behaviour of ifcfg scripts

Timo Schoeler timo.schoeler at riscworks.net
Tue Oct 2 09:23:03 EDT 2012


On 10/02/2012 03:03 PM, thus Reindl Harald spake:
>
> Am 02.10.2012 15:00, schrieb Timo Schoeler:
>> Hi,
>>
>> I accidentally found that the existence of a file e.g. named
>> ifcfg-eth1:1 put in /etc/sysconfig/network-scripts/ leads to the
>> appropriate interface being created even with the option 'ONBOOT' set to
>> 'no':
>>
>> DEVICE="eth1:1"
>> BOOTPROTO="static"
>> NM_CONTROLLED="no"
>> ONBOOT="no"
>> TYPE="Ethernet"
>> IPADDR=12.34.56.78
>> NETMASK=255.255.255.0
>>
>> Is that intended behaviour?
>
> yes because what you want is ONPARENT since it
> is a pseudo device to assign more than one IP
> to a physical NIC

*facepalm

Thanks, yes.


More information about the CentOS mailing list