set

system interface mode dhcp

system interface mode dhcp

Use this command to enable or configure DHCP for this interface.

If only the dhcp keyword is used, both connection and default gateway are enabled by default.

Syntax

To enable DHCP on this interface:

set system interface <intf_str> mode dhcp

To enable and/or configure DHCP on the interface:

set system interface <intf_str> mode dhcp connection {enable disable} defaultgw {enable disable}

Keywords and Variables

Description

 

 

 

interface

<intf_str>

Enter the name of the interface, port1, for example.

connection

disable}

Enables or disables connecting to a DHCP server to configure the external

{enable

interface.

defaultgw

disable}

Enables or disables the specified interface to be the default gateway interface.

{enable

 

History

FortiMail v3.0

New.

Related topics

set system interface config

set system interface mode static

FortiMail™ Secure Messaging Platform Version 3.0 MR4 CLI Reference

 

06-30004-0420-20080814

335

Page 335
Image 335
Fortinet 3.0 MR4 System interface mode dhcp, Set system interface intfstr mode dhcp, Connection Disable, Defaultgw Disable