WIDE-DHCPv6 client configuration and dhcp6c Manual

Source: Internet
Author: User
Tags compact
WIDE-DHCPv6 client Configuration

The/etc/config/dhcp6cFile controls the WIDE-DHCPv6 client packageWide-dhcpv6-clientConfiguration. It definesBasic PropertiesAndInterface settings.

Sections

A Typical default configuration consists of onedhcp6cSection with common settings and one or moreinterfaceSections, usually coveringLanAndLoopbackNetworks.

Basic Properties

The section of Typedhcp6cNamedbasicDefines common client settings.

Example:

config 'dhcp6c' 'basic' option 'enabled' '1' option 'interface' 'wan' option 'pd' '1' option 'domain_name_servers' '1' option 'script' '/usr/bin/dhcp6c-state'

All defined options of this section are listed below.

Name Type Required Default Description
enabled Boolean No 0 Specifies whether the dhcpv6 client shocould be started on boot
interface String Yes wan SpecifiesLogical interface NameThe client is running on
dns String No dnsmasq Specifies the type of DNSServer in use to propagate hosted ed DNSInformation. At the time of writing, onlyDnsmasqIs supported
debug Boolean No 0 Enables additional debug information in the system log
pd Boolean No 1 Requests prefix delegation at the dhcpv6 Server
na Boolean No 0 Requests a permanent, non temporary address at the dhcpv6 Server
rapid_commit Boolean No 1 Signalize a rapid commit two message exchange (rfc3315)
domain_name_servers Boolean No 1 Request a DNSServer addresses
domain_name Boolean No 0 Request the Domain Name
ntp_servers Boolean No 0 Request NTP server addresses (rfc5908)
sip_server_address Boolean No 0 Request SIP server address (rfc3319)
sip_server_domain_name Boolean No 0 Request sip Domain Names (rfc3319)
nis_server_address Boolean No 0 Request Network Information Service (NIS) Server address (rfc3898)
nis_domain_name Boolean No 0 Request Network Information Service (NIS) Domain name (rfc3898)
nisp_server_address Boolean No 0 Request Network Information Service V2 (NIS+) Server address (rfc3898)
nisp_domain_name Boolean No 0 Request Network Information Service V2 (NIS+) Domain name (rfc3898)
bcmcs_server_address Boolean No 0 Request broadcast and multicast Control Service (bcmcs) address (rfc4280)
bcmcs_server_domain_name Boolean No 0 Request broadcast and multicast Control Service (bcmcs) domain name (rfc4280)
duid String No (Derived from MAC address) Override the duid used for dhcpv6 requests. The duid must be specified as a set of at least 7 colon separated heximal digits, e.g.00:03:00:06:D8:5D:4C:A5:03:F2
script File Path No /usr/bin/dhcp6c-state Path of script which is executed when a reply is already ed
Interface settings

Sections of TypeinterfaceDefine on which interfaces delegated prefixes are added and how they're aggregated. This sections areNamed, The section name corresponds to the coveredLogical interface.

Example:

config 'interface' 'lan' option 'enabled' '1' option 'sla_id' '0' option 'sla_len' '8'
  • lanSpecifies that this section belongs to the LAN interface
  • sla_id 0Selects the 1st subnet out of the delegated prefix
  • sla_len 8Defines that the specified ed prefix is expected to be 56 bits in size (64-8=56)

The valid options of this section are listed blow.

Name Type Required Default Description
enabled Boolean No 0 Specifies whether a prefix shocould be added on this interface
sla_id Integer Yes (None) SpecifiesSite level aggregator identifier(Selects the subnet out of the delegated prefix)
sla_len Integer Yes (None) SpecifiesSite level aggregator LengthWhich is the difference of 64 and the delegated prefix size, e.g./64Minus/56From ISP=8
Example

This example requests/56Sized prefix and DNSServers onwanAnd configures two/64Subnets out of the prefix onlanAndloopback.loopbackInterface gets the first subnet assigned,lanThe second.

config 'dhcp6c' 'basic' option 'enabled' '1' option 'interface' 'wan' option 'pd' '1' option 'domain_name_servers' '1' option 'script' '/usr/bin/dhcp6c-state' config 'interface' 'loopback' option 'enabled' '1' option 'sla_id' '0' option 'sla_len' '8' config 'interface' 'lan' option 'enabled' '1' option 'sla_id' '1' option 'sla_len' '8'

-------------------

Dhcp6c (8)-Linux man pagename

Dhcp6c-dhcpv6 client daemon

Synopsis

Dhcp6c[-DDF] [-R All|<Addresses...>] [-R <Addresses...>] [-C Pathspec] [-I]<Interface>

Description

Dhcp6cIs an implementation of the dhcpv6 client.

Using dhcpv6 messages and dhcpv6 options,Dhcp6cIs used to request and configure IPv6 addresses and host network configuration information (e.g ., DNS) for a network interface from the dhcpv6 server. it can also be used as a requesting router to request and configure prefix delegation for a subnet.

The assigned IPv6 addresses and prefixes are saved as/var/lib/dhcpv6/client6.leasesxxxxxx; this file is used to request the same addresses and prefixes from the dhcpv6 server. EachDhcp6cClient has a client DHCP unique identifier (duid); The duid file is saved as/var/lib/dhcpv6/dhcp6c_duid.Dhcp6cClient configuration is defined in/etc/dhcp6c. conf.

Options
-C pathspec
Specifies

The configuration fileDhcp6c

-D
Enables Dhcp6cTo print debugging messages.
-D
Enables Dhcp6cTo print verbose debugging messages.
-F
Enables Dhcp6cTo work as a foreground application. This option is helpful for debugging.
-I
Allows Dhcp6cTo request network information only. Do not configure the interface.
-R all | <addresses...>
Allows Dhcp6cTo release the addresses specified. This option is used only when releasing addresses explicitly.
-R <addresses...>
Allows Dhcp6cTo request the specified addresses.
Files
/Etc/dhcp6c. conf
Contains dhcpv6 client configuration information.
/Var/lib/dhcpv6/dhcp6c_duid
Contains dhcpv6 client duid.
/Var/lib/dhcpv6/client6_leasesxxxxxx
Contains dhcpv6 client assigned IPv6 addresses and prefixes.
Errors

Check/var/log/messages if there are errors.

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.