User's Manual

Table Of Contents
309
Users Manual of CS-6306R
corresponding binding list.
Note that the manually-configured binding items have higher priority than the dynamically-configured binding
items. If the manually-configured binding item and the dynamically-configured binding item have the same
MAC address, the manually-configured one updates the dynamically-configured one. The interface binding
item takes the MAC address as the unique index.
Run the following commands in global configuration mode.
Command Purpose
ip source binding MAC IP interface name
Configures interface binding manually.
no ip source binding MAC IP
Cancels an interface binding item.
L2 Switch Forwarding DHCP Packets
The following command can be used to forward the DHCP packets to the designated DHCP server to realize
DHCP relay. The negative form of this command can be used to shut down DHCP relay.
This command can only be used to enable DHCP relay on L2 switches, while on L3
switches, DHCP relay is realized by the DHCP server.
Run the following commands in global configuration mode.
Command Purpose
ip dhcp-relay agent
Enables DHCP relay.
ip dhcp-relay
helper-addressaddressvlanvlan-id
Configures the destination address and VLAN of the relay.
Monitoring and Maintaining DHCP-Snooping
Run the following commands in EXEC mode:
Command Purpose
show ip dhcp-relay snooping
Displays the information about DHCP-snooping
configuration.
show ip dhcp-relay snooping binding
Displays the effective address binding items on an
interface.
show ip dhcp-relay snooping binding all
Displays all binding items which are generated by DHCP
snooping.
[ no ] debug ip dhcp-relay [ snooping | binding | event ]
Enables or disables the switch of DHCP relay snooping.
The following shows the information about the DHCP snooping configuration:
switch#show ip dhcp-relay snooping
ip dhcp-relay snooping vlan 3