Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Disabling ARP Responses from Loopback Interface
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
pato
n00b
n00b


Joined: 16 Nov 2002
Posts: 9

PostPosted: Fri Nov 22, 2002 10:13 pm    Post subject: Disabling ARP Responses from Loopback Interface Reply with quote

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
View user's profile Send private message
pato
n00b
n00b


Joined: 16 Nov 2002
Posts: 9

PostPosted: Fri Nov 22, 2002 10:32 pm    Post subject: Reply with quote

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:

Code:

# ifconfig lo -arp

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
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