Operating System - HP-UX
1846305 Members
3733 Online
110256 Solutions
New Discussion

HP equiv to Solaris "route get"

 
jmb
Regular Advisor

HP equiv to Solaris "route get"

Is there a way in HP-UX (11i) to find out which interface (lan or IP) is used to get to a specific address?
3 REPLIES 3
Jairo Campana
Trusted Contributor

Re: HP equiv to Solaris "route get"

netstat -rn

configuration /etc/rc.config.d/netconf

see netcard
lanscan

see ip interface lan0..lanx
ipconfig lan0

or tool in /usr/sbin/lanadmin

legionx
Con O'Kelly
Honored Contributor

Re: HP equiv to Solaris "route get"

Hi

As in Solaris the netstat -rn command will show you which routes have been configured. Depending on the destination IP address you can work out which interface will be used to reach a specific address.

The 'traceroute' will also show you all the intermediary steps in reaching a destination host.
EG
# traceroute

Cheers
Con
jmb
Regular Advisor

Re: HP equiv to Solaris "route get"

Well, those are attempts, but I think the answer to my question is: no, there is not a direct way to duplicate "route get".

I'm trying to come up with a simple command line that returns the used interface to a given target, and it appears that cl does not exist in hpux. Looks like it would need a combination of things, maybe a script...