33-12
Catalyst 6500 Series Switch Software Configuration Guide—Release 8.7
OL-8978-04
Chapter 33 Configuring DHCP Snooping and IP Source Guard
Specifying the DHCP-Snooping IP Address-to-MAC Address Binding on a Per-Port Basis
Specifying the DHCP-Snooping IP Address-to-MAC Address
Binding on a Per-Port Basis
To specify the IP address-to-MAC address binding for the specified port, perform this task in privileged
mode:
This example shows how to specify the IP address-to-MAC address binding for the specified port:
Console> (enable)
set port dhcp-snooping 5/29 add-binding 172.20.52.67 00-01-7b-9b-05-3f 1
DHCP Snooping Binding addition successful for Port 5/29, Vlan 1
IP addr 172.20.52.67, Mac Addr 00-01-7b-9b-05-3f.
Console> (enable)
Displaying DHCP-Snooping Information
You can display the DHCP-snooping binding table and configuration information using the commands
in this section.
Displaying the Binding Table
The DHCP-snooping binding table for each switch contains the binding entries that correspond to the
untrusted ports. The table does not contain information about the hosts that are interconnected with a
trusted port, because each interconnected switch has its own binding table.
To display DHCP-snooping binding table information, perform this task in privileged mode:
This example shows how to display the DHCP-snooping binding information for a switch:
Console#
show dhcp-snooping bindings
MacAddress IpAddress Lease(sec) VLAN Port
------------------ --------------- ---------- ---- -----
00-01-7b-9b-05-3f 192.168.80.221 86377
810 1/8
Table 33-2
describes the fields in the
show dhcp-snooping binding
command output.
Task
Command
Step 1
Specify the IP address-to-MAC address
binding for the specified port.
set port dhcp-snooping
mod/port
add-binding
ip-addr
mac-addr
[
vlan
]
Step 2
Display the DHCP-snooping configuration.
show port dhcp-snooping
[
mod
[/
ports
]]
Task
Command
Display the DHCP-snooping binding table information.
show dhcp-snooping bindings