LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   How to configure multiple loopback interfaces (lo0, lo1, lo2...) (https://www.linuxquestions.org/questions/linux-general-1/how-to-configure-multiple-loopback-interfaces-lo0-lo1-lo2-132314/)

arkin 01-07-2004 02:57 AM

How to configure multiple loopback interfaces (lo0, lo1, lo2...)
 
I repeat the question:

How can I configure multiple loopback interfaces (lo0, lo1, lo2...)??

Thanks

Arkin

Technoslave 01-08-2004 01:44 AM

And you would want to do this why?

arkin 01-08-2004 02:22 AM

I need it to do some works. Please Nobody knows how can be replicated de loopback interfaces (lo0,lo1,lo2........)??????????

Arkin

itsme86 01-08-2004 02:26 AM

I don't believe that it can be done.

You might be able to find a way to multicast it (i.e. lo:0, lo:1). I have no idea though, I've never used multicasting really. I'm just hopefully giving you a direction to look :)

arkin 01-08-2004 04:43 AM

I found webs that say that is posible to replicate loopback interfaces, but they don't say how. Thanks itsme86 for the answer.

Arkin

dafonte 02-20-2004 12:37 PM

I was looking for this as well. Figured it out, so I thought I'd post the answer.

This is how it is done with Fedora:

1) Copy the existing loopback interface:

cd /etc/sysconfig/network-scripts
cp ifcfg-lo ifcfg-lo:1

2) Edit the interface ifcfg-lo:1
DEVICE=lo
IPADDR=127.0.0.1
NETMASK=255.0.0.0
NETWORK=127.0.0.0
ONBOOT=yes
NAME=loopback

3) Change the DEVICE= to the alias # (lo:1)

4) Change the IPADDR,NETMASK,NETWORK

3) If you need more loopback interfaces, just copy again and add alias # (lo:2,lo:3,etc)

Hope this helps others.

graziano1968 02-20-2009 01:12 AM

Quote:

Originally Posted by dafonte (Post 771216)
I was looking for this as well. Figured it out, so I thought I'd post the answer.

This is how it is done with Fedora:

1) Copy the existing loopback interface:

cd /etc/sysconfig/network-scripts
cp ifcfg-lo ifcfg-lo:1

2) Edit the interface ifcfg-lo:1
DEVICE=lo
IPADDR=127.0.0.1
NETMASK=255.0.0.0
NETWORK=127.0.0.0
ONBOOT=yes
NAME=loopback

3) Change the DEVICE= to the alias # (lo:1)

4) Change the IPADDR,NETMASK,NETWORK

3) If you need more loopback interfaces, just copy again and add alias # (lo:2,lo:3,etc)

Hope this helps others.


Hello

what to do if I have now to remove lo:1 ?
I removed file ifcfg-lo:1 but it was not enough .


All times are GMT -5. The time now is 12:09 AM.