ip dhcp
Switch to DHCP configuration mode.
Syntax
ip dhcp
Parameters
The command does not contain any parameters.
Privilege group
config-dhcp
Command mode
CONFIG
Example
LTP-16N(configure)# ip dhcp
opt82 profile 〈PROFILE〉
Setting the configuration profile assigned to all VLANs. The profile configuration is described in section dhcp-opt82 profile configuration.
Syntax
opt82 profile <PROFILE>
no opt82 profile
Parameters
<PROFILE> — name of the set profile. String from 1 to 15 characters long.
Privilege group
config-dhcp
Command mode
CONFIG-DHCP
Example
LTP-16N(config)(dhcp)# opt82 profile DHCP
opt82 profile 〈PROFILE〉 vid 〈VID〉
Sets the configuration profile for the specified vlan. The profile configuration is described in section dhcp-opt82 profile configuration.
Syntax
opt82 profile <PROFILE> vid <VID>
no opt82 profile vid <VID>
Parameters
<PROFILE> — name of the set profile. String from 1 to 15 characters long;
<VID> — VLAN ID of the set profile.
Privilege group
config-dhcp
Command mode
CONFIG-DHCP
Example
LTP-16N(config)(dhcp)# opt82 profile DHCP vid 10
snooping enable
Enables DHCP snooping mode.
Syntax
[no] snooping enable
Parameters
The command does not contain any parameters.
Default value
Disabled
Privilege group
config-dhcp
Command mode
CONFIG-DHCP
Example
LTP-16N(config)(dhcp)# snooping enable
relay enable
Enables DHCP relay mode.
Syntax
[no] relay enable
Parameters
The command does not contain any parameters.
Default value
Disabled
Privilege group
config-dhcp
Command mode
CONFIG-DHCP
Example
LTP-16N(config)(dhcp)# relay enable
relay server-ip
Configuring the server address and VLAN ID to which DHCP packets will be relayed.
Syntax
[no] relay server-ip <IP> vid <VID>
Parameters
<IP> — IP address. Specified in AAA.BBB.CCC.DDD format, where each part takes value [0..255];
<VID> — VLAN ID in the range [1-4094].
Privilege group
config-dhcp
Command mode
CONFIG-DHCP
Example
LTP-16N(config)(dhcp)# relay server-ip 10.101.11.1 vid 330