This is a discussion on Address already in use error within the Linux Networking forums, part of the Linux Forums category; I have a problem with a new RH9 box I just built. Whenever I reboot it, it thinks it's ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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. It isn't. THe settings are all saving properly and such, it is just that for some unknown reason, it thinks the address is taken at reboot. When it is in this state, I cannot up the interface. However, if I unplug the cable, then I can up the interface. Then, I plug the cable back in and there's no problem. It's been up and running like that for 2 weeks. 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 voss001@yahoo.com.NOTspam |
|
|||
|
Mark Voss <voss001@yahoo.com.not4spam> wrote:
> 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 cameron.kerr@paradise.net.nz : http://nzgeeks.org/cameron/ Empowered by Perl! |
|
|||
|
Mark Voss <voss001@yahoo.com.not4spam> wrote:
> 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. -- Cameron Kerr cameron.kerr@paradise.net.nz : http://nzgeeks.org/cameron/ Empowered by Perl! |
|
|||
|
On 11 Jun 2004, Cameron Kerr <cameron.kerr@paradise.net.nz> wrote:
> Mark Voss <voss001@yahoo.com.not4spam> wrote: > >> 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. 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/ |
|
|||
|
Here is the message from boot.log:
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. On Fri, 11 Jun 2004 00:18:49 +0000 (UTC), efflandt@xnet.com (David Efflandt) wrote: >On 11 Jun 2004, Cameron Kerr <cameron.kerr@paradise.net.nz> wrote: >> Mark Voss <voss001@yahoo.com.not4spam> wrote: >> >>> 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. > >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/ |
|
|||
|
On 11 Jun 2004 06:46:31 +1200, Cameron Kerr
<cameron.kerr@paradise.net.nz> wrote: >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. |
|
|||
|
On 11 Jun 2004 09:04:27 +1200, Cameron Kerr
<cameron.kerr@paradise.net.nz> wrote: > >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 >cameron.kerr@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 |
|
|||
|
What are you connected to a switch? and what kind? Sounds like a buggy
switch that not refreshing fast enough. I am guessing, could be a bug, just the part about pulling out the cable and putting back in makes me think something up with your switch(hub). And do you have another redhat box on the network without these problems? voss001@yahoo.com.not4spam (Mark Voss) wrote in message news:<40c7879d.49017924@reader.news.uu.net>... > 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. It > isn't. THe settings are all saving properly and such, it is just that > for some unknown reason, it thinks the address is taken at reboot. > When it is in this state, I cannot up the interface. However, if I > unplug the cable, then I can up the interface. Then, I plug the cable > back in and there's no problem. It's been up and running like that > for 2 weeks. > > 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 > voss001@yahoo.com.NOTspam |
|
|||
|
It's a Cisco switch. (it's remote so I can't say which model at the
moment but can find out) We tried varying the arp refresh rate on it, but no help. THere are no other Linux boxes on the switch, but numerous other Windows boxes with no problems. On 10 Jun 2004 18:29:13 -0700, kaffki@yahoo.com (Danny Kaffki) wrote: >What are you connected to a switch? and what kind? Sounds like a buggy >switch that not refreshing fast enough. I am guessing, could be a bug, >just the part about pulling out the cable and putting back in makes me >think something up with your switch(hub). And do you have another >redhat box on the network without these problems? > >voss001@yahoo.com.not4spam (Mark Voss) wrote in message news:<40c7879d.49017924@reader.news.uu.net>... >> 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. It >> isn't. THe settings are all saving properly and such, it is just that >> for some unknown reason, it thinks the address is taken at reboot. >> When it is in this state, I cannot up the interface. However, if I >> unplug the cable, then I can up the interface. Then, I plug the cable >> back in and there's no problem. It's been up and running like that >> for 2 weeks. >> >> 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 >> voss001@yahoo.com.NOTspam |
|
|||
|
Mark Voss <voss001@yahoo.com.not4spam> wrote:
> 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. -- Cameron Kerr cameron.kerr@paradise.net.nz : http://nzgeeks.org/cameron/ Empowered by Perl! |