LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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


Reply
  Search this Thread
Old 01-07-2004, 02:57 AM   #1
arkin
LQ Newbie
 
Registered: Nov 2003
Posts: 4

Rep: Reputation: 0
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
 
Old 01-08-2004, 01:44 AM   #2
Technoslave
Member
 
Registered: Dec 2003
Location: Northern VA
Posts: 493

Rep: Reputation: 30
And you would want to do this why?
 
Old 01-08-2004, 02:22 AM   #3
arkin
LQ Newbie
 
Registered: Nov 2003
Posts: 4

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

Arkin
 
Old 01-08-2004, 02:26 AM   #4
itsme86
Senior Member
 
Registered: Jan 2004
Location: Oregon, USA
Distribution: Slackware
Posts: 1,246

Rep: Reputation: 58
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
 
Old 01-08-2004, 04:43 AM   #5
arkin
LQ Newbie
 
Registered: Nov 2003
Posts: 4

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

Arkin
 
Old 02-20-2004, 12:37 PM   #6
dafonte
LQ Newbie
 
Registered: Feb 2004
Posts: 1

Rep: Reputation: 1
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.
Old 02-20-2009, 01:12 AM   #7
graziano1968
Member
 
Registered: Sep 2004
Posts: 223

Rep: Reputation: 30
Quote:
Originally Posted by dafonte View Post
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 .
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Debian multiple Loopback interfaces ? ionreflex Linux - Networking 1 10-02-2005 10:48 AM
Red Hat 7.3 and multiple gateways on multiple interfaces bluefmc Linux - Networking 2 11-19-2004 05:01 PM
IPTables and multiple interfaces MaverickApollo Linux - Networking 7 12-28-2003 04:19 PM
multiple loopback interfaces arkin Linux - Networking 1 11-18-2003 04:22 PM
DHCPd for multiple interfaces Noerr Linux - Networking 2 02-07-2003 06:40 PM


All times are GMT -5. The time now is 09:32 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration