
34
CLI
dhcp-server vlan entry
<1-8> vlan <1-4094>
low-ip-address A.B.C.D
high-ip-address A.B.C.D
subnet-mask A.B.C.D
gateway A.B.C.D dns
A.B.C.D
Admin EXEC
Set allocate IP range, sub-
net mask, gateway, DNS in
specified VLAN settings of
DHCP server.
switch(config)# dhcp-server
vlan entry 2 vlan 12 low-ip-
address 12.1.1.1 high-ip-
address 12.1.2.1 subnet-mask
255.255.0.0 gateway
12.1.1.254 dns 12.1.1.100
no dhcp-server vlan
entry <1-8>
Admin EXEC
Remove specific VLAN set-
tings of DHCP server.
switch(config)# no dhcp-server
vlan entry 2
dhcp-server option82
entry <1-2> low-ip-
address A.B.C.D high-
ip-address A.B.C.D sub-
net-mask A.B.C.D gate-
way A.B.C.D dns
A.B.C.D
Admin EXEC
Set allocate IP range, sub-
net mask, gateway, DNS in
specified option 82 settings
of DHCP server.
switch(config)# dhcp-server
option82 entry 1 low-ip-
address 13.1.1.1 high-ip-
address 13.1.2.1 subnet-mask
255.255.0.0 gateway
13.1.1.254 dns 13.1.1.100
dhcp-server option82
entry <1-2> circuit-id for-
mat ( string | hex ) con-
tent WORD<0-120>
Admin EXEC
Set circuit ID in specified
option 82 settings of DHCP
server.
switch(config)# dhcp-server
option82 entry 1 circuit-id for-
mat string content Hello
dhcp-server option82
entry <1-2> remote-id
format ( string | hex )
content WORD<0-120>
Admin EXEC
Set remote ID in specified
option 82 settings of DHCP
server.
switch(config)# dhcp-server
option82 entry 1 remote-id for-
mat string content World
no dhcp-server option82
entry <1-2>
Admin EXEC
Remove specific option 82
settings of DHCP server.
switch(config)# no dhcp-server
option82 entry 1
DHCP Client
Table 35: DHCP Client
Function
Privilege
Description
Example
show dhcp-auto-provi-
sion
User EXEC
View DHCP-auto-provision
status.
switch# show dhcp-auto-provi-
sion
[no] dhcp-auto-provision Admin EXEC
Enable of disable DHCP-
auto-provision.
switch(config)# dhcp-auto-pro-
vision
[no] ip dhcp option82
Admin EXEC
Enable or disable DHCP
option 82 for DHCP client.
switch(config)# ip dhcp
option82
ip dhcp option82 circuit-
id format ( string | hex |
user-define ) [content
WORD<0-120>]
Admin EXEC
Set circuid-id in DHCP
option 82 for DHCP client.
switch(config)# ip dhcp
option82 circuit-id format string
Hello
ip dhcp option82
remote-id format ( string
| hex | user-define ) [con-
tent WORD<0-120>]
Admin EXEC
Set remote-id in DHCP
option 82 for DHCP client.
switch(config)# ip dhcp
option82 remote-id format
string World
Table 34: DHCP Server (Continued)
Function
Privilege
Description
Example