Discussion Locked

Sun Solaris 8 changing IP address

0 helpful
9 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
I've a Sun solaris 8.0 and can I know how to change and configured the IP address of the interface.

9 replies

by supermomo

hi

if you do not want the change to be perm, then issue the following command

#Ifconfig hme0(interface) inet (ip)

Else if you want it to be perm, then changes have to be make at the below mention files

/etc/inet/hosts
/etc/hostname.hme0

Goodluck ...

by davecpage

To change it permanently, use sys-unconfig. This will require you to reset your hostname, time zone, and a few other things, but it will make your IP change permanent.

by nickmkhn

If you don’t want to do re-setting by sys-unconfig, yes you can make your new IP permanent by editing the /etc/inet/hosts, etc/hostname.hme0.

But don’t forget to check the /etc/inet/netmasks, and also /etc/inet/networks, and other files (e.g. /etc/defaultrouter, /etc/netid, in case you have a more advanced network.

After that:

ifconfig –a (just to view your NIC driver name, say elbc0)

then:

ifconfig elbc0 down

ifconfig elbc0 unplumb

ifconfig elbc0 plumb
ifconfig –a (just to view again)

ifconfig elbc0 inet uuu.xxx.yyy.zzz (your new IP address) up

ifconfig –au

hostname > hostname.elbc0

/etc/init.d/inetsvc stop

/etc/init.d/inetsvc start

ping uuu.xxx.yyy.zzz

That’s it. You reboot, and your new IP address remains.

by rfiore

The easiest way to change the IP address of a Solaris machine is to:

1) check /etc/hostname.le0 (could be hostname.hme0 or something else according to the interface name). There should be a hostname.???? file for every network interface configured in the machine.

2) edit the /etc/hosts file and change the IP address for the entry from the hostname.???? file.

3) reboot

If you want to change the name of the machine, you need to change the name listed in the /etc/nodename file. You then can also change the name of each interface in the hostname.???? files. The nodename usually matches the name in the first hostname.???? file.

This discussion is closed to new replies.