AOS-CX Switch Simulator - Loop Protect Lab Guide
AOS-CX Switch Simulator - Loop Protect Lab Guide
Loop Protect
IMPORTANT! THIS GUIDE ASSUMES THAT THE AOS-CX OVA HAS BEEN INSTALLED AND WORKS IN GNS3 OR EVE-NG. PLEASE
REFER TO GNS3/EVE-NG INITIAL SETUP LABS IF REQUIRED.
https://www.eve-ng.net/index.php/documentation/howtos/howto-add-aruba-cx-switch/
TABLE OF CONTENTS
Lab Objective .............................................................................................................................................. 1
Lab Overview .............................................................................................................................................. 1
Lab Network Layout .................................................................................................................................... 2
Lab Tasks ................................................................................................................................................... 2
Task 1 – Lab setup ..................................................................................................................................... 2
Task 2 – Configure VLANs and Interfaces .................................................................................................. 3
Task 3 – Enable loop protect on Switch1 .................................................................................................... 3
Task 4 – Enable loop and verify loop is prevented on Switch1 .................................................................... 5
Appendix – Complete Configurations .......................................................................................................... 6
Lab Objective
This lab will provide hands on experience with the Loop Protect feature in AOS-CX.
Loop protect is helpful in environments where STP cannot be used to detect and prevent loops in an L2 network.
Lab Overview
This lab as shown in Figure 1 has 3 switches connected in a loop.
- Use packet capture to identify loop protect packets being sent out of a switch
- Ensure loop protect detects and prevents a loop by shutting down a port
1
Lab Guide
Loop Protect
Lab Tasks
Task 1 – Lab setup
For this lab refer to Figure 1 for topology and IP address details.
Switch1
Switch1(config)# sh lld nei
2
Lab Guide
Loop Protect
Switch2
Switch2(config)# vlan 10-11
Switch2(config-vlan-<10-11>)# int 1/1/1-1/1/2
Switch2(config-if-<1/1/1-1/1/2>)# no routing
Switch2(config-if-<1/1/1-1/1/2>)# vlan trunk allowed 10-11
Switch3
Switch3(config)# vlan 10-11
Switch3(config-vlan-<10-11>)# int 1/1/1-1/1/2
Switch3(config-if-<1/1/1-1/1/2>)# no routing
Switch3(config-if-<1/1/1-1/1/2>)# vlan trunk allowed 10-11
Interface 1/1/2
Loop-protect enabled : Yes
Loop-Protect enabled VLANs : 10
Action on loop detection : TX disable
Loop detected count : 0
Loop detected : No
Interface status : up
Interface 1/1/3
Loop-protect enabled : Yes
Loop-Protect enabled VLANs : 10
Action on loop detection : TX disable
Loop detected count : 0
Loop detected : No
Interface status : down
3
Lab Guide
Loop Protect
• You should see the protocol ID: 0x0003 packets being sent into the network that are used for loop protect detection with
source MAC info
4
Lab Guide
Loop Protect
If a loop protect packet is received by the same switch that sent it, it indicates a loop exists and one of the following actions is
taken:
- Discovery of the loop is logged but port states are not changed
- The sending port is disabled
- The sending and receiving ports are both disabled
• Verify loop is detected and prevented as 1 of the ports is disabled (default loop protect behaviour)
Switch1(config-if)# do sh loop-pro
Interface 1/1/2
Loop-protect enabled : Yes
Loop-Protect enabled VLANs : 10
Action on loop detection : TX disable
Loop detected count : 1
Loop detected : Yes
Detected on VLAN : 10
Detected at : 2021-06-09T22:57:12
Interface status : down
Interface 1/1/3
Loop-protect enabled : Yes
Loop-Protect enabled VLANs : 10
Action on loop detection : TX disable
Loop detected count : 0
Loop detected : No
Interface status : up
5
Lab Guide
Loop Protect
• If configs are the same, try powering off/powering on the switches to reboot them
Switch1
Switch1# sh run
Current configuration:
!
!Version ArubaOS-CX Virtual.10.07.0004
!export-password: default
hostname Switch1
user admin group administrators password ciphertext
AQBapfLDQUyYkc7G8jiiLYsVnVobj/u9GrYoWrQhC8Bh+ntZYgAAAKOg2fGgyuPFaVC3uFWTfi6WvU6/1BdR2bZw0wU/WN0
Cj7UO55iWY2vKztqXIDrAQdc8TAuZkFGwg0Jp3by5k2
uqtI6kkkQvRzTUxHB0orUPOke1I/qbUjfR3Mh+nJpQ9O23
led locator on
ntp server pool.ntp.org minpoll 4 maxpoll 4 iburst
ntp enable
!
!
!
!
!
!
ssh server vrf mgmt
vlan 1,10-11
interface mgmt
no shutdown
ip dhcp
interface 1/1/1
no shutdown
interface 1/1/2
no shutdown
no routing
vlan trunk native 1
vlan trunk allowed 10-11
loop-protect
loop-protect vlan 10
interface 1/1/3
no shutdown
no routing
vlan trunk native 1
vlan trunk allowed 10-11
loop-protect
loop-protect vlan 10
interface 1/1/4
no shutdown
interface 1/1/5
no shutdown
interface 1/1/6
no shutdown
!
!
!
!
!
https-server vrf mgmt
https-server vrf mgmt
6
Lab Guide
Loop Protect
Switch2
Switch2# sh run
Current configuration:
!
!Version ArubaOS-CX Virtual.10.07.0004
!export-password: default
hostname Switch2
user admin group administrators password ciphertext
AQBapThMptxqFInprZFYSpfPwBfxijWFnBfUzZe+BxJ5fLofYgAAACZtxwdeBkcZfgVmJccE1ku3trTvX1kGFIAiejEGkNK
Ok8biKq/n9Es5h1jhrzPDjYgz6caIUuPIoZDok8GL2u
3aegtAv9K3DtF2299xDkEhzwUJneH94hoWxsLEjKGU9fFa
led locator on
ntp server pool.ntp.org minpoll 4 maxpoll 4 iburst
ntp enable
!
!
!
!
!
!
ssh server vrf mgmt
vlan 1,10-11
interface mgmt
no shutdown
ip dhcp
interface 1/1/1
no shutdown
no routing
vlan trunk native 1
vlan trunk allowed 10-11
interface 1/1/2
no shutdown
no routing
vlan trunk native 1
vlan trunk allowed 10-11
interface 1/1/3
no shutdown
interface 1/1/4
no shutdown
interface 1/1/5
no shutdown
interface 1/1/6
no shutdown
!
!
!
!
!
https-server vrf mgmt
Switch3
Switch3# sh run
Current configuration:
!
!Version ArubaOS-CX Virtual.10.07.0004
!export-password: default
hostname Switch3
user admin group administrators password ciphertext
AQBapVspfXYst0T2YjNexlVhZr+WzEpljJGdqToDdWVsSNp7YgAAAE82gWYabqopE61bU2c/Z5C5cOJgoIqRc/LbA2S2gVu
7pulAJqtp7NOhYtmOdwKUXmv4ybkygabKIKEUs5IRDm
G/H1JnB2Poo44H+MI/m8J8dmI0Yn9xuDzyGu/TCozjgn+a
led locator on
7
Lab Guide
Loop Protect
8
www.arubanetworks.com
3333 Scott Blvd. Santa Clara, CA 95054
1.844.472.2782 | T: 1.408.227.4500 | FAX: 1.408.227.4550 | [email protected]
9