1. View the current configuration running on the switch#
<Swich1>show run
The dis cur
command is used to view the basic configuration currently running, which shows the division of ports corresponding to VLANs or links.
2. View the ARP table#
<Swich1>show arp
Viewing the ARP table can obtain IP address information corresponding to ports.
Note: The show ip arp
command is equivalent to show arp
.
Extended command:
<Swich1>show arp | include xxx
Where xxx
represents an IP segment, you can enter a complete IP or an IP range. If there is too much configuration content, you can query the ARP table for specific content.
3. View MAC addresses#
<Swich1>show mac-address-table
In the MAC address table, you can see the corresponding network segment and MAC address of the port. By combining it with the ARP table, you can correlate MAC addresses, VLAN domains, and IP addresses.
Extended command:
<Swich1>show mac--address-table | include xxx
Similar to the ARP table, this command can also be matched using include
, which can be VLAN domains or MAC addresses, etc.