Hi,
I put pertinent information below as requested. One thing I verified is
this is actually a time problem...so just waiting a minute or two after
restarting the nic works just as well as pinging the gateway for starting
the connection. The net.eth0 startup script restarts sshd too, so that's
why I kept losing a connection to the box. With the ping -c 50 it now buys
enough time for sshd to have an ip to connect on.
Note below the my ip address is .34
Summary: the network settings are simply taking 1-2 minutes to take
effect. There's some kind of delay I can't pinpoint.
On Fri, 21 Jan 2005 22:19:29 -0800, prg wrote:
>
> (E-Mail Removed) wrote:
>> <snip>
>> O.k., thanks for the reply to my admittedly poor post. I will get all
>> the debugging information I can this afternoon...no connection to the
>> machine at the moment, obviously.
>>
>> I mentioned the kernel because we *were* focused on it being a driver
>> problem with the nic...but the hardware worked on my home network
>> before going to the co-lo.
>>
>> My knowledge of the networking on the co-lo side is shaky. It's a
>> static ip rather than dhcp, i know that. What other information
> should
>> I get from them?
>
> Actually, it would be nice if you could ssh into the box and fetch
>
> (These are Linux -- is your co-lo?)
> ifconfig -a
dummy0 Link encap:Ethernet HWaddr F2:10:6C:E3:C0:FF
BROADCAST NOARP MTU:1500 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)
eth0 Link encap:Ethernet HWaddr 00:30:48:41:90:7E
inet addr:xx.xxx.xxx.34 Bcast:xx.xxx.xxx.39
Mask:255.255.255.248 UP BROADCAST RUNNING MULTICAST MTU:1500
Metric:1 RX packets:23542 errors:0 dropped:0 overruns:0 frame:0
TX packets:13438 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:2166608 (2.0 Mb) TX bytes:2399025 (2.2 Mb) Base
address:0xa000 Memory:ec000000-ec020000
eth1 Link encap:Ethernet HWaddr 00:30:48:41:90:7F
BROADCAST MULTICAST MTU:1500 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:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Base address:0xa400 Memory:ec020000-ec040000
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:20165 errors:0 dropped:0 overruns:0 frame:0
TX packets:20165 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:815124 (796.0 Kb) TX bytes:815124 (796.0 Kb)
> route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
xx.xxx.xxx.32 0.0.0.0 255.255.255.248 U 0 0 0
eth0 127.0.0.0 127.0.0.1 255.0.0.0 UG 0 0
0 lo 0.0.0.0 xx.xxx.xxx.33 0.0.0.0 UG 0 0 0 eth0
> or
> netstat -rn
>
> You can watch the arp cache to see if/how it changes before/after you
> ping:
> arp -vne
> (most likely just your gw mac will appear)
> In this order, ping these hosts with this switch -c10 (sends 10 pings):
> a) localhost 127.0.01
> b) your default GW -- normally doesn't change from lease to lease, so
> use the one in an older lease if necessary
> c) your DNS servers -- ditto
> d) yahoo or google
>
> You might also want to $ man arping for some arp troubleshooting.
>
> The fact that you have a static IP does not mean that other networking
> parameters are static -- they are usually dished up via DHCP. So check
> your dhclient.leases file -- name/location varies with distro. My RH
> box uses /var/lib/dhcp/dhclient-eth0.leases.
There are no dhcp related files on this machine.
>
> Ditto for resolv.conf (/etc/resolv.conf).
>
> Who configured the box? You or them? Any customized startup scripts?
I configured it and it worked fine at home. The startup scripts are
straight Gentoo defaults.
> Do your network daemons load at startup? Xinet/TCPWrappers? Firewall
> in place? Number of nics? Is forwarding turned on? Should it be? You
> may have to start at the bottom (hardware) and check step by step,
> config by config, setting by setting. Nothing planned for the weekend,
> I hope 
>
Weekend? Just this. There is no iptables stuff configured yet.
>> In my network troubleshooting fantasy, I was hoping that with the
>> explanation of pinging the gateway to jumpstart the connection there
>> would be a hint what to focus on...;-)
>
> Actually, when my cable ISP is beginning to have problems, I will have
> to ping the router listed as my gw several times to wake it up. Know
> what it's like to have such flakey connection/response. They are (or
> pretend) cluelessness at the ISP's office -- I suspect
> something/someone is flushing the router's arp cache (among other
> possible things) and it takes a while to get re-populated with neighbor
> info, etc. It's usually traced back (by me) to dns server troubles.
>
> Any chance it's a bad cable or switch port? Is you nic properly
> "synching" with the upstream connection -- ie., speed/duplex setting?
We've tried other ports and cables. The duplex stuff does seem to be
working fine.
> $man mii-tool and $ man ethtool
> I'll keep an eye out,
> prg
> email above disabled