1839025 Members
3169 Online
110132 Solutions
New Discussion

Strange Network issues

 
SOLVED
Go to solution
Jenny C
Advisor

Strange Network issues

My server is a D-class with HP-UX 11i. I have a static IP address and it's registered with my company's DNS.

The strange thing is, I have to reboot the server every week or less than 5 days in order to be telnet into it. Otherwise, I can't even ping the IP. But when I use the console, I could see that the IP was fine with my lan0. However, I can't ping from the console to another machine on the same subnet until I reboot it. After reboot, the IP and the DNS name both works and lasts about 5 days on the network. It's very annoying but I don't know how to troubleshoot this?
12 REPLIES 12
Todd McDaniel_1
Honored Contributor
Solution

Re: Strange Network issues

Have you added a new server recently? How open is your network?

It sounds like me that you could have 2 boxes with the same IP...

Have you done traceroute? to and from the host? Does your output of nslookup look correct for both the IP and DNS?

Do you use tcp wrappers on this box?

I might also look at your /usr/sbin/inetd daemon going down...
Unix, the other white meat.
A. Clay Stephenson
Acclaimed Contributor

Re: Strange Network issues

Next time this happens, do a ps -ef | grep inetd. This has the earmarks of a dead inetd. I would look for and apply all Network/inetd related patches.

Even with up-to-date patches, it's a good idea to have a cronjob that runs every 10 minutes or so that checks to see if inetd is running and if not then restart it.
If it ain't broke, I can fix that.
Steven E. Protter
Exalted Contributor

Re: Strange Network issues

If inetd -c doesn't fix it.

It could be another box on your network, perhaps a test box or a DHCP list is being set up on the same IP address.

There should be evidence of this in the /var/adm/syslog/syslog.log file.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Jeff Schussele
Honored Contributor

Re: Strange Network issues

Hi Jenny,

Couple other posibilities are:

You're losing your default route. Next time it happens do a
netstat -rvn
And verify the route remains. Then try to ping the router IP

Your ARP entry for your NIC is disappearing from the next-hop router. Check the ARP table on the router next time. It could be timing your entry out.

Could also be dead-gateway detection. HP-UX coanstantly checks for it's routers & if they disappear (Maintenance?) they will be dropped from the routing table. Again check for the default route & this "feature" can be disabled in the /etc/rc.config.d/nddconf file.

HTH,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
SS_6
Valued Contributor

Re: Strange Network issues

Could be problem in the lan card. Try resetting it through lanadmin or commandline.
By providing solutions I am helping myself
Jenny C
Advisor

Re: Strange Network issues

Thanks for all the ideas. I am grateful for your help!

nslookup resolved fine both ways with DNS server and returned correct info. syslog.log did not show any duplicate IP error.

I did a netstat and UG listed the correct gateway. This is the same gateway used by lots of people in the same subnet, including myself, so I don't suspect that it would be a dead gateway.

I did a reset on the LAN card as well. Currently inetd is running. I will apply the inetd related patches and cross my fingers.


KapilRaj
Honored Contributor

Re: Strange Network issues

It could be a hardware problem as well . Try switching over to a diff Ethernet switch / hub also replace cables !

Also check for any cron scripts which adds or removes the routes ( In my training days , somebody did something similier).

Regds,

Kaps
Nothing is impossible
Gerhard Roets
Esteemed Contributor

Re: Strange Network issues

Hi

Verify that you do not have dhcp enabled on that interface. That is if you do not use dhcp.

Regards
Gerhard
Hein van den Heuvel
Honored Contributor

Re: Strange Network issues

[off topic]

Jenny,

Could you please consider NOT assigning 10 points to answer that do not solve your problem? It's confusing!

I'm sure you appreciate all attempts to help and want to recognize that, but it is also nice to be able to tell how useful a reply was in addressing the problem itself.
If it helped solve it, by all means assign 8, 9 or 10. If the problem is still not solved all the way, pick 7 or less.

Cheers,
Hein.
Jenny C
Advisor

Re: Strange Network issues

I am happy to report that everything works now! My server haven't disappeared for 11 days now! All I did was using lanadmin and reset the NIC card. Thanks all for your good ideas!
Printaporn_1
Esteemed Contributor

Re: Strange Network issues

Hi,
It may happen again if your problem is IP address conflict.
check log with
netfmt -t 50 -f /var/adm/nettl.LOG00
enjoy any little thing in my life
Jenny C
Advisor

Re: Strange Network issues

The saga goes on...The server did disappear about 16 days. Thanks printapron for teaching me to look into the /var/adm/netll.LOG000 file. There was no message for IP address conflict, but it was full of messages saying that there were faulty cable connection between the network adapter and the switch:
btlan [0] [HPC HSC J3516A #001 10/100 BasetTX D-class 2 port ] going Offline @ 8/8/1/0] [Cable Disconnected].

So I changed the cable, and bound the IP address to a different port 8/8/2/0. Let's see what happens.