Re: alias ip-addresses at loopback

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



2008/9/15 Dmitry Cherkasov <doctorchd@xxxxxxxxx>:
> 2008/9/15 Robert Moskowitz <rgm@xxxxxxxxxxxxxxx>:
>>> Could anybody advice on the following problem.
>>> I need to assign several ip-addresses to 'lo' interface (beside
>>> 127.0.0.1). It is convenient to me to implement NAT with such
>>> addresses.
>>> I can easily assign these addresses on running system with 'ip address
>>> add <some addr/prefix> dev lo'. Yet I cannot understand how to make
>>> these settings apply on boot time. Certainly it is possible to patch
>>> standard system scripts like /etc/rc.d/init.d/network, but I suppose
>>> there must be more straight way to do this.
>>
>> This is well enough explained in
>> /usr/share/doc/initscripts-8.45.19.EL/sysconfig.txt
>>
>> In /etc/sysconfig/network-scripts you need to create a file: ifcfg-l0:1
>> where all you really need is the ipaddr and netmask values.
>
>
> This works fine for 'eth' and does not work for 'lo'.


The problem has been solved.
The solution is to use file ifcfg-lo-range.



-- 
Dmitry Cherkasov
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux