Example for ND Snooping

Networking Requirements

Building the corresponding network according to the topology diagram, and do the basic network connectivity configuration, configure the ND snooping function on Switch A, and after the correct configuration is completed, check the effective ND snooping binding table on Switch A.

  • Router1 gets an IP address through SLAAC (Stateless Address Autoconfiguration).

  • Router2 gets an IP through DHCP (Dynamic Host Configuration Protocol).

Figure 1.   ND Snooping Configuration Example

image-20241010-064805.png

Procedure

Switch A

Step 1       Add VLANs members to trunk ports.

admin@SwitchA# set interface gigabit-ethernet ge-1/1/13 family ethernet-switching native-vlan-id 2 admin@SwitchA# set interface gigabit-ethernet ge-1/1/13 family ethernet-switching port-mode trunk admin@SwitchA# set interface gigabit-ethernet ge-1/1/13 family ethernet-switching vlan members 2 admin@SwitchA#set interface gigabit-ethernet ge-1/1/14 family ethernet-switching native-vlan-id 2 admin@SwitchA# set interface gigabit-ethernet ge-1/1/14 family ethernet-switching port-mode trunk admin@SwitchA# set interface gigabit-ethernet ge-1/1/14 family ethernet-switching vlan members 2 admin@SwitchA# set interface gigabit-ethernet ge-1/1/15 family ethernet-switching native-vlan-id 2 admin@SwitchA# set interface gigabit-ethernet ge-1/1/15 family ethernet-switching port-mode trunk admin@SwitchA# set interface gigabit-ethernet ge-1/1/15 family ethernet-switching vlan members 2 admin@SwitchA# set vlans vlan-id 2

Step 2       Configure ge-1/1/14 as trust port and enable ND snooping on VLAN 2.

admin@SwitchA# set protocols neighbour snooping vlan 2 enable true admin@SwitchA# set protocols neighbour snooping trust-port ge-1/1/14 admin@SwitchA# set protocols neighbour traceoptions disable false admin@SwitchA# set system log-level trace

Step 3       Commit the configurations.

admin@ SwitchA # commit

Verifying the Configuration

The run show neighbor snooping binding command is used to view ND snooping dynamic management table entries on Switch A.

The run show neighbor snooping prefix command is used to view ND snooping prefix management table entries on Switch A.

The run show neighbor snooping command is used to view ND snooping configuration on Switch A.

  • View ND snooping dynamic management table entries.

  • View ND snooping prefix management table entries.

  • View ND snooping configuration.

Copyright © 2024 Pica8 Inc. All Rights Reserved.