- Assume the Primary Administrator role, or become superuser.
The Primary Administrator role includes the Primary Administrator profile. To create the role and assign the role to a user, see Chapter 2, Working With the Solaris Management Console (Tasks), in System Administration Guide: Basic Administration. - For Solaris 10 11/06 and earlier releases only, modify the IP address in the /etc/inet/ipnodes file or equivalent ipnodes database.
Use the following syntax for each IP address that you add to the system:
IP-address host-name, nicknames IP-address interface-name, nicknames
- If the system's host name must change, modify the host name entry in the /etc/nodename file.
- Modify the IP address and, if applicable, the host name in the /etc/inet/hosts file or equivalent hosts database.
- Modify the IP address in the /etc/hostname.interface file for the primary network interface.
You can use any of the following as the entry for the primary network interface in the /etc/hostnameinterface file:
- IPv4 address, expressed in traditional dotted decimal format
Use the following syntax:
IPv4 address subnet mask
Here is an example:
# vi hostname.eri0 10.0.2.5 netmask 255.0.0.0
- IPv4 address, expressed in CIDR notation, if appropriate for your network configuration.
IPv4 address/network prefix
# vi hostname.eri0 10.0.2.5/8
- Host name.
To use the system's host name in the /etc/hostname.interface file, be sure that the host name and associated IPv4 address are also in the hosts database.
- IPv4 address, expressed in traditional dotted decimal format
- If the subnet mask has changed, modify the subnet entries in the following files:
- /etc/netmasks
- (Optional) /etc/hostname.interface
- If the subnet address has changed, change the IP address of the default router in /etc/defaultrouter to that of the new subnet's default router.
- Reboot the system.
# reboot -- -r