How do I change the hostname and IP address in Solaris 11?

How to change hostname in Solaris 11

  1. To list the current hostname (i.e. config/nodename property) :
  2. Change the hostname to geekserver by setting the property config/nodename to geekserver.
  3. Refresh and restart the system/identity:node service for the changes to take effect.
  4. Verify the changes.

What is hostname Solaris?

The primary interface’s TCP/IP host name is a distinct entity from the system host name that you set with the hostname command. Although not required by Oracle Solaris, the same name is normally used for both. If you use the hostname command, then the hostname is the value that is specified in the config/nodename file.

How do I change the hostname in Solaris 10?

So here’s a very simple procedure for updating the hostname of your Solaris 10 server.

  1. Step 1: Update /etc/hosts.
  2. Step 2: Change /etc/nodename.
  3. Step 3: Update /etc/hostname.
  4. Step 4: Reconfigure network and reset hostname to the new value.

How do I change my IP address in Solaris?

Configuring the IP address

  1. Step 1 : Set the NCP. We would set the NCP to DefaultFixed profile in order to configure the IP address manually.
  2. Step 2 : Check the link status. The command “dladm show-dev” does not work in Solaris 11.
  3. Step 3 : Create a new interface.
  4. Step 4 : Creating IP address.

How do I change the hostname in Solaris?

Changing hostname in Solaris

  1. Step 1: Update /etc/hosts. Quite simply, you need to add an IP to hostname association for in here, for the new hostname you plan to use.
  2. Step 2: Change /etc/nodename.
  3. Step 3: Update /etc/hostname.
  4. Step 4: Reconfigure network and reset hostname to the new value.

How do I change my IP address in Solaris 11?

How do I find my IP address in Solaris 10?

Monitoring IP Interfaces and Addresses

  1. To obtain interface information, use ipadm show-if.
  2. To obtain address information, use ipadm show-addr.
  3. To obtain information about a specific interface property, use ipadm show-ifprop.
  4. To obtain information about a specific address property, use ipadm show-addrprop.

How do I find the IP address of a hostname in Solaris?

hostname and uname will give you the name of the host. Then use nslookup to translate that to an IP address. will show the IP addresses on the system for Solaris 11 and later.

Is there a way to change the hostname in Solaris?

You can also change the hostname or IP address without the using the sys-unconfig command. this too requires a reboot. Edit the below files and replace the old hostname and/or IP address wherever applicable. In the last file, the interface is the primary interface that is being used in the system (for example e1000g0).

Is the IPv4 file active in Solaris 10?

Although, the /etc/inet/ipnodes files is primarily for IPv6 only, without adding an entry to the file, the IP address (IPv4) doesn’t become active. This seems to be a known problem but the good news is this is now fixed in the Solaris 10 U4 (08/07 build).

Which is the primary interface in Solaris 7?

For Solaris versions 7 to 9, check/edit: where is the name of the primary interface, e.g. bge0. Then reboot the system. For Solaris version 10, check/edit: where is the name of the primary interface, e.g. bge0. Then reboot the system.