Cisco思科交换机show mac address-table命令使用详解

这篇具有很好参考价值的文章主要介绍了Cisco思科交换机show mac address-table命令使用详解。希望对大家有所帮助。如果存在错误或未考虑完全的地方,请大家不吝赐教,您也可以点击"举报违法"按钮提交疑问。

Cisco思科交换机show mac address-table命令使用详解

show mac address-table命令用于显示交换机的MAC地址表。
该表记录了每个接口和与之关联的MAC地址。

#show mac address-table ?    --当在默认情况下输入“?”,系统会自动识别为 help 命令。
  address       Address to lookup in the table               --要查找的MAC地址
  aging-time    MAC address table aging parameters  --MAC地址表老化参数
  count         Number of MAC addresses in the table  --MAC地址数
  dynamic       List dynamic MAC addresses               --列出动态MAC地址
  interface     List MAC adresses on a specific interface --列出特定接口上的MAC地址
  learning      Display learning on VLAN or interface   --在VLAN或接口上显示学习
  move          MAC Move information                          --MAC移动信息
  multicast     List multicast MAC addresses               --列出多播MAC地址
  notification  MAC notification parameters and history table  --MAC通知参数和历史表
  protocol      protocol keyword  
  secure        List secure MAC addresses                  --列出安全MAC地址
  static        List static MAC addresses                       --列出静态MAC地址
  vlan          List MAC addresses on a specific vlan   --列出特定vlan上的MAC地址
  |             Output modifiers                                        --输出修饰符
  <cr>

show mac address-table address <mac>  通过MAC地址追踪设备经过的端口

#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> 通过输入的关键词进行模糊查询

keyword 关键字可以是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 关键字也可以是端口号或端口号中的一部分

#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 显示所有动态的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 显示所有静态的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
……

以上就是针对常用的Cisco思科交换机show mac address-table命令使用详解,若您觉得文章对您有帮助,记得点赞收藏起来,说不定哪天就用上了。文章来源地址https://www.toymoban.com/news/detail-780491.html

到了这里,关于Cisco思科交换机show mac address-table命令使用详解的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处: 如若内容造成侵权/违法违规/事实不符,请点击违法举报进行投诉反馈,一经查实,立即删除!

领支付宝红包 赞助服务器费用

相关文章

  • 【Cisco Packet Tracer(思科)交换机和路由器配置实例】

    创建实验拓扑图 为各个主机命名、配置IP.  将各个主机按照不同部门划分    其余的五台主机按照上述方法分别接入vlan10,vlan20,vlan30. 使用show vlan 查看所有交换机的vlan表 ***************S1交换机vlan表 **********************S2交换机的vlan表 在三层交换机上创建vlan    将每台交换机上

    2024年02月07日
    浏览(32)
  • 思科(cisco)交换机设置远程登录服务以及通过console口登录实验

      这两个图本质上就是一个图,没什么区别  实验配置 一,我们都知道默认情况下交换机的所有端口都在vlan  1下面,接下来我们为交换机先配置vlan 1配置ip 二,给电脑pc端配置IP   三,交换机和pc都配置好了,接下来我们去验证远程配置配置结果 在pc1上面去验证实验结果  

    2024年02月06日
    浏览(34)
  • Cisco交换机之Catalyst 3750G交换机端口限速的实例

    在3750核心交换机的g1/0/41端口的入方向上,对进来的流量(从1.1.1.1到2.2.2.2的指定IP Conversation)实施20M带宽限制。 复制代码 代码如下: (config)#mls qos #全局启用qos (config)#access-list 104 permit ip host 1.1.1.1 host 2.2.2.2(config)#class-map c41 (config-cmap)#match access-group 104 (config)#policy-map p41 (config-pm

    2024年02月07日
    浏览(33)
  • Cisco交换机安全配置

    我们以下命令一般都要先进入Config模式 禁用未使用的端口 以关闭fa0/1到fa0/24的端口为例 缓解MAC地址表攻击 防止CAM表溢出的最简单有效的方法是启用端口安全,它限制了端口上所允许的有效MAC地址数量。 我们以fa0/1为例子 这里你可能会遇到报错,内容如下: 这是因为端口安

    2024年04月13日
    浏览(36)
  • 思科交换机命令大全

    思科交换机基本配置命令 使用telnet远程式管理 控制台口令 cisco发现协议(cdp) 思科交换机恢复出厂配置 配置接口标识(区分路由器的各个接口) vtp配置 vlan基本配置 vlan中添加删除端口 配置接口为动态协商模式 生成树stp 注:在配置上行速端口前要先将基于vlan上的网桥优先级

    2024年02月11日
    浏览(35)
  • 思科交换机DHCP配置

    思科交换机DHCP配置: 拓扑图 SW1 配置: Switchenable ----- 从用户模式进入特权模式 Switch#configure terminal-----从特权模式进入全局配置模式 Switch(config)#hostname sw1-----给交换机指定主机名为sw1 SW1(config)#vlan 10-----创建vlan 10 SW1(config)#vlan 20-----创建vlan 20 SW1(config)#interface fastEthernet 0/2----

    2024年02月08日
    浏览(30)
  • 思科交换机密码设置方法

    一.设置console密码 enable #configure trminal (confing)#line console 0←console口 ①(config-line)#password (cisco)←密码 (config-line)#login ← 一定不能少的. console密码设置完成 exit 二:设置全局密码 enadle #configure terminal ②(config)#enable secret (class)←密码 (config)#login 全局密码设置完成 exit 三.设置远程登

    2024年02月05日
    浏览(78)
  • 思科交换机开启RSTP

      使用PC0持续去ping PC2,在ping的同时断掉非阻塞链路(橙色代表阻塞),发现丢包5个后恢复正常。为减少丢包,下面将采用rstp技术进行优化   将实验拓扑图进行还原 配置好了后,发现阻塞端口(橙色)改变了位置,那是因为我们配置的时候switch0的优先级设置最高(0),

    2024年01月24日
    浏览(36)
  • Cisco Packet Tracer 三层交换机与两层交换机的配置

    使用两台双层交换机(2950)连接一台三层交换机(3560)并连接四台主机 1.拓扑网络如下: Pc0连接Sw0 fa0/1 Pc1连接Sw0 fa0/2 Pc2连接Sw1 fa0/1 Pc3连接Sw1 fa0/2 Sw0 fa0/24连接NSw fa0/1 Sw1 fa0/24连接NSw fa0/2 2.之后配置一下四台pc的ip地址以及掩码和网卡:            注意:ip地址尾号随意,但

    2023年04月09日
    浏览(29)
  • cisco交换机配置vlan方法

    Cisco IOS中有两种方式创建vlan,在全局模式下使用vlan vlanid命令,如switch(config)#vlan 10; 在vlan database 下创建vlan ,如 switch(vlan)#vlan 20; 交换机配置: 复制代码 代码如下: Switchenable Switch#configure terminal Enter configuration commands, one per line. End with CNTL/Z Switch(config)#vlan 10 Switch(config-vlan)#nam

    2024年02月06日
    浏览(32)

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

博客赞助

微信扫一扫打赏

请作者喝杯咖啡吧~博客赞助

支付宝扫一扫领取红包,优惠每天领

二维码1

领取红包

二维码2

领红包