- 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:
The first entry should contain the IP address of the primary network interface and the host name of the system. You can optionally add nicknames for the host name. When you add additional physical interfaces to a system, create entries in /etc/inet/ipnodes for the IP addresses and associated names of those interfaces.
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:
The netmask entry is optional. If you do not specify it, the default netmask is assumed.
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.
Here is an example:
IPv4 address/network prefix
The CIDR prefix designates the appropriate netmask for the IPv4 address. For example, the /8 above indicates the netmask 255.0.0.0.
# 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