Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to find ip address on unix environment?

Status
Not open for further replies.

simonnorthfield

Programmer
Oct 29, 2002
5
GB
How can I find IP address on a solaris machince or unix environment?


for example in windows I would type:
>ipconfig /all

This command does not work on unix?
 
That would be because "ipconfig" only exists on Mi¢ro$oft's operating systems.

On Linux, the command is "ifconfig". ______________________________________________________________________
TANSTAAFL!
 
Yes use ifconfig to see all your IP addresses, and if you want to know in what file is this config juste do:
#grep -r "10.0.0.1" /etc/*

this will search for the string 10.0.0.1 assuming it is your ip in /etc/ files and interring in each directory because the "-r" argument.
this will give you the file where you can change the IP adresse

hope that will help
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top