View previous topic :: View next topic |
Author |
Message |
pato n00b
Joined: 16 Nov 2002 Posts: 9
|
Posted: Fri Nov 22, 2002 10:13 pm Post subject: Disabling ARP Responses from Loopback Interface |
|
|
I'm trying to set up a gentoo linux virtual server to load balance between a gentoo linux web server and a solaris web server. The LVS documentation says to disable ARP responses on the linux virtual loopback interface like so:
Code: |
# echo "1" > /proc/sys/net/ipv4/conf/all/hidden
# echo "1" > proc/sys/net/ipv4/conf/lo/hidden
|
However, on my gentoo servers the 'hidden' file doesn't exist. On the solaris server, I was able to specify the -arp flag with ifconfig to disable ARP responses. I saw a similar flag described in the ifconfig manpage. However, even though I added it to my interface configuration, the loopback address is still replying to ARP requests.
Does anyone know how to disable the loopback interface from responding to ARP requests? |
|
Back to top |
|
|
pato n00b
Joined: 16 Nov 2002 Posts: 9
|
Posted: Fri Nov 22, 2002 10:32 pm Post subject: |
|
|
I think I've figured it out. I had created a virtual loopback interface:
Code: |
# ifconfig lo:50 192.168.1.50 broadcast 192.168.1.255 netmask 255.255.255.255 -arp up
|
However, I noticed that the output of ifconfig -a looked odd:
Code: |
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
lo:50 Link encap:Local Loopback
inet addr:192.168.1.50 Mask:255.255.255.255
UP LOOPBACK RUNNING MTU:16436 Metric:1
|
The NOARP flag doesn't show up.
So, I tried adding -arp to the non-virtual lo interface:
and saw satisfying results:
Code: |
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING NOARP MTU:16436 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
lo:50 Link encap:Local Loopback
inet addr:192.168.1.50 Mask:255.255.255.255
UP LOOPBACK RUNNING NOARP MTU:16436 Metric:1
|
Everything seems to working now (though I do get an annoying "Document Contains No Data" every once in a while). One problem down, yet another one to go. |
|
Back to top |
|
|
|
|
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
|
|