1833693 Members
3689 Online
110062 Solutions
New Discussion

external IP addresses

 
SOLVED
Go to solution
sycncs_1
Occasional Contributor

external IP addresses

hi everyone

how do i find out the external IP address of a SunOS box? pls advice..thanks!
5 REPLIES 5
Ng Oon Tian
Occasional Advisor

Re: external IP addresses

Have u tried nslookup (assuming you know the hostname) or ifconfig (assuming you have access to the box?

Not sure if the question belongs here :)
sycncs_1
Occasional Contributor

Re: external IP addresses

nslookup only shows internal address.
ifconfig is an invalid command.

i need more inputs pls..thanks in advance.
Rajeev  Shukla
Honored Contributor
Solution

Re: external IP addresses

use netstat -i to list all the IP address assigned to all interfaces on that server or use ifconfig -a
And for your information both the commands are valid on Sun Solaris. If its not working for you probably you have got wrong path

Cheers
Rajeev
sycncs_1
Occasional Contributor

Re: external IP addresses

Thanks guys! :)
A Pandey
Frequent Advisor

Re: external IP addresses

i usually do a

cat /etc/hosts | grep EXTERNAL

this is just for a listing not an actual setting though