View previous topic :: View next topic |
Author |
Message |
bju n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/2711582084227753c9d68e.jpg)
Joined: 09 Oct 2004 Posts: 17 Location: Germany
|
Posted: Fri Feb 25, 2005 5:36 pm Post subject: Multiple IP addresses to localhost? |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
xming Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/136843842434f9d2d5b7f0.gif)
Joined: 02 Jul 2002 Posts: 441
|
Posted: Fri Feb 25, 2005 6:27 pm Post subject: |
|
|
you can always use dummy0:1 dummy0:1, .... _________________ http://wojia.be |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
ihad n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 20 Aug 2004 Posts: 19
|
Posted: Fri Feb 25, 2005 6:51 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
|
|
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
|
|