multiple DHCP servers on networks, discrepancy between /servers/socket/2 and inetutils-ifconfig
Hello,
I am on a network with multiple DHCP servers. Given below is my
interfaces file.
<snip>
cat /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet dhcp
</snip>
As soon as the machine boots up, i issue the following commands.
<snip>
root@debian:~# showtrans /servers/socket/2
/hurd/pfinet -i eth0 -a 10.21.22.230 -m 255.255.0.0 -g 10.21.250.1
root@debian:~# inetutils-ifconfig
eth0 (2):
inet address 10.21.22.230
netmask 255.255.0.0
broadcast 10.21.255.255
flags UP BROADCAST RUNNING MULTICAST
mtu 1500
metric 1
lo (1):
inet address 127.0.0.1
netmask 255.0.0.0
flags UP LOOPBACK RUNNING
mtu 3924
metric 1
</snip>
Then i run dhcpclient to get IP in the range i want. So i execute
dhclient as shown below.
<snip>
root@debian:~# dhclient eth0
root@debian:~# inetutils-ifconfig
eth0 (2):
inet address 10.101.201.160
netmask 255.255.0.0
broadcast 10.101.255.255
flags UP BROADCAST RUNNING MULTICAST
mtu 1500
metric 1
lo (1):
inet address 127.0.0.1
netmask 255.0.0.0
flags UP LOOPBACK RUNNING
mtu 3924
metric 1
</snip>
I now have the IP address that i want, but servers/socket/2 shows info
that contradicts what is
being shown by inetutils-ifconfig.
<snip>
root@debian:~# showtrans /servers/socket/2
/hurd/pfinet -i eth0 -a 10.21.22.230 -m 255.255.0.0 -g 10.21.250.1
</snip>
So i ping the interfaces, i get
<snip>
root@debian:~# ping 10.21.22.230
PING 10.21.22.230 (10.21.22.230): 56 data bytes
^C
^C^C^C
--- 10.21.22.230 ping statistics ---
9 packets transmitted, 0 packets received, 100% packet loss
root@debian:~# ping 10.101.201.160
PING 10.101.201.160 (10.101.201.160): 56 data bytes
64 bytes from 10.101.201.160: icmp_seq=0 ttl=255 time=40.000 ms
64 bytes from 10.101.201.160: icmp_seq=1 ttl=255 time=10.000 ms
64 bytes from 10.101.201.160: icmp_seq=2 ttl=255 time=10.000 ms
64 bytes from 10.101.201.160: icmp_seq=3 ttl=255 time=10.000 ms
64 bytes from 10.101.201.160: icmp_seq=4 ttl=255 time=10.000 ms
64 bytes from 10.101.201.160: icmp_seq=5 ttl=255 time=10.000 ms
64 bytes from 10.101.201.160: icmp_seq=6 ttl=255 time=0.000 ms
^C--- 10.101.201.160 ping statistics ---
8 packets transmitted, 7 packets received, 12% packet loss
round-trip min/avg/max/stddev = 0.000/12.857/40.000/11.606 ms
</snip>.
This was reproducible at least twice, on my machine.
Regards,
Harish Badrinath
Reply to: