346
available for allocation by the DHCP server.
Example:
The network administrator finds 10.1.128.160 that has a conflict record in the
log and is no longer used by anyone, so he deletes the record from the address conflict
log.
Switch#clear ip dhcp conflict 10.1.128.160
11.3.2.3 clear ip dhcp server statistics
Command: clear ip dhcp server statistics
Function:
Deletes the statistics for DHCP server, clears the DHCP server count.
Command mode:
Admin Mode
Usage Guide:
DHCP count statistics can be viewed with “
show ip dhcp server
statistics
” command, all information is accumulated. You can use the “
clear ip dhcp
server statistics
” command to clear the count for easier statistics checking.
Example:
clearing the count for DHCP server.
Switch#clear ip dhcp server statistics
11.3.2.4 debug ip dhcp server
Command:debug ip dhcp server { events|linkage|packets }
no debug ip dhcp server { events|linkage|packets }
Function:
Enables DHCP server debug information: the “
no debug ip dhcp server
{ events|linkage|packets }”
command disables the debug information for DHCP server
.
Default:
Debug information is disabled by default.
Command mode:
Admin Mode
11.3.2.5 ip forward-protocol udp
Command:ip forward-protocol udp <port>
no ip forward-protocol udp <port>
Function:
Sets DHCP relay to forward UPD broadcast packets on the port; the “
no ip
forward-protocol udp <port>
“ command cancels the service.
Default:
DHCP relay forwards DHCP broadcast packet to UDP port 67 by default.
Command mode:
Global Mode
Usage Guide:
The forwarding destination address is set in the “
ip helper-address
”
command and described later.
Example:
Setting TFTP packets to be forwarded to 192.168.1.5.
Switch(Config)#ip forward-protocol udp 69
Switch(Config)#interface vlan 1
Switch(Config-If-Vlan1)#ip helper-address 192.168.1.5