Fortinet white logo
Fortinet white logo

CLI Reference

config system dhcp6server

config system dhcp6server

Description: Configure DHCP6 servers.

config system dhcp6server
  edit <name>
    set status [enable | disable]
    set lease-time [300 – 8640000]
    set dns-service [default | specify]
    set subnet {ipv6-address}
    set interface [option1 | ...]
    set ip-mode [range]
    config ip-range
      edit <name>
        set start-ip {ipv6-address}
        set end-ip {ipv6-address}
      next
    end
    config prefix-range
      edit <name>
        set start-ip {ipv6-address}
        set end-ip {ipv6-address}
        set prefix-length <integer>
      next
    end
  next
end
Sample command:
config system dhcp6server
  edit 1
    set status enable
    set lease-time 604800
    set dns-service specify
    set dns-server1 
    set dns-server2 
    set dns-server3 
    set dns-server4 
    set subnet 2001:1:3::/64
    set interface lan
    set ip-mode range
    config ip-range
      edit 1
        set start-ip 2001:1:3::2
        set end-ip 2001:1:3::5
      next
    end
    config prefix-range
      edit 1
        set start-ip 2001:1:3:0000:1000::
        set end-ip 2001:1:3:0000:1001::
        set prefix-length 80
      next
    end
  next
end
Parameter

Description

Type

Size

Default

status Status of the DHCP6 configuration. option - enable

Option Description
enable Enable the DHCP6 server.
disable Disable the DHCP6 server.
lease-time Lease time in seconds. 0 means unlimited. integer 300 - 8640000 604800
dns-service Options for assigning IPv6 DNS servers to DHCP6 clients Option - specify

Option Description
default Clients are assigned the FortiExtender configured DNS server.

specify

  • Specify DNS servers in the DHCP server configuration.
  • dns-server1

    Specify the IP address of DNS Server 1.

    Available when dns-service is set to specify.

    IPv6 address - none
    dns-server2

    Specify the IP address of DNS Server 2.

    Available when dns-service is set to specify.

    IPv6 address - none
    dns-server3

    Specify the IP address of DNS Server 3.

    Available when dns-service is set to specify.

    IPv6 address - none
    dns-server4

    Specify the IP address of DNS Server 4.

    Available when dns-service is set to specify.

    IPv6 address - none
    subnet Defines a managed IPv6 prefix and its associated pools and options. IPv6 subnet - none

    interface

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

    Options vary depending on the interface type.

    option

    -

    none

    ip-mode

    Method used to assign client IP

    option

    -

    range

    Option Description
    range

    Assign by IP range.

    ip-range

    Configure IPv6 address list.

    See config ip-range.

    array

    -

    none

    prefix-range

    Configure IPv6 prefix list.

    See config prefix-range.

    array -

    none

    config ip-range

    Parameter

    Description

    Type

    Size

    Default

    start-ip

    Start of IP range.

    IPv6 address

    -

    none

    end-ip

    End of IP range.

    IPv6 address

    -

    none

    config prefix-range

    Parameter

    Description

    Type

    Size

    Default

    start-ip

    Start of prefix range.

    IPv6 address

    -

    none

    end-ip

    End of prefix range.

    IPv6 address

    -

    none

    prefix-length

    Prefix length.

    integer

    -

    config system dhcp6server

    config system dhcp6server

    Description: Configure DHCP6 servers.

    config system dhcp6server
      edit <name>
        set status [enable | disable]
        set lease-time [300 – 8640000]
        set dns-service [default | specify]
        set subnet {ipv6-address}
        set interface [option1 | ...]
        set ip-mode [range]
        config ip-range
          edit <name>
            set start-ip {ipv6-address}
            set end-ip {ipv6-address}
          next
        end
        config prefix-range
          edit <name>
            set start-ip {ipv6-address}
            set end-ip {ipv6-address}
            set prefix-length <integer>
          next
        end
      next
    end
    
    Sample command:
    config system dhcp6server
      edit 1
        set status enable
        set lease-time 604800
        set dns-service specify
        set dns-server1 
        set dns-server2 
        set dns-server3 
        set dns-server4 
        set subnet 2001:1:3::/64
        set interface lan
        set ip-mode range
        config ip-range
          edit 1
            set start-ip 2001:1:3::2
            set end-ip 2001:1:3::5
          next
        end
        config prefix-range
          edit 1
            set start-ip 2001:1:3:0000:1000::
            set end-ip 2001:1:3:0000:1001::
            set prefix-length 80
          next
        end
      next
    end
    Parameter

    Description

    Type

    Size

    Default

    status Status of the DHCP6 configuration. option - enable

    Option Description
    enable Enable the DHCP6 server.
    disable Disable the DHCP6 server.
    lease-time Lease time in seconds. 0 means unlimited. integer 300 - 8640000 604800
    dns-service Options for assigning IPv6 DNS servers to DHCP6 clients Option - specify

    Option Description
    default Clients are assigned the FortiExtender configured DNS server.

    specify

  • Specify DNS servers in the DHCP server configuration.
  • dns-server1

    Specify the IP address of DNS Server 1.

    Available when dns-service is set to specify.

    IPv6 address - none
    dns-server2

    Specify the IP address of DNS Server 2.

    Available when dns-service is set to specify.

    IPv6 address - none
    dns-server3

    Specify the IP address of DNS Server 3.

    Available when dns-service is set to specify.

    IPv6 address - none
    dns-server4

    Specify the IP address of DNS Server 4.

    Available when dns-service is set to specify.

    IPv6 address - none
    subnet Defines a managed IPv6 prefix and its associated pools and options. IPv6 subnet - none

    interface

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

    Options vary depending on the interface type.

    option

    -

    none

    ip-mode

    Method used to assign client IP

    option

    -

    range

    Option Description
    range

    Assign by IP range.

    ip-range

    Configure IPv6 address list.

    See config ip-range.

    array

    -

    none

    prefix-range

    Configure IPv6 prefix list.

    See config prefix-range.

    array -

    none

    config ip-range

    Parameter

    Description

    Type

    Size

    Default

    start-ip

    Start of IP range.

    IPv6 address

    -

    none

    end-ip

    End of IP range.

    IPv6 address

    -

    none

    config prefix-range

    Parameter

    Description

    Type

    Size

    Default

    start-ip

    Start of prefix range.

    IPv6 address

    -

    none

    end-ip

    End of prefix range.

    IPv6 address

    -

    none

    prefix-length

    Prefix length.

    integer

    -