Discussion Locked

About Sun Solaris 8.0

0 helpful
5 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
I want to know the complete command that how can I change the IP address of my Sun Solaris OS 8.0.Please provide me help in detail.

5 replies

by dattatray_b

Dear Friend,

Follow the Following steps :

Step 1 :
Login to Sun Server as root

Step 2 :
#ifconfig hme0 down
#ifconfig hme0 netmask up
(In place of newipaddress put the new ipaddress and in place of newnetmaskput new sub net mask )

Regards

Dattatray V. Bhagwat

by cpfeiffe

The first answer will change the IP address immediately, but it won't be permanent. If you need to make it permanent you have to edit some files in /etc.
The fist should be hosts. In that file change the IP address for your machine's name. The next is netmasks. In that file type in the network for your machine's new IP address. Any IP address that starts with 0 - 127 only uses the first number as the network indentifier. Any address starting with 128 - 191 uses the first two numbers. Anyaddress starting with 192 - 223 uses the first three numbers. Examples:
10.10.10.10 is on the 10.0.0.0 network
150.150.150.150 is on the 150.150.0.0 network
200.200.200.200 is on the 200.200.200.0 network.

After the network type in the appropriate netmask for the IP address.

FYI this is how the boot procedure works to set the IP address.
/etc/hostname.$INTERFACE files are read (If your interface is hme0 you have a hostname.hme0 file) and the name in the file is retrieved. The names is looked up in the hosts file to give it an IP address. The IP address is labeled as part of the network it fits into in /etc/netmasks and is assigned the appropriate netmask. ifconfig is used to set the interface up with this information.
Hope this was helpful.

This discussion is closed to new replies.