|
|
HP-UX Reference > Ddhcpv6d(1M)HP-UX 11i Version 2: December 2007 Update |
|
NAMEdhcpv6d — Dynamic Host Configuration Protocol Server daemon for IPv6 DESCRIPTIONThe dhcpv6d server daemon is the IPv6 version of the bootpd daemon. This version supports the following features:
The dhcpv6d daemon is run as a stand-alone daemon and not spawned by inetd. Options
ConfigurationWhen an unconfigured host needs to be configured, it checks for router advertisements. From the router advertisement, depending on the prefix obtained, the host will generate either a site-local or a global address. If there are no routers on the link on which the host is located, it uses dhcpv6client to configure itself. The client forms a SOLICIT message and sends it to the pre-determined ALL DHCP agents address. In response to this, the client will receive ADVERTISE messages from a few DHCP servers. The client will select the server based on the preference values in advertise messages. Refer to the "Configuraion File" section for information on how to set the DHCP's server preference value. In response to the ADVERTISE message, the client will send a REQUEST message to the server either directly if the server is on the same link as that of the client or through the on-link relay. The server responds with REPLY message containing the requested configuration parameters. The DHCP server assigns addresses to the clients using "Identity Association (IA)", which is a collection of addresses assigned to a client. The client uses the addresses in the IA to configure its interfaces. If the client determines that the address allocated to it by the server is already in use, it will send a RELEASE message to the server. To extend the lifetime of the addresses assigned to an IA, the client sends a RENEW message to the server, which contains the IA and the associated addresses. The server will determine the new lifetimes for the addresses on the IA based on the server's administrative configuration. The server will respond to this message with a REPLY message. The server controls the time at which the client contacts the server to extend the lifetimes on assigned addresses through the T1 and T2 parameters that are assigned to the IA. The client initiates a RENEW message at time T1. If the server to which the RENEW message is sent does not respond, then the client will increase the timeout and wait for a response. The client continues sending the message until the expiration of T2. But at time T2 for the IA, the client initiates a REBIND message. This message is sent to all the servers in the domain. The server will respond to this message and will renew the lifetime of the assigned addresses. If the client does not receive a response to its REBIND message, it tries resending the message until the expiration of lifetimes of all the addresses in IA. The client will choose one of the following alternatives:
The client sends a RELEASE message to release an IA. This message is sent to the server that assigned the addresses to the client initially and the client will wait until the timeout value expires. If the server cannot be reached after 5 attempts, the client will abandon this release attempt. These addresses will be claimed by the servers when the lifetimes of the addresses expire. The administrator will trigger dhcpv6d to unicast a RECONFIGURE-INIT message to all those clients who have their addresses assigned by this server when the server configuration changes are vital. This message is a trigger which will cause the clients to initiate a standard REQUEST message to the server to obtain the new or updated configuration parameters. Configuration FileUpon startup, dhcpv6d reads the configuration file, /etc/dhcpv6tab, or a file specified with the -c option to build its internal database and then listens for SOLICIT/REQUEST messages from the client. If configuration parameters are added, deleted, or modified, then their entries in the internal database are updated when dhcpv6d is invoked with the -r option. The configuration file contains the following sections:
Blank lines and lines beginning with "#" in the configuration file are ignored. Entries are separated from one another by a semicolon. Multiple entries of a group can be extended over multiple lines if the lines end with a backslash \. A final semicolon ; followed by a new line indicates the end of a group. IP addresses are specified in the standard IPv6 notation (colon notation) and can use hexadecimal numbers. The tags for the DHCP_CLIENT_DEFAULT_SETTINGS are as listed below. These tags are applicable to all the addresses that the server assigns to the DHCPv6 client.
The message transaction configuration values are as listed below:
The tags applicable for the individual DHCPv6 pool groups are as listed below:
Note: Values for the above listed tags must satisfy the following condition: reconf-grace-period < T1 < T2 < preferred-life-time < valid-life-time If the above condition fails, the server takes the default values. The DHCPv6 relay-specific tags are as listed below:
EXAMPLESA sample /etc/dhcpv6tab file is shown below: DHCP_CLIENT_DEFAULT_SETTINGS; client-settings-name=TESTING-GROUP;\ POSIX-time-zone=EST5EDT4,116/02:00:00,298/02:00:00;\ DNS-server-address=3ffe::200:fe23:b580 3ffe::200:fe23:b540;\ DNS-suffix=india.hp.com;\ NIS-domain-name=india.hp.com;\ NIS-server-address=3ffe::200:fe23:b123 3ffe::200:fe23:b034;\ NIS+client-domain-name=cup.hp.com;\ NIS+server-address=3ffe:200:fe23::2341;\ NTP-server-address=3ffe::200:fe23:b123 3ffe::200:fe23:b034;\ SLP-DA-address=3ffe::200:fe23:b123 (netman=mgmt),(proxystuff=labs); DHCP_POOL_GROUP;\ pool-group-name=TESTING-POOL;\ default-settings=TESTING-GROUP;\ subnet-prefix=3ffe:305:1002:1::;\ prefix-length=64;\ T1=56;\ T2=90;\ preferred-life-time=300;\ valid-life-time=500;\ address-pool = 3ffe:305:1002:1:200:c0ff:fe23:b560 - 3ffe:305:1002:1:200:c0ff:fe23:b570 3ffe:305:1002:1:200:c0ff:fe23:b580 - 3ffe:305:1002:1:200:c0ff:fe23:b590;\ preference=255;\ NTP-server-address=3ffe::200:fe23:b102; DHCP_RELAY_SETTINGS;\ pool-group-name=RED-POOL;\ subnet-prefix=5ffe:305:1002:1::;\ prefix-len=64;\ dest-dhcp-server-address=5ffe:305:1002:1:2345:203:1ff3:3048; |
|