On Tue, Mar 23, 2010 at 6:50 AM, Suresh Kumar Subramanian
<[email protected]> wrote:
> Hi,
>
> 1)  How do i add multiple loopback address in the linux (similar to cisco hw).
> I have one ethernet interface (192.168.101.2/24), and i want to simulate 
> multiple
> private networks(10.1.1.1/24,10.2.1.1/24,10.3.1.1/24). I thought i can add 
> multple
> loopback interface for each network. But i am able to add only one loopback
> device in the linux  (I have used ifconfig lo 10.1.1.1 command for loopback
> device confguration. Also it doesnt accept the mask)
> Any idea how to add multiple loopback addresses?
>
> 2) Also routing table doesnt show the loopback device.
> I mean, If i ping the loopback device  it pings. (ex : ping 10.1.1.1 - ping 
> works)
> Suppose i want to ping the loopback device from the eth0 interface then ping
> failed( Ex : my eth0 ip is 192.168.101.2, & loopback ip is 10.1.1.1.
> ping -I eth0 10.1.1.1 is failed.no response)
>
> How do i add the route for the loopback devices.
>
> My setup:
> FC12
> one ethernet interface present 10/100Mbps.

Something wrong with your entire idea. Loopback devices do not have
IPs other than
127/8.

You need to use eth0:0 to eth0:n

Thanks.

-Girish
-- 
Gayatri Hitech
web: http://gayatri-hitech.com

SpamCheetah Spam filter:
http://spam-cheetah.com
_______________________________________________
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc

Reply via email to