Cisco WS-C3750-48PS-S Software Configuration Manual page 441

Network switch
Table of Contents

Advertisement

Chapter 21
Configuring DHCP Features and IP Source Guard
Command
Step 6
ip dhcp snooping binding mac-address
vlan vlan-id ip-address interface
interface-id expiry seconds
Step 7
show ip dhcp snooping database
[detail]
Step 8
copy running-config startup-config
To delete the database agent or binding file, use the no ip dhcp snooping database interface
configuration command. To reset the timeout or delay values, use the ip dhcp snooping database
timeout seconds or the ip dhcp snooping database write-delay seconds interface configuration
command.
To clear the statistics of the DHCP snooping binding database agent, use the clear ip dhcp snooping
database statistics privileged EXEC command. To renew the database, use the renew ip dhcp snooping
database privileged EXEC command.
To delete binding entries from the DHCP snooping binding database, use the no ip dhcp snooping
binding mac-address vlan vlan-id ip-address interface interface-id expiry seconds privileged EXEC
command. Enter this command for each entry that you delete.
This example shows how to enable the DHCP snooping binding database agent, configure the database
agent, and add binding entries to the binding database:
Switch(config)# ip dhcp snooping database flash:/database1
Switch(config)# ip dhcp snooping database timeout 30
Switch(config)# ip dhcp snooping database write-delay 30
Switch# ip dhcp snooping binding 0001.0200.0004 vlan 100 172.16.22.44 interface
gigabitethernet2/0/1 expiry 5000
Switch# ip dhcp snooping binding 0022.0300.0008 vlan 100 172.16.24.44 interface
gigabitethernet2/0/1 expiry 5000
Switch(config)# ip dhcp snooping binding 0004.0070.0012 vlan 100 172.16.26.44 interface
gigabitethernet2/0/1 expiry 5000
Switch(config)# show ip dhcp snooping database
Agent URL : flash:/database1
Write delay Timer : 30 seconds
Abort Timer : 30 seconds
Agent Running : No
Delay Timer Expiry : 19 (00:00:19)
Abort Timer Expiry : Not Running
Last Succeded Time : 17:06:10 pst Tue Mar 2 1993
Last Failed Time : None
Last Failed Reason : No failure recorded.
Total Attempts
Successful Transfers :
Successful Reads
Successful Writes
Media Failures
Switch(config)# copy running-config startup-config
78-16180-02
Purpose
(Optional) Add binding entries to the DHCP snooping binding database.
The vlan-id range is from 1 to 4904. The seconds range is from 1 to
4294967295.
Enter this command for each entry that you add.
Display the status and statistics of the DHCP snooping binding database
agent.
(Optional) Save your entries in the configuration file.
:
4
Startup Failures :
4
Failed Transfers :
:
0
Failed Reads
:
4
Failed Writes
:
0
Catalyst 3750 Switch Software Configuration Guide
Configuring DHCP Features
0
0
:
0
:
0
21-13

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Catalyst 3750

Table of Contents