LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: hidding loopback interface does not work properly

To: "LinuxVirtualServer.org users mailing list." <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: Re: hidding loopback interface does not work properly
From: frederic.buche@xxxxxxxxxx
Date: Wed, 29 Oct 2003 10:11:11 +0100
Thanks François, but something is not clear for me :
if my ip configuration is like below, I tought that the eth0 interface 
would not answer to arp request on 192.168.121.242  ???

Horms, I have used tcpdump to get this :

tcpdump -n -e -i eth0 arp and host 192.168.121.242
tcpdump: listening on eth0
09:57:14.902796 0:50:8b:61:22:12 0:2:a5:13:6a:e0 arp 60: arp who-has 
192.168.121.242 tell 192.168.121.232
09:57:14.902858 0:2:a5:13:6a:e0 0:50:8b:61:22:12 arp 42: arp reply 
192.168.121.242 is-at 0:2:a5:13:6a:e0

The mac address 0:2:a5:13:6a:e0 is eth0
So eth0 answers to requests abour lo:0
Is that normal ?


eth0      Link encap:Ethernet  HWaddr 00:02:A5:13:6A:E0
          inet addr:192.168.121.240  Bcast:192.168.121.255 
Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:358860 errors:0 dropped:0 overruns:0 frame:0
          TX packets:340065 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100
          RX bytes:46020015 (43.8 Mb)  TX bytes:24044536 (22.9 Mb)
          Interrupt:5 Base address:0xd000

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:46620 errors:0 dropped:0 overruns:0 frame:0
          TX packets:46620 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:3171164 (3.0 Mb)  TX bytes:3171164 (3.0 Mb)

lo:0      Link encap:Local Loopback
          inet addr:192.168.121.242  Mask:255.255.255.255
          UP LOOPBACK RUNNING  MTU:16436  Metric:1


sysctl.conf :

# Enables source route verification
net.ipv4.conf.default.rp_filter = 1
# Disables the magic-sysrq key
kernel.sysrq = 0
net.ipv4.conf.all.secure_redirects = 0
net.ipv4.conf.all.send_redirects = 0
net.ipv4.ip_forward = 1
# Enable configuration of hidden devices
net.ipv4.conf.all.hidden = 1
# Make the loopback device hidden
net.ipv4.conf.lo.hidden = 1


Frédéric BUCHE
<Prev in Thread] Current Thread [Next in Thread>