HPE7-A08 practice question 33 of 35

Which CLI command checks if a switch interface has learned any MAC addresses?

Full set: 342 questions
Answer options
A: show mac-address-table interface Correct answer
B: show mac state
C: display interface mac
D: show arp table
Correct Answer:
A. show mac-address-table interface
Explanation

The show mac-address-table interface command is used in ArubaOS-CX to display the Layer 2 forwarding database, commonly known as the MAC address table. By specifying an interface, the output is filtered to show only the MAC addresses that the switch has learned through that particular port. This directly answers the question of how to check if a specific interface has learned any MAC addresses. The table lists the MAC address, the VLAN it belongs to, the port it was learned on, and the type of entry (e.g., dynamic, static).

Why Incorrect

show mac state: This is not a valid command in the ArubaOS-CX command-line interface for displaying the MAC address table. display interface mac: The display command is characteristic of other network operating systems (like HPE Comware), not ArubaOS-CX, which uses the show command for viewing information. show arp table: This command displays the Address Resolution Protocol (ARP) table, which maps Layer 3 IP addresses to Layer 2 MAC addresses. It does not show the switch's L2 forwarding table. ---

References

1. ArubaOS-CX 10.12 CLI Reference Guide, Page 2611, "show mac-address-table". The documentation provides the full syntax: show mac-address-table [vlan ] [interface ] .... The description confirms this command "Shows MAC address table information," and the interface parameter allows for filtering by a specific port.

2. ArubaOS-CX 10.12 CLI Reference Guide, Page 201, "show arp". This section describes the show arp command, stating it "Shows Address Resolution Protocol (ARP) information," confirming it is used for L3-to-L2 mapping, which is distinct from the L2 MAC forwarding table.

Scroll to Top