Networking Forums

Networking Forums > Computer Networking > Linux Networking > lo aliasing problem

Reply
Thread Tools Display Modes

lo aliasing problem

 
 
krsyoung
Guest
Posts: n/a

 
      09-30-2005, 12:42 AM
Hello all,

I am currently trying to set up a load balancing application which
requires an alias to be made for the loopback device. However, as soon
as I create the device the network stops working.

Initially (network works fine):
eth0 - 192.168.1.1
lo - 127.0.0.1

Run these (the network immediately stops working):
ifconfig lo:0 192.168.1.2
ifup lo:0

This is on both 2.4 and 2.6 kernels on SLES8/FC3/RH9. For some reason
it seems like it might be horribly illegal what I need to do, but I'm
wondering if anyone could help with an explanation.

Thanks,

Chris

 
Reply With Quote
 
 
 
 
Moe Trin
Guest
Posts: n/a

 
      10-01-2005, 12:10 AM
In the Usenet newsgroup comp.os.linux.networking, in article
<(E-Mail Removed) .com>, krsyoung wrote:

>I am currently trying to set up a load balancing application which
>requires an alias to be made for the loopback device.


Bizarre.

>However, as soon as I create the device the network stops working.
>
>Initially (network works fine):
>eth0 - 192.168.1.1
>lo - 127.0.0.1
>
>Run these (the network immediately stops working):
>ifconfig lo:0 192.168.1.2
>ifup lo:0


Yup - look at your routing table. The "last" route overrides any previous
routes of the same value, and you've just set the route to the 192.168.1.0
network to be on the loopback.

>For some reason it seems like it might be horribly illegal what I need to
>do, but I'm wondering if anyone could help with an explanation.


I dunno - you might try deleting the _route_ after you bring up the
alias. Try

route del -net 192.168.1.0 netmask 255.255.255.0 lo

and see if that does the trick. Another thing that might work is to make
your alias a host route (add the 'netmask 255.255.255.255' to your ifconfig
command).

Used to was, when you ran the ifconfig command, it handled the interface
only. Some time in the mid-late 1990s, the behavior of the command changed
to add a network route automagically with the ifconfig command. I think
that's what is biting you now.

Old guy
 
Reply With Quote
Reply

Thread Tools
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
IP aliasing in Linux Red Hat 2.4.20-8 Prabhu Linux Networking 2 06-28-2006 03:19 PM
Problem with Multihoming and IP Aliasing Will A Windows Networking 2 03-05-2004 12:40 PM
Aliasing the loopback. William D. Tallman Linux Networking 14 01-07-2004 01:50 PM
IP Aliasing, 2 networks Leland Linux Networking 3 11-10-2003 11:08 PM
Aliasing different IP blocks to same NIC Lane Vance Linux Networking 1 08-29-2003 01:09 PM



1 2 3 4 5 6 7 8 9 10 11