Cisco思科交換機show mac address-table命令使用詳解
show mac address-table命令用于顯示交換機的MAC地址表。
該表記錄了每個接口和與之關(guān)聯(lián)的MAC地址。
#show mac address-table ?? ? --當(dāng)在默認情況下輸入“?”,系統(tǒng)會自動識別為 help 命令。
? address ? ? ? Address to lookup in the table? ? ? ? ? ? ? ?--要查找的MAC地址
? aging-time ? ?MAC address table aging parameters??--MAC地址表老化參數(shù)
? count ? ? ? ? Number of MAC addresses in the table? --MAC地址數(shù)
? dynamic ? ? ? List dynamic MAC addresses? ? ? ? ? ? ? ?--列出動態(tài)MAC地址
? interface ? ? List MAC adresses on a specific interface --列出特定接口上的MAC地址
? learning ? ? ?Display learning on VLAN or interface? ?--在VLAN或接口上顯示學(xué)習(xí)
? move ? ? ? ? ?MAC Move information? ? ? ? ? ? ? ? ? ? ? ? ? --MAC移動信息
? multicast ? ? List multicast MAC addresses? ? ? ? ? ? ? ?--列出多播MAC地址
? notification ?MAC notification parameters and history table? --MAC通知參數(shù)和歷史表
? protocol ? ? ?protocol keyword??
? secure ? ? ? ?List secure MAC addresses? ? ? ? ? ? ? ? ? --列出安全MAC地址
? static ? ? ? ?List static MAC addresses? ? ? ? ? ? ? ? ? ? ? ?--列出靜態(tài)MAC地址
? vlan ? ? ? ? ?List MAC addresses on a specific vlan? ?--列出特定vlan上的MAC地址
? | ? ? ? ? ? ? Output modifiers? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? --輸出修飾符
? <cr>
show mac address-table address <mac>??通過MAC地址追蹤設(shè)備經(jīng)過的端口
#show mac address-table address 0040.544d.873d
Unicast Entries
?vlan ? mac address ? ? type ? ? ? ?protocols ? ? ? ? ? ? ? port
-------+---------------+--------+---------------------+--------------------
?732 ? ?0040.544d.873d ? dynamic ip,ipx,assigned,other GigabitEthernet6/48
show mac address-table | include <keyword> 通過輸入的關(guān)鍵詞進行模糊查詢
keyword 關(guān)鍵字可以是MAC地址、MAC地址中的一部分,一般建議搜索末尾后四位,基本上是唯一的。
#show mac address-table | include 0040.544d.873d
?7? ? 0040.544d.873d ? dynamic ip,ipx,assigned,other GigabitEthernet6/48
#show mac address-table | include 873d
?7? ? 0040.544d.873d ? dynamic ip,ipx,assigned,other GigabitEthernet6/48
keyword 關(guān)鍵字也可以是端口號或端口號中的一部分
#show mac address-table | include GigabitEthernet6/48
?7? ? 0040.544d.873d ? dynamic ip,ipx,assigned,other GigabitEthernet6/48
#show mac address-table | include 6/48
?7 ? ?0040.544d.873d ? dynamic ip,ipx,assigned,other GigabitEthernet6/48
show interfaces G6/48?顯示交換機端口G6/48的端口配置信息
#show interfaces G6/48
GigabitEthernet6/48 is up, line protocol is up (connected)
? Hardware is Gigabit Ethernet Port, address is e05f.b90e.330d (bia e05f.b90e.330d)
? Description: "connect to vmswitch2950-SW"
? MTU 1500 bytes, BW 1000000 Kbit, DLY 10 usec,
? ? ?reliability 255/255, txload 1/255, rxload 1/255
? Encapsulation ARPA, loopback not set
? Keepalive set (10 sec)
? Full-duplex, 1000Mb/s, link type is auto, media type is 10/100/1000-TX
? input flow-control is off, output flow-control is off
? Auto-MDIX on (operational: on)
? ARP type: ARPA, ARP Timeout 04:00:00
? Last input 00:00:56, output never, output hang never
? Last clearing of "show interface" counters never
? Input queue: 0/2000/0/0 (size/max/drops/flushes); Total output drops: 0
? Queueing strategy: fifo
show mac address-table interface G6/48 顯示交換機端口G6/48的MAC信息
#show mac address-table dynamic address 0040.544d.873d
Unicast Entries
?vlan ? mac address ? ? type ? ? ? ?protocols ? ? ? ? ? ? ? port
-------+---------------+--------+---------------------+--------------------
?7 ? ?0040.544d.873d ? dynamic ip,ipx,assigned,other GigabitEthernet6/48
show mac address-table 顯示所有類型的MAC地址
#show mac address-table
Unicast Entries
?vlan ? mac address ? ? type ? ? ? ?protocols ? ? ? ? ? ? ? port
-------+---------------+--------+---------------------+--------------------
? ?7 ? ?0040.544d.873d ? dynamic ip,ipx,assigned,other GigabitEthernet6/48
……
show mac address-table dynamic 顯示所有動態(tài)的MAC地址信息
#show mac address-table dynamic
Unicast Entries
?vlan ? mac address ? ? type ? ? ? ?protocols ? ? ? ? ? ? ? port
-------+---------------+--------+---------------------+--------------------
? ?7 ? ?0040.544d.873d ? dynamic ip,ipx,assigned,other GigabitEthernet6/48
……
show mac address-table static 顯示所有靜態(tài)的MAC地址信息
#show mac address-table static??
Unicast Entries
?vlan ? mac address ? ? type ? ? ? ?protocols ? ? ? ? ? ? ? port
-------+---------------+--------+---------------------+--------------------
? ?7 ? ?0040.544d.873d ? ?static ip,ipx,assigned,other GigabitEthernet6/48
……文章來源:http://www.zghlxwxcb.cn/news/detail-780491.html
以上就是針對常用的Cisco思科交換機show mac address-table命令使用詳解,若您覺得文章對您有幫助,記得點贊收藏起來,說不定哪天就用上了。文章來源地址http://www.zghlxwxcb.cn/news/detail-780491.html
到了這里,關(guān)于Cisco思科交換機show mac address-table命令使用詳解的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!