banner
Aki

Aki

太阳能维修,月亮可更换,星星不闪包退换。
twitter

Basic commands for a switch to determine the IP address of a device, using Ruijie as an example.

1. View the current configuration of the switch#

<Switch1>show run

The "dis cur" command is used to view the basic configuration currently running, which shows the division of ports corresponding to VLAN or links.

2. View the ARP table#

<Switch1>show arp

Viewing the ARP table can obtain the IP address information corresponding to the ports.
Note: The "show ip arp" command is equivalent to "show arp".
Extended command:

<Switch1>show arp | include xxx

"xxx" represents an IP range, which can be filled with a complete IP or an IP subnet. If there is too much configuration content, you can query the ARP table for specific content.

3. View MAC addresses#

<Switch1>show mac-address-table

The MAC address table can be used to view the corresponding subnet and MAC address of the port. By combining it with the ARP table, MAC addresses, VLAN domains, and IP addresses can be correlated.
Extended command:

<Switch1>show mac--address-table | include xxx

Similar to the ARP table, this command can also be matched using "include", which can be a VLAN domain or a MAC address, etc.

Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.