241
The ND snooping table is created automatically by the ND snooping module. For more information, see
Layer 3—IP Services Configuration Guide
.
Configuring ND detection
ND detection performs source check by using the binding tables of IP source guard, DHCPv6 snooping,
and ND snooping. To prevent an ND-untrusted port from discarding legal ND packets in an ND
detection-enabled VLAN, make sure that at least one of these functions is available.
When you create an IPv6 static binding with IP source guard for ND detection in a VLAN, specify the
VLAN ID for the binding. Otherwise, no ND packets in the VLAN can match the binding.
The ND detection function does not check ND packets containing link local addresses.
To enable ND detection for a VLAN and specify a trusted port:
To do…
Use the command…
Remarks
1.
Enter system view.
system-view
––
2.
Enter VLAN view.
vlan
vlan-id
––
3.
Enable ND Detection.
ipv6 nd detection enable
Required.
Disabled by default.
4.
Quit system view.
quit
––
5.
Enter Layer 2 Ethernet interface
view or Layer 2 aggregate
interface view.
interface
interface-type interface-
number
––
6.
Configure the port as an ND-
trusted port.
ipv6 nd detection trust
Optional.
A port does not trust sources
of ND packets by default.
Displaying and maintaining ND detection
To do…
Use the command…
Remarks
Display the ND detection
configuration
display ipv6 nd detection
[
|
{
begin
|
exclude
|
include
}
regular-expression
]
Available in any view
Display the statistics of
discarded packets when the ND
detection checks the user
legality
display ipv6 nd detection statistics
[
interface
interface-type interface-number
] [
|
{
begin
|
exclude
|
include
}
regular-expression
]
Available in any view
Clear the statistics by ND
detection
reset ipv6 nd detection statistics
[
interface
interface-type interface-number
]
Available in user view
ND detection configuration example
Network requirements
As shown in
, Host A and Host B connect to Switch A, the gateway, through Switch B. Host A
has the IPv6 address 10::5 and MAC address 0001-0203-0405. Host B has the IPv6 address 10::6
and MAC address 0001-0203-0607.