how to find ipaddress

Hi,
Pls tell me any command in Hp-unix to find out the machine ipaddress
Thanks,
shruti

You can use `lanscan` to see the various network interfaces that are attached, and then use `ifconfig 'interface_name'` to see the ip address on that interface.

I dnt have permission to see the lanscan.is there any command that can display ipaddress like ipconfig in windows machine?i think ipaddress is the major in networking..without any easy interface how unix people manage to know ipaddress of that machine..

Just try using `ifconfig lan0` or `ifconfig lan1`. That should show your interface details.

no use..:-(.no such interface iam getting..any other command that can show ipaddress as well?
Thanks for replying..

Are you logged onto the machine that you want to find the IP address for?
You can ping your DNS name or do an nslookup.

Try:
netstat -in

Hi,
iam getting 3 ipadrresses for netstat -in (lan10,l0,lan900) which is the actual ip..how to find?and what are the other ip addresss?
Thanks for the help

They are all actual ip addresses.

does ifconfig -a works on HP-UX?

���������no.���

I found ifconfig in /usr/sbin on our HP-UX

then try an "ifconfig lan10" or "ifconfig lan900"

Hi shruti,

To view IPAddress of one UNIX/Solaris/Linux machine, u can use
/> ifconfig -a
Here it shows the inet address.

Thank you,

Vinod

try this command

nslookup <machine_name>

if u simply give nslookup then it will give you the ip address of
the server only.