dhcpv6 snooping bind-table static

Function

The dhcpv6 snooping bind-table static command binds the IPv6 address, MAC address, VLAN, and interface to DHCPv6 snooping.

The undo dhcpv6 snooping bind-table static command deletes the static binding between the IPv6 address, MAC address, VLAN, and interface in DHCPv6 snooping.

By default, the static binding relationship of VLAN, IPv6 address and MAC address is not configured.

Format

dhcpv6 snooping bind-table static { ipv6-address ipv6Addr [ mac-address macAddr ] | ipv6-prefix ipv6-prefix-mask } [ vlan vlanId [ ce-vlan ceVlanId ] ]

undo dhcpv6 snooping bind-table static { ipv6-address ipv6Addr [ mac-address macAddr ] | ipv6-prefix ipv6-prefix-mask } [ vlan vlanId [ ce-vlan ceVlanId ] ]

Parameters

Parameter Description Value
ipv6-address ipv6Addr

Specifies the IPv6 address of a user.

The value is a 32-digit hexadecimal number in the format of X:X:X:X:X:X:X:X.

mac-address macAddr

Specifies the MAC address of a user.

The value is a 12-digit hexadecimal number, in the format of H-H-H. Each H is 4 digits.

ipv6-prefix ipv6-prefix-mask

Specifies the IPv6 prefix address and IPv6 prefix length.

IPv6 prefix address: a 32-bit hexadecimal number in X:X:X:X:X:X:X:X format.

IPv6 prefix length: The value is an integer ranging from 16 to 128.

vlan vlanId

Specifies a VLAN ID.

The value is an integer ranging from 1 to 4094.

ce-vlan ceVlanId

Specifies a user-side VLAN ID.

The value is an integer ranging from 1 to 4094.

Views

100GE interface view, 10GE interface view, 25GE interface view, 400GE interface view, 40GE interface view, 50GE interface view, Eth-Trunk interface view, FlexE sub-interface view, FlexE interface view, GE optical interface view, GE interface view, GE electrical interface view, Global VE sub-interface view, VE sub-interface view, Sub-interface view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
dhcp write

Usage Guidelines

Usage Scenario

After the dhcpv6 snooping bind-table static command is run, the static bindings between IPv6 addresses, MAC addresses, VLANs, and interfaces in DHCPv6 snooping are generated. Dynamic entries in the DHCPv6 snooping binding table do not need to be configured. After DHCPv6 snooping is enabled, dynamic entries in the DHCPv6 snooping binding table are automatically generated. Static entries, however, need to be configured. A maximum of 4096 static DHCPv6 snooping binding entries can be configured on each interface.

Example

# Bind the IPv6 address to the MAC address statically on GE0/1/0.
<HUAWEI> system-view
[~HUAWEI] interface GigabitEthernet 0/1/0
[*HUAWEI-GigabitEthernet0/1/0] dhcpv6 snooping bind-table static ipv6-address 2001:db8:1::1 mac-address 00e0-fc12-3456
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >