How do I change the hostname and IP address in Solaris 11?
How to change hostname in Solaris 11
- To list the current hostname (i.e. config/nodename property) :
- Change the hostname to geekserver by setting the property config/nodename to geekserver.
- Refresh and restart the system/identity:node service for the changes to take effect.
- 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.
- Step 1: Update /etc/hosts.
- Step 2: Change /etc/nodename.
- Step 3: Update /etc/hostname.
- Step 4: Reconfigure network and reset hostname to the new value.
How do I change my IP address in Solaris?
Configuring the IP address
- Step 1 : Set the NCP. We would set the NCP to DefaultFixed profile in order to configure the IP address manually.
- Step 2 : Check the link status. The command “dladm show-dev” does not work in Solaris 11.
- Step 3 : Create a new interface.
- Step 4 : Creating IP address.
How do I change the hostname in Solaris?
Changing hostname in Solaris
- 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.
- Step 2: Change /etc/nodename.
- Step 3: Update /etc/hostname.
- 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
- To obtain interface information, use ipadm show-if.
- To obtain address information, use ipadm show-addr.
- To obtain information about a specific interface property, use ipadm show-ifprop.
- 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.