Fortinet white logo
Fortinet white logo

CLI Reference

config system dhcp6 server

config system dhcp6 server

Configure DHCPv6 servers.

config system dhcp6 server
    Description: Configure DHCPv6 servers.
    edit <id>
        set delegated-prefix-iaid {integer}
        set dns-search-list [delegated|specify]
        set dns-server1 {ipv6-address}
        set dns-server2 {ipv6-address}
        set dns-server3 {ipv6-address}
        set dns-server4 {ipv6-address}
        set dns-service [delegated|default|...]
        set domain {string}
        set interface {string}
        set ip-mode [range|delegated]
        config ip-range
            Description: DHCP IP range configuration.
            edit <id>
                set end-ip {ipv6-address}
                set start-ip {ipv6-address}
                set vci-match [disable|enable]
                set vci-string <vci-string1>, <vci-string2>, ...
            next
        end
        set lease-time {integer}
        config options
            Description: DHCPv6 options.
            edit <id>
                set code {integer}
                set ip6 {user}
                set type [hex|string|...]
                set value {string}
                set vci-match [disable|enable]
                set vci-string <vci-string1>, <vci-string2>, ...
            next
        end
        set prefix-mode [dhcp6|ra]
        config prefix-range
            Description: DHCP prefix configuration.
            edit <id>
                set end-prefix {ipv6-address}
                set prefix-length {integer}
                set start-prefix {ipv6-address}
            next
        end
        set rapid-commit [disable|enable]
        set status [disable|enable]
        set subnet {ipv6-prefix}
        set upstream-interface {string}
    next
end

config system dhcp6 server

Parameter

Description

Type

Size

Default

delegated-prefix-iaid

IAID of obtained delegated-prefix from the upstream interface.

integer

Minimum value: 0 Maximum value: 4294967295

0

dns-search-list

DNS search list options.

option

-

specify

Option

Description

delegated

Delegated the DNS search list.

specify

Specify the DNS search list.

dns-server1

DNS server 1.

ipv6-address

Not Specified

::

dns-server2

DNS server 2.

ipv6-address

Not Specified

::

dns-server3

DNS server 3.

ipv6-address

Not Specified

::

dns-server4

DNS server 4.

ipv6-address

Not Specified

::

dns-service

Options for assigning DNS servers to DHCPv6 clients.

option

-

specify

Option

Description

delegated

Delegated DNS settings.

default

Clients are assigned the FortiGate's configured DNS servers.

specify

Specify up to 3 DNS servers in the DHCPv6 server configuration.

domain

Domain name suffix for the IP addresses that the DHCP server assigns to clients.

string

Maximum length: 35

id

ID.

integer

Minimum value: 0 Maximum value: 4294967295

0

interface

DHCP server can assign IP configurations to clients connected to this interface.

string

Maximum length: 15

ip-mode

Method used to assign client IP.

option

-

range

Option

Description

range

Use range defined by start IP/end IP to assign client IP.

delegated

Use delegated prefix method to assign client IP.

lease-time

Lease time in seconds, 0 means unlimited.

integer

Minimum value: 300 Maximum value: 8640000

604800

prefix-mode

Assigning a prefix from a DHCPv6 client or RA.

option

-

dhcp6

Option

Description

dhcp6

Use delegated prefix from a DHCPv6 client.

ra

Use prefix from RA.

rapid-commit

Enable/disable allow/disallow rapid commit.

option

-

disable

Option

Description

disable

Do not allow rapid commit.

enable

Allow rapid commit.

status

Enable/disable this DHCPv6 configuration.

option

-

enable

Option

Description

disable

Enable this DHCPv6 server configuration.

enable

Disable this DHCPv6 server configuration.

subnet

Subnet or subnet-id if the IP mode is delegated.

ipv6-prefix

Not Specified

::/0

upstream-interface

Interface name from where delegated information is provided.

string

Maximum length: 15

config ip-range

Parameter

Description

Type

Size

Default

end-ip

End of IP range.

ipv6-address

Not Specified

::

id

ID.

integer

Minimum value: 0 Maximum value: 4294967295

0

start-ip

Start of IP range.

ipv6-address

Not Specified

::

vci-match

Enable/disable vendor class option matching. When enabled only DHCP requests with a matching VC are served with this range.

option

-

disable

Option

Description

disable

Disable VCI matching.

enable

Enable VCI matching.

vci-string <vci-string>

One or more VCI strings in quotes separated by spaces.

VCI strings.

string

Maximum length: 255

config options

Parameter

Description

Type

Size

Default

code

DHCPv6 option code.

integer

Minimum value: 0 Maximum value: 255

0

id

ID.

integer

Minimum value: 0 Maximum value: 4294967295

0

ip6

DHCP option IP6s.

user

Not Specified

type

DHCPv6 option type.

option

-

hex

Option

Description

hex

DHCPv6 option in hex.

string

DHCPv6 option in string.

ip6

DHCPv6 option in IP6.

fqdn

DHCPv6 option in domain search option format.

value

DHCPv6 option value (hexadecimal value must be even).

string

Maximum length: 312

vci-match

Enable/disable vendor class option matching. When enabled only DHCP requests with a matching VCI are served with this option.

option

-

disable

Option

Description

disable

Disable VCI matching.

enable

Enable VCI matching.

vci-string <vci-string>

One or more VCI strings in quotes separated by spaces.

VCI strings.

string

Maximum length: 255

config prefix-range

Parameter

Description

Type

Size

Default

end-prefix

End of prefix range.

ipv6-address

Not Specified

::

id

ID.

integer

Minimum value: 0 Maximum value: 4294967295

0

prefix-length

Prefix length.

integer

Minimum value: 1 Maximum value: 128

0

start-prefix

Start of prefix range.

ipv6-address

Not Specified

::

config system dhcp6 server

config system dhcp6 server

Configure DHCPv6 servers.

config system dhcp6 server
    Description: Configure DHCPv6 servers.
    edit <id>
        set delegated-prefix-iaid {integer}
        set dns-search-list [delegated|specify]
        set dns-server1 {ipv6-address}
        set dns-server2 {ipv6-address}
        set dns-server3 {ipv6-address}
        set dns-server4 {ipv6-address}
        set dns-service [delegated|default|...]
        set domain {string}
        set interface {string}
        set ip-mode [range|delegated]
        config ip-range
            Description: DHCP IP range configuration.
            edit <id>
                set end-ip {ipv6-address}
                set start-ip {ipv6-address}
                set vci-match [disable|enable]
                set vci-string <vci-string1>, <vci-string2>, ...
            next
        end
        set lease-time {integer}
        config options
            Description: DHCPv6 options.
            edit <id>
                set code {integer}
                set ip6 {user}
                set type [hex|string|...]
                set value {string}
                set vci-match [disable|enable]
                set vci-string <vci-string1>, <vci-string2>, ...
            next
        end
        set prefix-mode [dhcp6|ra]
        config prefix-range
            Description: DHCP prefix configuration.
            edit <id>
                set end-prefix {ipv6-address}
                set prefix-length {integer}
                set start-prefix {ipv6-address}
            next
        end
        set rapid-commit [disable|enable]
        set status [disable|enable]
        set subnet {ipv6-prefix}
        set upstream-interface {string}
    next
end

config system dhcp6 server

Parameter

Description

Type

Size

Default

delegated-prefix-iaid

IAID of obtained delegated-prefix from the upstream interface.

integer

Minimum value: 0 Maximum value: 4294967295

0

dns-search-list

DNS search list options.

option

-

specify

Option

Description

delegated

Delegated the DNS search list.

specify

Specify the DNS search list.

dns-server1

DNS server 1.

ipv6-address

Not Specified

::

dns-server2

DNS server 2.

ipv6-address

Not Specified

::

dns-server3

DNS server 3.

ipv6-address

Not Specified

::

dns-server4

DNS server 4.

ipv6-address

Not Specified

::

dns-service

Options for assigning DNS servers to DHCPv6 clients.

option

-

specify

Option

Description

delegated

Delegated DNS settings.

default

Clients are assigned the FortiGate's configured DNS servers.

specify

Specify up to 3 DNS servers in the DHCPv6 server configuration.

domain

Domain name suffix for the IP addresses that the DHCP server assigns to clients.

string

Maximum length: 35

id

ID.

integer

Minimum value: 0 Maximum value: 4294967295

0

interface

DHCP server can assign IP configurations to clients connected to this interface.

string

Maximum length: 15

ip-mode

Method used to assign client IP.

option

-

range

Option

Description

range

Use range defined by start IP/end IP to assign client IP.

delegated

Use delegated prefix method to assign client IP.

lease-time

Lease time in seconds, 0 means unlimited.

integer

Minimum value: 300 Maximum value: 8640000

604800

prefix-mode

Assigning a prefix from a DHCPv6 client or RA.

option

-

dhcp6

Option

Description

dhcp6

Use delegated prefix from a DHCPv6 client.

ra

Use prefix from RA.

rapid-commit

Enable/disable allow/disallow rapid commit.

option

-

disable

Option

Description

disable

Do not allow rapid commit.

enable

Allow rapid commit.

status

Enable/disable this DHCPv6 configuration.

option

-

enable

Option

Description

disable

Enable this DHCPv6 server configuration.

enable

Disable this DHCPv6 server configuration.

subnet

Subnet or subnet-id if the IP mode is delegated.

ipv6-prefix

Not Specified

::/0

upstream-interface

Interface name from where delegated information is provided.

string

Maximum length: 15

config ip-range

Parameter

Description

Type

Size

Default

end-ip

End of IP range.

ipv6-address

Not Specified

::

id

ID.

integer

Minimum value: 0 Maximum value: 4294967295

0

start-ip

Start of IP range.

ipv6-address

Not Specified

::

vci-match

Enable/disable vendor class option matching. When enabled only DHCP requests with a matching VC are served with this range.

option

-

disable

Option

Description

disable

Disable VCI matching.

enable

Enable VCI matching.

vci-string <vci-string>

One or more VCI strings in quotes separated by spaces.

VCI strings.

string

Maximum length: 255

config options

Parameter

Description

Type

Size

Default

code

DHCPv6 option code.

integer

Minimum value: 0 Maximum value: 255

0

id

ID.

integer

Minimum value: 0 Maximum value: 4294967295

0

ip6

DHCP option IP6s.

user

Not Specified

type

DHCPv6 option type.

option

-

hex

Option

Description

hex

DHCPv6 option in hex.

string

DHCPv6 option in string.

ip6

DHCPv6 option in IP6.

fqdn

DHCPv6 option in domain search option format.

value

DHCPv6 option value (hexadecimal value must be even).

string

Maximum length: 312

vci-match

Enable/disable vendor class option matching. When enabled only DHCP requests with a matching VCI are served with this option.

option

-

disable

Option

Description

disable

Disable VCI matching.

enable

Enable VCI matching.

vci-string <vci-string>

One or more VCI strings in quotes separated by spaces.

VCI strings.

string

Maximum length: 255

config prefix-range

Parameter

Description

Type

Size

Default

end-prefix

End of prefix range.

ipv6-address

Not Specified

::

id

ID.

integer

Minimum value: 0 Maximum value: 4294967295

0

prefix-length

Prefix length.

integer

Minimum value: 1 Maximum value: 128

0

start-prefix

Start of prefix range.

ipv6-address

Not Specified

::