While the box runs fine, I really need to fix this in case I need to
do a remote reboot. Anyone have a clue??
Thanks
Mark
vos...@yahoo.com.NOTspam
> I have a problem with a new RH9 box I just built.
> Whenever I reboot it, it thinks it's IP address is already in use.
What is the _exact_ error message it gives you?
Are you certain that it's saying what you think its saying? The standard
error message `Address already in use' (EADDRINUSE) means that the
address:port combination is already taken when a program tries to use
bind() or connect(). This generally mean that either the program is
already running, or the server, as all good servers should, use the
REUSEADDR socket option.
If you run tcpdump while bringing the interface up, do you see it
sending any ping requests to the same IP, probing for address collision?
This isn't something that is typically done under Linux, perhaps RH have
added some functionality.
Is the address configured statically, or are you getting it from DHCP.
If from DHCP, is it a fixed or dynamic address?
> When it is in this state, I cannot up the interface. However, if I
> unplug the cable, then I can up the interface.
Does it take longer when you do this? It may also detect if there is no
cable detected.
--
Cameron Kerr
camero...@paradise.net.nz : http://nzgeeks.org/cameron/
Empowered by Perl!
One example is sshd, which binds to port 22 as ipv6 and may report an
error when it cannot bind to 22 as ipv4. But that is not an issue because
the ipv6 binding handles either ipv4 and ipv6 connections,
If having trouble grasping the exact error when it goes past you during
boot, the boot messages are likely listed somewhere in /var/log/. One of
the first things to learn is how to copy/paste (easy with the mouse).
--
David Efflandt - All spam ignored http://www.de-srv.com/
http://www.autox.chicago.il.us/ http://www.berniesfloral.net/
boot.log.4:May 14 15:07:52 <hostname> ifup: Error, some other host
already uses address 192.168.0.8.
Please note, for all you unforgiving sticklers, that <hostname> is not
the hostname, I have edited that out.
>Is the address configured statically, or are you getting it from DHCP.
>If from DHCP, is it a fixed or dynamic address?
>
This is a static address on the 192.168.0 block, not DHCP.
> boot.log.4:May 14 15:07:52 <hostname> ifup: Error, some other host
> already uses address 192.168.0.8.
Ok, that error message is reported in ifup with this code fragment. I
don't know what version of RH this came from, I found it on Google when
searching for your error message.
if ! arping -q -c 2 -w 3 -D -I ${REALDEVICE} ${IPADDR} ; then
echo $"Error, some other host already uses address ${IPADDR}."
exit 1
fi
Is arping installed on your system? `locate arping | grep bin'
From the arping manual page, this is what the options mean.
-q Quiet mode
-c Count
-w Wait this long between requests, in microseconds
-D (Not an option in my version of arping (Debian Sid)), probably
`Find duplicate replies'
-I Interface (-i in my version)
So I would suggest you see if you can run that command and find out
what the result is.
>
>Ok, that error message is reported in ifup with this code fragment. I
>don't know what version of RH this came from, I found it on Google when
>searching for your error message.
>
> if ! arping -q -c 2 -w 3 -D -I ${REALDEVICE} ${IPADDR} ; then
> echo $"Error, some other host already uses address ${IPADDR}."
> exit 1
> fi
>
>Is arping installed on your system? `locate arping | grep bin'
>
>From the arping manual page, this is what the options mean.
>
> -q Quiet mode
>
> -c Count
>
> -w Wait this long between requests, in microseconds
>
> -D (Not an option in my version of arping (Debian Sid)), probably
> `Find duplicate replies'
>
> -I Interface (-i in my version)
>
>So I would suggest you see if you can run that command and find out
>what the result is.
>
>--
>Cameron Kerr
>camero...@paradise.net.nz : http://nzgeeks.org/cameron/
>Empowered by Perl!
Hmmm - I think you're on to something.
FYI, the system now has address 192.168.0.9 because we changed it at
one point in pursuing this issue.
Here's the output from arping (I removed the -q switch so we can see
the output):
/usr/sbin/arping -c 2 -w 3 -D -I eth0 192.168.0.9
ARPING 192.168.0.9 from 0.0.0.0 eth0
Unicast reply from 192.168.0.9 [00:E0:B6:03:35:5F] 0.864ms
Sent 1 probes (1 broadcast(s))
Received 1 response(s)
Now, look at this output for ifconfig -a. Note the hardware address
for eth0 and compare it to that above for arping:
/sbin/ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:D0:C9:13:21:23
inet addr:192.168.0.9 Bcast:192.168.0.255
Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:276315 errors:0 dropped:0 overruns:0 frame:0
TX packets:236389 errors:3 dropped:0 overruns:0 carrier:3
collisions:0 txqueuelen:100
RX bytes:23771914 (22.6 Mb) TX bytes:40333161 (38.4 Mb)
Interrupt:11 Base address:0xe000 Memory:e9100000-e9100038
So, it appears that in arping eth0 is thought to have HW address of
00:E0:B6:03:35:5F and in ifconfig it thinks etho has HW address of
00:D0:C9:13:21:23 ? Am I reading this right ? If so I would guess I
have some kind of hardware conflict here - perhaps w/ a 2nd NIC ?
To further confuse the issue, my gateway at 192.168.0.1 appears to
have HW address 00:E0:B6:03:35:5F:
/sbin/arp -a
? (192.168.0.1) at 00:E0:B6:03:35:5F [ether] on eth0
Any clue as to what is going on here ?
-Mark
vos...@yahoo.com.not4spam (Mark Voss) wrote in message news:<40c7879d...@reader.news.uu.net>...
> FYI, the system now has address 192.168.0.9 because we changed it at
> one point in pursuing this issue.
> /usr/sbin/arping -c 2 -w 3 -D -I eth0 192.168.0.9
> Unicast reply from 192.168.0.9 [00:E0:B6:03:35:5F] 0.864ms
> /sbin/ifconfig -a
> eth0 Link encap:Ethernet HWaddr 00:D0:C9:13:21:23
> inet addr:192.168.0.9 Bcast:192.168.0.255
> So, it appears that in arping eth0 is thought to have HW address of
> 00:E0:B6:03:35:5F
No, it means it arping received a reply from ...:5F saying it accepts
frames for 192.168.0.9, when it shouldn't be.
> To further confuse the issue, my gateway at 192.168.0.1 appears to
> have HW address 00:E0:B6:03:35:5F:
It does indeed appear that the router is answering for your IP address.
What kind of router are you operating?
I wonder, do you have Proxy-ARP turned on for some reason?
What is the output of `route -n' on your client and gateway system?
If you run arping on other clients on the same subnet, do you get
the same result of the gateway answering?
Come to think of it, its possible that you're missing a default route,
and is therefore perhaps falling back on proxy arp for some reason.
Just noted your other response about having no other Linux boxen on the
same subnet. Perhaps you could get your hands on something like Knoppix,
or boot your installation media on different machine and see if it still
happens.
I'd try commenting out
if ! arping -q -c 2 -w 3 -D -I ${REALDEVICE} ${IPADDR} ; then
echo $"Error, some other host already uses address ${IPADDR}."
exit 1
fi
in ifup. If it works then the cause of the problem is moot; you said
all IP addresses where static.
This is probably considered RH heresy, but sometimes it's whatever works.
--
Clifford Kite Email: "echo xvgr_yv...@ri1.arg|rot13"
PPP-Q&A links, downloads: http://ckite.no-ip.net/
/* The wealth of a nation is created by the productive labor of its
* citizens. */