User Manual

Table Of Contents
[Input mode]
interface mode
[Description]
Configures the operations for the DHCP server of the applicable interface.
This can only be set for VLAN interface.
If this command is executed with the "no" syntax, the setting returns to the default.
[Note]
To enable the DHCP server function, you must enable the DHCP server function for the entire system in addition to using this
command.
Information distributed by the DHCP server function such as IP addresses is set in the DHCP pool.
The DHCP pool is configured using the dhcp pool command. For VLAN interface, the IPv4 address must be specified.
For this command, up to 32 for VLAN interface can be set.
[Example]
Enable the DHCP server function on VLAN #1.
SWX3220(config)#interface vlan1
SWX3220(config-if)#dhcp-server enable
Disable the DHCP server function on VLAN #1.
SWX3220(config)#interface vlan1
SWX3220(config-if)#dhcp-server disable
10.1.3 DHCP server operation type settings
[Syntax]
server-type type
no server-type
[Parameter]
type : DHCP server operation type
Operation mode Explanation
normal Ordinary DHCP server
auth-web DHCP server for Web authentication
[Initial value]
server-type normal
[Input mode]
DHCP mode
[Description]
This sets the operation mode for the applicable DHCP pool.
When “auth-web” is specified for TYPE, DHCPNAK is sent to clients that send DHCP requests in which the IP address and
VLAN do not match.
If this command is executed with the "no" syntax, the setting returns to the default.
[Example]
This sets the operation type of the DHCP pool “pool_auth” to the DHCP server for Web authentication.
SWX3220(config)#dhcp pool pool_auth
SWX3220(config-dhcp)#server-type auth-web
10.1.4 Set DHCP pool
[Syntax]
dhcp pool pool_name
Command Reference | Application | 445