Historically, DHCP option information has been stored in several places in Solaris DHCP, including the server's dhcptab table, the client's dhcptags file, and internal tables of in.dhcpd, snoop, dhcpinfo, and dhcpmgr. In an effort to consolidate option information, the Solaris 8 DHCP product introduced the /etc/dhcp/inittab file. See the dhcp_inittab man page for detailed information about the file.
The Solaris DHCP client uses the DHCP inittab file as a replacement for the dhcptags file to obtain information about option codes received in its DHCP packet. The in.dhcpd, snoop, and dhcpmgr programs on the DHCP server use the inittab file as well.
Most sites that use Solaris DHCP are not affected by this change. Your site is affected only if you plan to upgrade to Solaris 8, you previously created new DHCP options and modified the /etc/dhcp/dhcptags file, and you want to retain the changes. When you upgrade, the upgrade log notifies you that your dhcptags file had been modified and that you should make changes to the DHCP inittab file.
The inittab file contains more information than the dhcptags file and it uses a different syntax.
A sample dhcptags entry is:
33 StaticRt - IPList Static_Routes
where 33 is the numeric code that is passed in the DHCP packet, StaticRt is the option name, IPList indicates the expected data is a list of IP addresses, and Static_Routes is a more descriptive name.
The inittab file consists of one-line records that describe each option. The format is similar to the format that defines symbols in dhcptab. The following table describes the syntax of the inittab.
Table 12–3 DHCP inittab File Syntax
A sample inittab entry is:
StaticRt Standard, 33, IP, 2, 0, sdmi
This entry describes an option named StaticRt, which is in the Standard category and is option code 33. The expected data is a potentially infinite number of pairs of IP addresses because the type is IP, granularity is 2, and maximum is infinite (0). The consumers of this option are sdmi: snoop, in.dhcpd, dhcpmgr, and dhcpinfo.
If you previously added entries to your dhcptags file, you must add corresponding entries to the new inittab file. The following example shows how a sample dhcptags entry might be expressed in inittab format.
Suppose you had added the following dhcptags entry for fax machines connected to the network:
128 FaxMchn - IP Fax_Machine
The code 128 means that it must be in the site category, the option name is FaxMchn, the data type is IP.
The corresponding inittab entry might be:
FaxMchn SITE, 128, IP, 1, 1, sdmi
The granularity of 1 and maximum of 1 indicate that one IP address is expected for this option.