Operating System - HP-UX
1833792 Members
2220 Online
110063 Solutions
New Discussion

can someone explain this output of netstat -rn

 
SOLVED
Go to solution
Ratzie
Super Advisor

can someone explain this output of netstat -rn

We have just built a server with 11.i and find it slow when trying to connect to it. The only thing that is differnet from a 10.20 server that we will be replacing is in the netstat -rn.
I think this may be our problem, but i am unsure.
THis is the new 11.i output.
I remember somewhere that there was an excellent little bit of tib bit info regarding what has to be there when we do a netstat -rn and what it means...

Our IP address is a class C

See attachment
8 REPLIES 8
Wilfred Chau_1
Respected Contributor

Re: can someone explain this output of netstat -rn

run lanadmin -x 0

does it say 100full or half?
Sean OB_1
Honored Contributor

Re: can someone explain this output of netstat -rn

Can you post the following:

ifconfig lan0
lanadmin -x 0

Ratzie
Super Advisor

Re: can someone explain this output of netstat -rn

# lanadmin -x 0
Current Config = 100 Half-Duplex AUTONEG


I do believe our switch is set to 100 full, would this be the issue with the autoneg? How would we change it?
Patrick Wallek
Honored Contributor

Re: can someone explain this output of netstat -rn

To change it for now:

# lanadmin -X 100FD 0

To change it permanently (so the changes stays next time you reboot), you need to modify the appropriate /etc/rc.config.d/hp*conf file for your network adapter.
Ratzie
Super Advisor

Re: can someone explain this output of netstat -rn

how do you tell what network drive you have?
Patrick Wallek
Honored Contributor

Re: can someone explain this output of netstat -rn

ioscan will tell you.

# ioscan -fnC lan
Ratzie
Super Advisor

Re: can someone explain this output of netstat -rn

I have applied the change and I still have 5-8 sec lag before I get the login prompt, any other suggestions.
rick jones
Honored Contributor
Solution

Re: can someone explain this output of netstat -rn

even 10.20 didn't really support multiple default routes as you can guess from the zero use count on one of them in the netstat output. if you need/want default route failover, you might consider enabling the router discovery protocol daemon. it will find and "talk to" the routers on your local subnet and decide which one to put into the routing table.

of, if the two routers on that wire support proxy ARP, you could configure your own local IP as the default route (with a metric of 0 rather than a metric of 1). failover would then happen based on arp cache timeout settings.

as for login delays, if it is only login delays, i doubt that duplex on the NIC would be an issue, but you can double check that the NIC and the switch match. late collisions if the NIC reports half-duplex are an indication of mismatch, fcs errors when the NIC reports full-duplex (lanadmin -g mibstats )

it could be that your DNS servers aren't being reached quickly - do you have more than one DNS server in /etc/resolv.conf on the server? you could take a tusc trace pointed at inetd's pid, told to follow forks, be verbose, display pids and have a timestamp and then do a login and see if you see DNS delays - you would first see a call to socket() for a SOCK_DGRAM socket, then some bind/connect on that file descriptor involving port 53. ftp://ftp.cup.hp.com/dist/networking/tools/

or you could use tcpdump (HP Internet Express or www.tcpdump.org) pointed at your lan0 interface and given a filter expression of "port 53" ("dns" might work as a shortcut)
there is no rest for the wicked yet the virtuous have no pillows