< Home

nd snooping static-prefix

Function

The nd snooping static-prefix command configures a static prefix management entry.

The undo nd snooping static-prefix command deletes a configured static prefix management entry.

By default, no static prefix management entry is configured on a device.

Format

nd snooping static-prefix ipv6-address/prefix-length [ vlan vlan-id [ ce-vlan ce-vlan-id ] ]

undo nd snooping static-prefix ipv6-address/prefix-length [ vlan vlan-id [ ce-vlan ce-vlan-id ] ]

Parameters

Parameter

Description

Value

ipv6-address/prefix-length

Specifies the IPv6 address prefix. Descriptions of each part in this parameter are as follows:
  • ipv6-address: Specifies an IPv6 address.
  • prefix-length: Specifies the IPv6 address prefix length.
  • ipv6-address: The total length of the value is 128 bits. The string is divided into eight groups, each of which consists of four hexadecimal digits. The address is in the X:X:X:X:X:X:X:X format.
  • prefix-length: The value is an integer that ranges from 1 to 128.

vlan vlan-id

Specifies the outer VLAN ID.

NOTE:
By default, the outer VLAN ID is 1 and no inner VLAN is configured.

The value is an integer that ranges from 1 to 4094.

ce-vlan ce-vlan-id

Specifies the inner VLAN ID.

The value is an integer that ranges from 1 to 4094.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

After receiving an NS packet from a user, a device can generate a dynamic ND snooping binding entry only after the value of the Target Address field in the packet matches the user's prefix management entry. The device obtains an RA packet received from an ND snooping trusted interface and automatically generates a prefix management entry based on the RA packet. However, if a gateway device does not send RA packets, the device cannot automatically generate a prefix management entry and then cannot establish a corresponding dynamic ND snooping binding entry, affecting services. In this case, you can run the nd snooping static-prefix ipv6-address/prefix-length [ vlan vlan-id [ ce-vlan ce-vlan-id ] ] command to manually configure a prefix management entry.

Prerequisites

ND snooping has been enabled using the nd snooping enable command in the system view.

Precautions

The total number of statically configured and dynamically generated prefix management entries cannot exceed the maximum number of entries allowed on a device. Otherwise, no prefix management entry can be further statically configured or dynamically generated.

Example

# Configure a static prefix management entry with the IPv6 address prefix FC00:1::/64.

<HUAWEI> system-view
[HUAWEI] nd snooping enable
[HUAWEI] nd snooping static-prefix fc00:1::/64
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >