News:

MyKidsDiary.in :: Capture your kids magical moment and create your Online Private Diary for your kids

Main Menu

How do I change an IP Address & Hostname on Solaris?

Started by VelMurugan, Sep 26, 2008, 01:31 PM

Previous topic - Next topic

VelMurugan

How do I change a hostname on Solaris?

Solaris makes it unreasonably difficult to change the hostname of an installed server.

To change the hostname on a Solaris system, you should edit all of these files:

    * /etc/hosts
    * /etc/nodename
    * /etc/hostname.*
    * /etc/net/ticlts/hosts
    * /etc/net/ticots/hosts
    * /etc/net/ticotsord/hosts
    * /etc/inet/ipnodes

You should then reboot the server to test your changes and ensure that they operate correctly.

How do I change an IP Address on Solaris?

p>To change an IP address on a Solaris system immediately, use the `ifconfig` command.

The syntax for `ifconfig` is:

ifconfig <interface> <ip address> <netmask> <broadcast address>

If you don't know the names of your network interfaces, use the `ifconfig -a` command to list all of the available network interfaces.

Permanently Change an IP Address on Solaris

To make this change permanent, you will need to edit one or more Solaris configuration files. If you do not, then your IP address will change back to the old address the next time you reboot the system.

You will need to edit the hosts entry in /etc/hosts.

If you have moved the system to a new network, you will need to change the default route in /etc/defaultrouter.

If you are using VLSM (Variable Length Subnet Masks), you may need to edit /etc/netmasks.

If you are using Solaris 9 or above, you may need to edit the IP address in /etc/inet/ipnodes.

You should then reboot the server to test your changes and ensure that they operate correctly.