system : dhcp6 server
 
dhcp6 server
Use this command to add one or more IPv6 DHCP servers for any FortiGate interface. As a DHCP server, the interface dynamically assigns IP addresses to hosts on a network connected to the interface.
This command is available in NAT/Route mode only.
Syntax
config system dhcp6 server
edit <server_index_int>
set status {enable | disable}
set dns-service {default | specify}
set dns-server1 <address_ipv6>
set dns-server2 <address_ipv6>
set dns-server3 <address_ipv6>
set domain <domain_name_str>
set interface <interface_name>
set lease-time <seconds>
set option1 <option_code> [<option_hex>]
set option2 <option_code> [<option_hex>]
set option3 <option_code> [<option_hex>]
set subnet <mask>
config ip-range
edit <ip_range_int>
set start-ip <address_ipv6>
set end-ip <end_ipv6>
end
end
Variable
Description
Default
edit <server_index_int>
Enter an integer ID for the DHCP server.
 
status {enable | disable}
Enable or disable this DHCP server.
enable
dns-service {default | specify}
Select default to assign DHCP clients the DNS servers added to the FortiGate unit using the config system dns command. Select specify to specify the DNS servers that this DHCP server assigns to DHCP clients. Use the dns-server# options to add DNS servers to this DHCP server configuration.
specify
dns-server1 <address_ipv6>
The IP address of the first DNS server that the DHCP server assigns to DHCP clients. Used if dns-service is set to specify.
::
dns-server2 <address_ipv6>
The IP address of the second DNS server that the DHCP server assigns to DHCP clients. Used if dns-service is set to specify.
::
dns-server3 <address_ipv6>
The IP address of the third DNS server that the DHCP server assigns to DHCP clients. Used if dns-service is set to specify.
::
domain <domain_name_str>
Domain name suffix for the IP addresses that the DHCP server assigns to DHCP clients.
null
interface <interface_name>
The FortiGate unit interface that this DHCP server can assign IP addresses from. Devices connected to this interface can get their IP addresses from this DHCP server. You can only add one DHCP server to an interface.
null
lease-time <seconds>
The interval in seconds after which a DHCP client must ask the DHCP server for new settings. The lease duration must be between 300 and 864,000 seconds (10 days).
Set lease-time to 0 for an unlimited lease time.
604800
(7 days)
option1 <option_code> [<option_hex>]
option2 <option_code> [<option_hex>]
option3 <option_code> [<option_hex>]
The first, second, and third custom DHCP options that can be sent by the DHCP server. option_code is the DHCP option code in the range 1 to 255. option_hex is an even number of hexadecimal characters. For detailed information about DHCP options, see RFC 2132, DHCP Options and BOOTP Vendor Extensions.
0
subnet <mask>
The DHCP client netmask assigned by the DHCP server.
::/0
config ip-range
Configure the range of IP addresses that this DHCP server can assign to DHCP clients.
 
edit <ip_range_int>
Enter an integer ID for this IP address range.
You can add up to 16 ranges of IP addresses that the FortiGate DHCP server can assign to DHCP clients.
 
start-ip <address_ipv6>
The starting IP for the range of IP addresses that this DHCP server assigns to DHCP clients. The IP range is defined by the start-ip and the end-ip fields which should both be in the same subnet.
::
end-ip <end_ipv6>
The end IP address for the range of IP addresses that this DHCP server assigns to DHCP clients. The IP range is defined by the start-ip and the end-ip fields which should both be in the same subnet.
::