Descripción de la pregunta
How to view the mac address of the device itself through commands on the switch, and commands to query the mac address of the device through ip?
Solution: Command to view the mac address of the device itself
Commands to view the mac address of the device itself
For boxed devices, such as S2700/5700/S6700, you can view the mac address of the Layer 2 interface, which is the MAC of the device.
As follows, it is the mac address of the device: 1047-8031-bbd0
[S5700]display interface
Eth-Trunk0 current state : DOWN
Estado actual del protocolo de línea: DOWN
Description.
Switch Port, Link-type : dot1q-tunnel.
PVID : 10, Hash arithmetic : According to SA-XOR-DA,The Maximum Frame Length is 1600
IP Sending Frames' Format is PKTFMT_ETHNT_2, Hardware address is 1047-8031-bbd0
Current system time: 2015-02-11 14:30:57+08:00
Last 300 seconds input rate 0 bits/sec, 0 packets/sec
Last 300 seconds output rate 0 bits/sec, 0 packets/sec
Input: 0 packets, 0 bytes
Unicast: 0, Multicast: 0
Broadcast: 0, Jumbo: 0
Discard: 0, Pause: 0
Frames: 0
Total Error: 0
CRC: 0, Giants: 0
Jabbers: 0, Fragments: 0
Runts: 0, DropEvents: 0
Alignments: 0, Symbols: 0
Ignoreds: 0
Output: 0 packets, 0 bytes
Unicast: 0, Multicast: 0
Broadcast: 0, Jumbo: 0
Discard: 0, Pause: 0
Total Error: 0
Collisions: 0, ExcessiveCollisions: 0
Late Collisions: 0, Deferreds: 0
Buffers Purged: 0
Input bandwidth utilization : 0%
Output bandwidth utilization : 0%
If it is an S9300 device, you can view it with the command display system-mac
<S9303>display system-mac
MAC-num :1
Index MAC Addr
----------------------------
default 0025-9e03-1329
current d46a-b330-d341
If you need to view the mac address of the attached device through the ip address, add a parameter to the dis arp command to see all the ip and mac addresses under a certain interface, the command is as follows:
<S_Buick>sys
Enter system view, return user view with Ctrl+Z.
[S_Buick]dis arp interface ethernet 0/0/36
IP ADDRESS MAC ADDRESS EXPIRE(M) TYPE INTERFACE VPN-INSTANCE VLAN
------------------------------------------------------------------------------
192.168.3.38 900b-a60a-3b61 3 D-0 Eth0/0/36 3
192.168.3.39 4007-fc49-5c63 4 D-0 Eth0/0/36 3
192.168.3.42 4007-fc48-87cb 13 D-0 Eth0/0/36 3
192.168.3.37 4007-fc6b-3389 3 D-0 Eth0/0/36 3
192.168.3.41 4007-e68c-8bb5 1 D-0 Eth0/0/36 3
192.168.3.40 1009-05fb-3eec 7 D-0 Eth0/0/36 3
------------------------------------------------------------------------------
Total:6 Dynamic:6 Static:0 Interface:0
Regístrepor correo electrónico ahora para acciones semanales de promoción
100% free, Unsubscribe any time!Add 1: Room 605 6/F FA YUEN Commercial Building, 75-77 FA YUEN Street, Mongkok KL, HongKong Add 2: Room 405, Building E, MeiDu Building, Gong Shu District, Hangzhou City, Zhejiang Province, China
Whatsapp/Tel: +8618057156223 Tel: 0086 571 86729517 Tel en Hong Kong: 00852 66181601
Correo electrónico: [email protected]