Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Multiple IP addresses to localhost?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
bju
n00b
n00b


Joined: 09 Oct 2004
Posts: 17
Location: Germany

PostPosted: Fri Feb 25, 2005 5:36 pm    Post subject: Multiple IP addresses to localhost? Reply with quote

Hi gentoo folks,

my box is connected to a DSL modem via eth0. The box has multiple public IP adresses. If I assign this adresses to ppp0:1, ppp0:2, ... all listening sockets for this addresses are closed if the ppp connection drops. Therefore I've assigned this addresses to eth1, which connects the box to the LAN.

Now I want to remove the second ethernet card and I don't know a nice way to assign the adresses to lo:1, lo:2, ... Is this possible? How can I configure this?

Thanks,
Bernd
Back to top
View user's profile Send private message
xming
Guru
Guru


Joined: 02 Jul 2002
Posts: 441

PostPosted: Fri Feb 25, 2005 6:27 pm    Post subject: Reply with quote

you can always use dummy0:1 dummy0:1, ....
_________________
http://wojia.be
Back to top
View user's profile Send private message
ihad
n00b
n00b


Joined: 20 Aug 2004
Posts: 19

PostPosted: Fri Feb 25, 2005 6:51 pm    Post subject: Reply with quote

Don't assign any non 127.* address to lo or lo*
You don't want the trouble! By definition lo is only available from localhost,
(it's local loopback, but correct me if I'm wrong). You'll run into all kinds of
trouble. Believe be, don't do it!

Guessing you're German from your Name:

Also, NIEMALS eine nicht-lokale IP-Adresse, also nicht aus dem 127.0.0.0/8er
Bereich lo zuordnen. Das gibt mehr Ärger als Dir lieb ist. Falls Du es wirklich
machen willst:

emerge iproute2
ip addr add dev lo <IP-ADDR>

Aber nicht wundern, wenn sich das System hinterher ziemlich seltsam verhält...
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum