Networking
cancel
Showing results for 
Search instead for 
Did you mean: 

Command to get the IP addresses

SOLVED
Go to solution
Michelle_61
Frequent Advisor

Command to get the IP addresses

Hi All,

What OS command can print out all the 'up' IP addresses on the HP system?

Your response will be very helpful to me!
6 REPLIES
Solution

Re: Command to get the IP addresses

netstat -in is the one
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
James R. Ferguson
Acclaimed Contributor

Re: Command to get the IP addresses

Hi Michelle:

# netstat -i
# ifconfig

Regards!

...JRF...
Michelle_61
Frequent Advisor

Re: Command to get the IP addresses

Thanks for both replies. Those are very helpful!

Just want to confirm, 'netstat' displays statistics for network interfaces and protocols. Is it possible that it misses some IP address because there is no network traffic on it though it is up on the system?
Patrick Wallek
Honored Contributor

Re: Command to get the IP addresses

netstat should display all interface even if there is not any traffic.
James R. Ferguson
Acclaimed Contributor

Re: Command to get the IP addresses

Hi (again) Michelle:

Using 'netstat -i' shows only the interfaces that have been configured with an IP address or the plumb option using the 'ifconfig' command.

Regards!

...JRF...
Michelle_61
Frequent Advisor

Re: Command to get the IP addresses

Thanks (again) :).

I only care about the IP addresses, not the network interfaces. SO I think 'netstat -in' is exactly what I need.