The dhcp snooping bind-table static command configures the static binding between IP addresses and MAC addresses in the DHCP snooping binding table.
The undo dhcp snooping bind-table command cancels the static binding between IP addresses and MAC addresses in the DHCP snooping binding table.
By default, the static binding between IP addresses and MAC addresses in the DHCP snooping binding table is not configured.
Parameter | Description | Value |
---|---|---|
ip-address ip-address |
Specifies the IP address in dotted decimal notation. |
The value is in dotted decimal notation. |
mac-address mac-address |
Specifies the MAC address in the format of H-H-H. |
The value is in the format of H-H-H. Each H contains one to four hexadecimal numbers, such as 00e0 and fc01. If an H contains less than four bits, 0s are padded ahead. For example, an H is e0. It is displayed as 00e0 in the MAC address. |
vlan vlan-id |
Specifies the VLAN ID. |
The value ranges from 1 to 4094. |
ce-vlan ce-vlan-id |
Specifies the CE VLAN ID. |
The value ranges from 1 to 4094. |
Usage Scenario
To configure static entries in the DHCP snooping binding table after enabling DHCP snooping, run the dhcp snooping bind-table static command. In this case, dynamic entries in the table do not need to be configured.
The static entry to be deleted must exist in the DHCP snooping binding table. The DHCP snooping binding table on each interface can be configured with a maximum of 4096 static entries. If the number of existing static entries on an interface has reached 4096, configuring a new static entry fails.