Operating System - HP-UX
1823623 Members
3099 Online
109662 Solutions
New Discussion юеВ

How to get a list of interfaces & associated IPs

 
SOLVED
Go to solution
santosh_12_1
Occasional Contributor

How to get a list of interfaces & associated IPs

Hi,
Please dont mind abt my question as i am new to HPUX.
Plz can some 1 help me to know how to get a list of Interfaces (and associated IPs) on my HPUX host.
Is there any command that we can use to do so. for ex: on linux if we use ifconfig, we get a list of interfaces, IP & MAC address.

Is there something similar here ?

Thanks
6 REPLIES 6
melvyn burnard
Honored Contributor

Re: How to get a list of interfaces & associated IPs

try netstat -in
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
Stephan._1
Trusted Contributor
Solution

Re: How to get a list of interfaces & associated IPs

Hi,
all NICs --> 'lanscan'

List of active IP's 'netstat -in'

Single Interface information 'ifconfig lanX'
Share what you know, learn what you don't.
Roopesh Francis_1
Trusted Contributor

Re: How to get a list of interfaces & associated IPs

you can try netstat -in
man pages for netstat
http://docs.hp.com/en/B2355-90690/netstat.1.html

Thanks
Ganesan R
Honored Contributor

Re: How to get a list of interfaces & associated IPs

Hi Santosh,

To get the list of LAN interfaces available on the system use these commands.

#ioscan -fnC lan
or
#lanscan (To know the MAC addresses)

To get the ipaddress details associated with the interfaces use these commands.

#netstat -in
#netstat -i
Best wishes,

Ganesh.
santosh_12_1
Occasional Contributor

Re: How to get a list of interfaces & associated IPs

Thank u all folks.

I got the answers :)

I have provided the points..
santosh_12_1
Occasional Contributor

Re: How to get a list of interfaces & associated IPs

thanks