3 dhcp snooping binding – CANOGA PERKINS 9175 Command Reference User Manual

Page 629

Advertising
background image

36-2

DHCP snooping is disabled.


Command Mode

Global configuration


Usage

For any DHCP snooping configuration to take effect, you must globally enable DHCP snooping.

DHCP snooping is not active until you enable snooping on a VLAN by using the dhcp snooping vlan

vlan-id global configuration command.


Examples

This example shows how to enable DHCP snooping:

Switch(config)# dhcp snooping

You can verify your settings by entering the show dhcp snooping config privileged EXEC command.


Related Commands

dhcp snooping vlan

show dhcp snooping config

36.3 dhcp snooping binding

Use the dhcp snooping binding privileged EXEC command on the switch to configure the DHCP

snooping binding database and to add binding entries to the database.


Command Syntax

dhcp snooping binding mac mac-address vlan vlan-id ipv4 ip-address interface interface-id expiry

seconds

mac mac-address

Specify a MAC address.

vlan vlan-id

Specify a VLAN number. The range is 1 to 4094.

ipv4 ip-address

Specify 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

longer valid. The range is 0 to 86400.

Default

No default database is defined.


Command Mode

Global configuration


Usage

Use this command when you are testing or debugging the switch.

In the DHCP snooping binding database, each database entry, also referred to a binding, has an IP

address, an associated MAC address, the lease time, the interface to which the binding applies, and the

CanogaOS Command Reference

Advertising