cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
519
Views
0
Helpful
1
Replies

Command to do loop test in Cisco ACI Leaf Switch

AshSe
VIP
VIP

I am looking for a command with the help of which we can do a loop test on ACI Leaf switch.

1 Reply 1

AshSe
VIP
VIP

Answering to self:

To perform a loopback test on a Cisco ACI leaf switch, we can use the ping command to test connectivity to various endpoints or interfaces. However, if looking for a more specific loopback test to verify the functionality of a particular interface or the switch itself, we can use the test commands available in the NX-OS mode of the ACI leaf switch.

 

Here’s how we can perform a basic loopback test using the ping command and a more specific interface test using the test commands:

 

Basic Loopback Test Using ping

 

1. Access the Leaf Switch:

 

    • Connect to the leaf switch via SSH.

 

2. Enter the NX-OS Mode:

 

    • If in the ACI mode, switch to the NX-OS mode by typing switchto nxos.

 

3. Ping the Loopback Interface:

    • Use the ping command to test the loopback interface. The loopback interface is typically 127.0.0.1

 

ping 127.0.0.1

 

    • This command will send ICMP echo requests to the loopback interface and verify if the switch can communicate with itself.

 

Specific Interface Test Using test Commands

 

1. Access the Leaf Switch:

      • Connect to the leaf switch via SSH.

 

2. Enter the NX-OS Mode:

      • If in the ACI mode, switch to the NX-OS mode by typing switchto nxos.

3. Test a Specific Interface:

 

      • Use the test interface command to perform a loopback test on a specific interface. Replace <interface> with the actual interface we want to test (e.g., eth1/1).

 

test interface <interface> loopback

 

      • For example, to test interface eth1/1, we would use:

 

test interface eth1/1 loopback

 

Example of a Loopback Test on Interface eth1/1

 

1. Access the Leaf Switch:

      • Connect to the leaf switch via SSH

 

2. Enter the NX-OS Mode:

      • If in the ACI mode, switch to the NX-OS mode by typing switchto nxos

 

3. Run the Loopback Test:

 

      • Use the test interface command to perform the loopback test

 

switch# test interface eth1/1 loopback

 

    • This command will initiate a loopback test on the specified interface and provide us with the results

 

Additional Diagnostic Commands

 

We can also use other diagnostic commands to verify the status and functionality of interfaces on the leaf switch:

 

  • Show Interface Status:

show interface status

 

  • Show Interface Counters:

show interface counters

 

  • Show Interface Detailed Information:

show interface <interface> detail

 

Review Cisco Networking for a $25 gift card

Save 25% on Day-2 Operations Add-On License