Fortinet white logo
Fortinet white logo

CLI Reference

config dhcprelay

config dhcprelay

Description: Configure DHCP relay.

config dhcprelay

edit <name>

set status [enable | disable]

set *client-interfaces <name1>, <name2>, …

set *server-interface <name1>

set *server-ip {ipv4-address}

unset

next

show

abort

end

delete <name>

purge

show

end

Sample command:

FX201E5919000057 (dhcprelay) # show
config system dhcprelay
    edit 1
        set status enable
        set client-interfaces lan
        set server-interface port4
        set server-ip 192.168.200.124
    next
end
Parameter Description Type Size Default
status Status of the DHCP relay configuration. option - enable
Option Description
enable Enable DHCP relay.
disable Disable DHCP relay
client-interfaces The interfaces connected to DHCP clients. option - none
Option Description
lan LAN as client interfaces.
lo Loopback as client interfaces.
wan WAN as client interfaces.
port4 Port 4 as client interfaces.

lte

LTE as client interfaces.

server-interface The interface used to reach out to the DHCP server. option - none
Option Description
lan LAN as client interfaces.
lo Loopback as client interfaces.
wan WAN as client interfaces.
port4 Port 4 as client interfaces.

lte

LTE as client interfaces.

server-ip IP address of the DHCP server. IPv4 address - none

config dhcprelay

config dhcprelay

Description: Configure DHCP relay.

config dhcprelay

edit <name>

set status [enable | disable]

set *client-interfaces <name1>, <name2>, …

set *server-interface <name1>

set *server-ip {ipv4-address}

unset

next

show

abort

end

delete <name>

purge

show

end

Sample command:

FX201E5919000057 (dhcprelay) # show
config system dhcprelay
    edit 1
        set status enable
        set client-interfaces lan
        set server-interface port4
        set server-ip 192.168.200.124
    next
end
Parameter Description Type Size Default
status Status of the DHCP relay configuration. option - enable
Option Description
enable Enable DHCP relay.
disable Disable DHCP relay
client-interfaces The interfaces connected to DHCP clients. option - none
Option Description
lan LAN as client interfaces.
lo Loopback as client interfaces.
wan WAN as client interfaces.
port4 Port 4 as client interfaces.

lte

LTE as client interfaces.

server-interface The interface used to reach out to the DHCP server. option - none
Option Description
lan LAN as client interfaces.
lo Loopback as client interfaces.
wan WAN as client interfaces.
port4 Port 4 as client interfaces.

lte

LTE as client interfaces.

server-ip IP address of the DHCP server. IPv4 address - none