dhcp snooping bind-table static (Bridge domain view)

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

Bridge domain view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
dhcp write

Usage Guidelines

Usage Scenario

To configure static binding entries, run the dhcp snooping bind-table static command. Dynamic binding entries can be generated after DHCP snooping is 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. During the configuration of a static entry, if the number of static entries on an interface reaches 4096, the configuration failure.

Example

# Configure the static binding between IP addresses and MAC addresses in BD 100.
<HUAWEI> system-view
[*HUAWEI] bridge-domain 100
[*HUAWEI-bd100] 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 >