Use this procedure for configuring TCP/IP on a host that runs in local files mode.
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.
Change to the /etc directory.
Verify that the correct host name is set in the /etc/nodename file.
When you specify the host name of a system during Oracle Solaris installation, that host name is entered into the /etc/nodename file. Make sure that the node name entry is the correct host name for the system.
For file syntax and basic information about the /etc/hostname.interface file, refer to Basics for Administering Physical Interfaces.
The Oracle Solaris installation program requires you to configure at least one interface during installation. The first interface that you configure automatically becomes the primary network interface. The installation program creates an /etc/hostname.interface file for the primary network interface and any other interfaces that you optionally configure at installation time.
If you configured additional interfaces during installation, verify that each interface has a corresponding /etc/hostname.interface file. You do not need to configure more than one interface during Oracle Solaris installation. However, if you later want to add more interfaces to the system, you must manually configure them.
For steps for manually configuring interfaces, refer to Administering Interfaces in Solaris 10 3/05 or How to Configure a Physical Interface After System Installation, for releases starting with Solaris 10 1/06.
For Solaris 10 11/06 and earlier releases, verify that the entries in the /etc/inet/ipnodes file are current.
The Oracle Solaris 10 installation program creates the /etc/inet/ipnodes file. This file contains the node name and IPv4 address, and IPv6 address, if appropriate, of every interface that is configured during installation.
Use the following format for entries in the /etc/inet/ipnodes file:
IP-address node-name nicknames...
nicknames are additional names by which an interface is known.
The Oracle Solaris installation program creates entries for the primary network interface, loopback address, and, if applicable, any additional interfaces that were configured during installation.
Make sure that the existing entries in /etc/inet/hosts are current.
(Optional) Add the IP addresses and corresponding names for any network interfaces that were added to the local host after installation.
(Optional) Add the IP address or addresses of the file server, if the /usr file system is NFS mounted.
For example, suppose host tenere was part of the domain deserts.worldwide.com. Therefore, you would type deserts.worldwide.com in /etc/defaultdomain. See /etc/defaultdomain File for more information.
See /etc/defaultrouter File for information about this file.
Type the name of the default router and its IP addresses in the /etc/inet/hosts file.
Additional routing options are available, as discussed in How to Configure Hosts for Network Client Mode. You can apply these options to a local files mode configuration.
If the host gets its IP address from a DHCP server, you do not have to specify the network mask.
If you have set up a NIS server on the same network as this client, you can add netmask information into the appropriate database on the server.
For all other conditions, do the following:
Type the network number and the netmask in the /etc/inet/netmasks file.
Use the following format:
For example, for the Class C network number 192.168.83, you would type:
For CIDR addresses, convert the network prefix into the equivalent dotted decimal representation. Network prefixes and their dotted decimal equivalents can be found in Table 2–3. For example, use the following to express the CIDR network prefix 192.168.3.0/22.
Change the lookup order for netmasks in /etc/nsswitch.conf, so that local files are searched first:
netmasks: files nis