< Home

dhcp snooping bind-table static (interface view)

Function

The dhcp snooping bind-table static command configures the static binding entries between IP addresses and MAC addresses.

The undo dhcp snooping bind-table command deletes the entries in the binding table, including the dynamic entries and the static entries.

Format

dhcp snooping bind-table static ip-address ip-address mac-address mac-address

undo dhcp snooping bind-table ip-address ip-address

Parameters

Parameter Description Value
ip-address ip-address Specifies the user IP address. The value is in dotted decimal notation.
mac-address mac-address Specifies the user MAC address. The value is in form of H-H-H.

Views

Interface view

Default Level

2: Configuration level

Usage Guidelines

The dynamic entries can be generated automatically in the DHCP snooping binding table after you enable DHCP snooping. Otherwise, the static entries can be configured through the dhcp snooping bind-table static command.

To delete a static entry, ensure that the static entry must exist in the DHCP snooping binding table. Otherwise, an error occurs in the system.

Example

# Configure the static binding entry between the IP and MAC addresses on Vlanif 1.

<sysname> system-view
[sysname] interface Vlanif 1
[sysname-Vlanif1] dhcp snooping bind-table static ip-address 10.1.1.2 mac-address 002A-01B0-0327
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >