dhcp snooping bind-table static

Function

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.

Format

dhcp snooping bind-table static ip-address ip-address [ mac-address mac-address ] [ vlan vlan-id [ ce-vlan ce-vlan-id ] ]

undo dhcp snooping bind-table static ip-address ip-address [ mac-address mac-address ] [ vlan vlan-id [ ce-vlan ce-vlan-id ] ]

Parameters

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.

Views

100GE interface view, 10GE interface view, 40GE interface view, Eth-Trunk interface view, FlexE sub-interface view, GE optical interface view, GE electrical interface view, Sub-interface view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
dhcp write

Usage Guidelines

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.

Example

# Configure the static binding between IP addresses and MAC addresses on GE 0/1/6.
<HUAWEI> system-view
[~HUAWEI] dhcp enable
[*HUAWEI] interface GigabitEthernet 0/1/6
[*HUAWEI-GigabitEthernet0/1/6] dhcp snooping bind-table static ip-address 10.10.10.2 mac-address 00e0-fc20-0327
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >