11.07.2015 Views

Catalyst 3750-E and 3560-E Switch Cisco IOS ... - DNIP . NET

Catalyst 3750-E and 3560-E Switch Cisco IOS ... - DNIP . NET

Catalyst 3750-E and 3560-E Switch Cisco IOS ... - DNIP . NET

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Chapter 2<strong>Catalyst</strong> <strong>3750</strong>-E <strong>and</strong> <strong>3560</strong>-E <strong>Switch</strong> <strong>Cisco</strong> <strong>IOS</strong> Comm<strong>and</strong>sip dhcp snooping bindingip dhcp snooping bindingUse the ip dhcp snooping binding privileged EXEC comm<strong>and</strong> on the switch stack or on a st<strong>and</strong>aloneswitch to configure the DHCP snooping binding database <strong>and</strong> to add binding entries to the database. Usethe no form of this comm<strong>and</strong> to delete entries from the binding database.ip dhcp snooping binding mac-address vlan vlan-id ip-address interface interface-id expirysecondsno ip dhcp snooping binding mac-address vlan vlan-id ip-address interface interface-idThis comm<strong>and</strong> is available only if your switch is running the IP services feature set.Syntax Descriptionmac-addressSpecify a MAC address.vlan vlan-id Specify a VLAN number. The range is 1 to 4094.ip-addressSpecify an IP address.interface interface-id Specify an interface on which to add or delete a binding entry.expiry seconds Specify the interval (in seconds) after which the binding entry is no longervalid. The range is 1 to 4294967295.DefaultsNo default database is defined.Comm<strong>and</strong> ModesPrivileged EXECComm<strong>and</strong> HistoryRelease12.2(35)SE2ModificationThis comm<strong>and</strong> was introduced.Usage GuidelinesUse this comm<strong>and</strong> when you are testing or debugging the switch.In the DHCP snooping binding database, each database entry, also referred to a binding, has an IPaddress, an associated MAC address, the lease time (in hexadecimal format), the interface to which thebinding applies, <strong>and</strong> the VLAN to which the interface belongs. The database can have up to 8192bindings.Use the show ip dhcp snooping binding privileged EXEC comm<strong>and</strong> to display only the configuredbindings. Use the show ip source binding privileged EXEC comm<strong>and</strong> to display the dynamically <strong>and</strong>statically configured bindings.ExamplesThis example shows how to generate a DHCP binding configuration with an expiration time of1000 seconds on a port in VLAN 1:<strong>Switch</strong># ip dhcp snooping binding 0001.1234.1234 vlan 1 172.20.50.5 interfacegigabitethernet1/0/1 expiry 1000OL-9776-08<strong>Catalyst</strong> <strong>3750</strong>-E <strong>and</strong> <strong>3560</strong>-E <strong>Switch</strong> Comm<strong>and</strong> Reference2-233

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!