Discussion Locked

IP configuration in UNIX

0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
I have a solaris unix box and was wondering how I can set the ip address and default gateway?

3 replies

by some guy in seattle

in the /etc directory, set up a file called "defaultrouter". In this file place the IP address of your default gateway. Make sure you have a return at the end of the line.

Also in the /etc directory, edit the "hosts" file. Following the existing format, enter the IP and hostname for each interface of your box.

Again in the /etc directory, for each of your interfaces, create a file called "hostname.". For instance, if one of your interfaces is labeled hme0 then your file name will be hostname.hme0 (you can find out the names of your interfaces by doing an "ifconfig -a" command). Inside this file put the actual host name of your machine/interface.

Hope that helps.

This discussion is closed to new replies.