1833038 Members
2562 Online
110049 Solutions
New Discussion

Re: ip address in unix

 
SOLVED
Go to solution
Gyankr
Frequent Advisor

ip address in unix

Hello everybody,

This might be a bit frustrating but i want to know what is the command to find out the ip adress of a hp-ux machine. ipconfig does not seem to give any result.Any thoughts?

Regards,
Gyan
6 REPLIES 6
Murat SULUHAN
Honored Contributor

Re: ip address in unix

Hi


ifconfig
for example : ifconfig lan0

OR

netstat -in
Murat Suluhan
James R. Ferguson
Acclaimed Contributor

Re: ip address in unix

Hi Gyan:

# lanscan|while read X X X X LAN X;do ifconfig ${LAN} 2>/dev/null;done

Regards!

...JRF...
Aneesh Mohan
Honored Contributor
Solution

Re: ip address in unix

hi,

#netstat -ni

#getip `hostname`


Thanks,
Aneesh
Kapil Jha
Honored Contributor

Re: ip address in unix

netstat -in
if you want it in one shot.
ifconfig if you want for specific card.
lanadmin for deeper look.

BR
Kapil
I am in this small bowl, I wane see the real world......
whiteknight
Honored Contributor

Re: ip address in unix

Gyan,

use
#set_parms ip_address


Enter your IP address, then press [Enter] or press [Enter] to select
the current address (16.151.180.228):<<= this will be your current address


WK
Problem never ends, you must know how to fix it
Gyankr
Frequent Advisor

Re: ip address in unix

Thanks to all of you.

Regards,
Gyan