Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
01-07-2004, 02:57 AM
|
#1
|
LQ Newbie
Registered: Nov 2003
Posts: 4
Rep:
|
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
|
|
|
01-08-2004, 01:44 AM
|
#2
|
Member
Registered: Dec 2003
Location: Northern VA
Posts: 493
Rep:
|
And you would want to do this why?
|
|
|
01-08-2004, 02:22 AM
|
#3
|
LQ Newbie
Registered: Nov 2003
Posts: 4
Original Poster
Rep:
|
I need it to do some works. Please Nobody knows how can be replicated de loopback interfaces (lo0,lo1,lo2........)??????????
Arkin
|
|
|
01-08-2004, 02:26 AM
|
#4
|
Senior Member
Registered: Jan 2004
Location: Oregon, USA
Distribution: Slackware
Posts: 1,246
Rep:
|
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 
|
|
|
01-08-2004, 04:43 AM
|
#5
|
LQ Newbie
Registered: Nov 2003
Posts: 4
Original Poster
Rep:
|
I found webs that say that is posible to replicate loopback interfaces, but they don't say how. Thanks itsme86 for the answer.
Arkin
|
|
|
02-20-2004, 12:37 PM
|
#6
|
LQ Newbie
Registered: Feb 2004
Posts: 1
Rep:
|
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.
|
|
1 members found this post helpful.
|
02-20-2009, 01:12 AM
|
#7
|
Member
Registered: Sep 2004
Posts: 223
Rep:
|
Quote:
Originally Posted by dafonte
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:35 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|