DHCP6S.CONF(5) | File Formats Manual | DHCP6S.CONF(5) |
dhcp6s.conf
—
DHCPv6 server configuration file
/etc/wide-dhcpv6/dhcp6s.conf
The dhcp6s.conf
file contains
configuration information for KAME's DHCPv6 server,
dhcp6s
. The configuration file consists of a
sequence of statements terminated by a semi-colon (`;'). Statements are
composed of tokens separated by white space, which can be any combination of
blanks, tabs and newlines. In some cases a set of statements is combined
with a pair of brackets, which is regarded as a single token. Lines
beginning with ‘#
’ are comments.
There are some statements that may or have to specify interface. Interfaces are specified in the form of "name unit", such as fxp0 and gif1.
An include statement specifies another configuration file to be included. The format of an include statement is as follows:
include
"filename";An option statement specifies configuration parameters provided for every client. The format of the statement is as follows.
option
option-name [option-value]
;domain-name-servers
dns-address
[dns-addresses...];domain-name
"dns-name";ntp-servers
ntp-address
[ntp-addresses...];sip-server-address
sip-server-address
[sip-server-addresses...];sip-server-domain-name
"sip-server-domain-name";nis-server-address
nis-server-address
[nis-server-addresses...];nis-domain-name
"nis-domain-name";nisp-server-address
nisp-server-address
[nisp-server-addresses...];nisp-domain-name
"nisp-domain-name";bcmcs-server-address
bcmcs-server-address
[bcmcs-server-addresses...];bcmcs-server-domain-name
"bcmcs-server-domain-name";refreshtime
interval;An interface statement specifies configuration parameters on the interface. The generic format of an interface statement is as follows:
interface
interface { substatements
};allow
allow-options ;allow
statement, which specifies the server
to accept a rapid-commit option in solicit messages.preference
pref;address-pool
pool pltime
[vltime];dhcp6s.conf
receives a
allocation request for an IA-NA, it assigns one IPv6 address from this
pool. The specified pool name will be defined in a pool statement.
Regarding the pltime and
vltime , please see the explanation in the
prefix substatement in host statement
section.A host statement specifies configuration parameters for a particular client. The generic format of a host statement is as follows:
host
name { substatements };duid
ID;prefix
ipv6-prefix pltime
[vltime];infinity
can be
specified as a lifetime. A decimal number provides the lifetime in
seconds, while infinity
means the
corresponding lifetime never expires. When both lifetimes are
specified, pltime must not be larger than
vltime. Multiple prefixes can be specified, each
of which is given by a single prefix
statement. In that case, all or some of the specified prefixes will be
delegated to the client, based on required parameters by the
client.address
ipv6-address pltime
[vltime];delayedkey
keyname;keyinfo
statement for
keyname must be provided in the configuration
file. When this statement is specified and the client includes an
authentication option for the delayed authentication protocol in a
Solicit message, dhcp6s
will perform the
authentication protocol for succeeding message exchanges.A pool statement specifies an address pool for a particular interface. The generic format of a pool statement is as follows:
pool
name { substatements; };range
min-addr to
max-addrThis statement defines a secret key shared with a client to
authenticate DHCPv6 messages. The format and the description of this
statement is provided in dhcp6c.conf(5). One important
difference in the server configuration is, however, the
keyname is referred from a
host
statement as described above.
The followings are a sample configuration to provide a DNS server address for every client as well as to delegate a permanent IPv6 prefix 2001:db8:1111::/48 to a client whose DUID is 00:01:00:01:aa:bb.
option domain-name-servers 2001:db8::35; host kame { duid 00:01:00:01:aa:bb; prefix 2001:db8:1111::/48 infinity; };
If a shared secret should be configured in both the server and the client for DHCPv6 authentication, it would be specified in the configuration file as follows:
keyinfo kame { realm "kame.net"; keyid 1; secret "5pvW2g48OHPvkYMJSw0vZA=="; };
And the host
statement would be modified
as follows:
host kame { duid 00:01:00:01:aa:bb; prefix 2001:db8:1111::/48 infinity; delayedkey kame; };
The dhcp6s.conf
configuration file first
appeared in the WIDE/KAME IPv6 protocol stack kit.
July 29, 2004 | KAME |