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.
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 ] ]
Parameter |
Description |
Value |
---|---|---|
ipv6-address/prefix-length |
Specifies the IPv6 address prefix. Descriptions
of each part in this parameter are as follows:
|
|
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. |
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.