首页 > 其他分享 >案例8 交换机的MAC地址表

案例8 交换机的MAC地址表

时间:2023-10-21 10:22:06浏览次数:43  
标签:10.1 56 bytes 案例 MAC 交换机 ms time SW1

1.在华三交换机上查看MAC地址表

image

[SW1]display mac-address
MAC Address      VLAN ID    State            Port/Nickname            Aging
[SW1]interface Vlan-interface 1
[SW1-Vlan-interface1]ip address 10.1.10.14 28
[SW1-Vlan-interface1]ping 10.1.10.1
Ping 10.1.10.1 (10.1.10.1): 56 data bytes, press CTRL+C to break
56 bytes from 10.1.10.1: icmp_seq=0 ttl=255 time=2.000 ms
56 bytes from 10.1.10.1: icmp_seq=1 ttl=255 time=1.000 ms
56 bytes from 10.1.10.1: icmp_seq=2 ttl=255 time=1.000 ms
56 bytes from 10.1.10.1: icmp_seq=3 ttl=255 time=2.000 ms
56 bytes from 10.1.10.1: icmp_seq=4 ttl=255 time=1.000 ms

--- Ping statistics for 10.1.10.1 ---
5 packet(s) transmitted, 5 packet(s) received, 0.0% packet loss
round-trip min/avg/max/std-dev = 1.000/1.400/2.000/0.490 ms
[SW1-Vlan-interface1]%Oct 21 09:46:29:596 2023 SW1 PING/6/PING_STATISTICS: Ping statistics for 10.1.10.1: 5 packet(s) transmitted, 5 packet(s) received, 0.0% packet loss, round-trip min/avg/max/std-dev = 1.000/1.400/2.000/0.490 ms.

[SW1-Vlan-interface1]ping 10.1.10.2
Ping 10.1.10.2 (10.1.10.2): 56 data bytes, press CTRL+C to break
56 bytes from 10.1.10.2: icmp_seq=0 ttl=255 time=3.000 ms
56 bytes from 10.1.10.2: icmp_seq=1 ttl=255 time=1.000 ms
56 bytes from 10.1.10.2: icmp_seq=2 ttl=255 time=2.000 ms
56 bytes from 10.1.10.2: icmp_seq=3 ttl=255 time=1.000 ms
56 bytes from 10.1.10.2: icmp_seq=4 ttl=255 time=0.000 ms

--- Ping statistics for 10.1.10.2 ---
5 packet(s) transmitted, 5 packet(s) received, 0.0% packet loss
round-trip min/avg/max/std-dev = 0.000/1.400/3.000/1.020 ms
[SW1-Vlan-interface1]%Oct 21 09:46:37:474 2023 SW1 PING/6/PING_STATISTICS: Ping statistics for 10.1.10.2: 5 packet(s) transmitted, 5 packet(s) received, 0.0% packet loss, round-trip min/avg/max/std-dev = 0.000/1.400/3.000/1.020 ms.

[SW1-Vlan-interface1]ping 10.1.10.3
Ping 10.1.10.3 (10.1.10.3): 56 data bytes, press CTRL+C to break
56 bytes from 10.1.10.3: icmp_seq=0 ttl=255 time=3.000 ms
56 bytes from 10.1.10.3: icmp_seq=1 ttl=255 time=0.000 ms
56 bytes from 10.1.10.3: icmp_seq=2 ttl=255 time=0.000 ms
56 bytes from 10.1.10.3: icmp_seq=3 ttl=255 time=1.000 ms
56 bytes from 10.1.10.3: icmp_seq=4 ttl=255 time=1.000 ms

--- Ping statistics for 10.1.10.3 ---
5 packet(s) transmitted, 5 packet(s) received, 0.0% packet loss
round-trip min/avg/max/std-dev = 0.000/1.000/3.000/1.095 ms
[SW1-Vlan-interface1]%Oct 21 09:46:45:735 2023 SW1 PING/6/PING_STATISTICS: Ping statistics for 10.1.10.3: 5 packet(s) transmitted, 5 packet(s) received, 0.0% packet loss, round-trip min/avg/max/std-dev = 0.000/1.000/3.000/1.095 ms.

[SW1-Vlan-interface1]display mac-address 
MAC Address      VLAN ID    State            Port/Nickname            Aging
785f-3d3d-0206   1          Learned          GE1/0/1                  Y
785f-44a6-0306   1          Learned          GE1/0/2                  Y
785f-47c8-0406   1          Learned          GE1/0/3                  Y
[SW1-Vlan-interface1]
[SW1-Vlan-interface1]q
[SW1]mac-address timer aging 30
[SW1]display mac-address aging-time 
MAC address aging time: 30s.
[SW1]display mac-address 
MAC Address      VLAN ID    State            Port/Nickname            Aging
[SW1]

1.在华为交换机上查看MAC地址表

image

[SW1]display mac-address
[SW1]
[SW1]interface Vlanif 1
[SW1-Vlanif1]ip address 10.1.10.14 28
[SW1-Vlanif1]q
[SW1]display mac-address
[SW1]ping 10.1.10.1
  PING 10.1.10.1: 56  data bytes, press CTRL_C to break
    Reply from 10.1.10.1: bytes=56 Sequence=1 ttl=128 time=60 ms
    Reply from 10.1.10.1: bytes=56 Sequence=2 ttl=128 time=10 ms
    Reply from 10.1.10.1: bytes=56 Sequence=3 ttl=128 time=40 ms
    Reply from 10.1.10.1: bytes=56 Sequence=4 ttl=128 time=50 ms
    Reply from 10.1.10.1: bytes=56 Sequence=5 ttl=128 time=50 ms

  --- 10.1.10.1 ping statistics ---
    5 packet(s) transmitted
    5 packet(s) received
    0.00% packet loss
    round-trip min/avg/max = 10/42/60 ms

[SW1]ping 10.1.10.2
  PING 10.1.10.2: 56  data bytes, press CTRL_C to break
    Reply from 10.1.10.2: bytes=56 Sequence=1 ttl=128 time=60 ms
    Reply from 10.1.10.2: bytes=56 Sequence=2 ttl=128 time=50 ms
    Reply from 10.1.10.2: bytes=56 Sequence=3 ttl=128 time=50 ms
    Reply from 10.1.10.2: bytes=56 Sequence=4 ttl=128 time=50 ms
    Reply from 10.1.10.2: bytes=56 Sequence=5 ttl=128 time=50 ms

  --- 10.1.10.2 ping statistics ---
    5 packet(s) transmitted
    5 packet(s) received
    0.00% packet loss
    round-trip min/avg/max = 50/52/60 ms

[SW1]ping 10.1.10.3
  PING 10.1.10.3: 56  data bytes, press CTRL_C to break
    Reply from 10.1.10.3: bytes=56 Sequence=1 ttl=128 time=50 ms
    Reply from 10.1.10.3: bytes=56 Sequence=2 ttl=128 time=50 ms
    Reply from 10.1.10.3: bytes=56 Sequence=3 ttl=128 time=40 ms
    Reply from 10.1.10.3: bytes=56 Sequence=4 ttl=128 time=50 ms
    Reply from 10.1.10.3: bytes=56 Sequence=5 ttl=128 time=10 ms

  --- 10.1.10.3 ping statistics ---
    5 packet(s) transmitted
    5 packet(s) received
    0.00% packet loss
    round-trip min/avg/max = 10/40/50 ms

[SW1]disp	
[SW1]display mac-ad	
[SW1]display mac-address 
MAC address table of slot 0:
-------------------------------------------------------------------------------
MAC Address    VLAN/       PEVLAN CEVLAN Port            Type      LSP/LSR-ID  
               VSI/SI                                              MAC-Tunnel  
-------------------------------------------------------------------------------
5489-9896-5527 1           -      -      GE0/0/1         dynamic   0/-         
5489-9885-7848 1           -      -      GE0/0/2         dynamic   0/-         
5489-983e-46e4 1           -      -      GE0/0/3         dynamic   0/-         
-------------------------------------------------------------------------------
Total matching items on slot 0 displayed = 3 

[SW1]
[SW1]mac-address aging-time ?
  <0,10-1000000>  Aging-time seconds, 0 means that MAC aging function does not
                  work

[SW1]mac-address aging-time 200
[SW1]display mac-address 
Oct 21 2023 10:09:54-08:00 SW1 DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.25
.191.3.1 configurations have been changed. The current change number is 6, the c
hange loop count is 0, and the maximum number of records is 4095.
MAC address table of slot 0:
-------------------------------------------------------------------------------
MAC Address    VLAN/       PEVLAN CEVLAN Port            Type      LSP/LSR-ID  
               VSI/SI                                              MAC-Tunnel  
-------------------------------------------------------------------------------
5489-9896-5527 1           -      -      GE0/0/1         dynamic   0/-         
5489-9885-7848 1           -      -      GE0/0/2         dynamic   0/-         
5489-983e-46e4 1           -      -      GE0/0/3         dynamic   0/-         
-------------------------------------------------------------------------------
Total matching items on slot 0 displayed = 3 

[SW1]display mac-address aging-time 

  Aging time: 200 seconds
[SW1]

标签:10.1,56,bytes,案例,MAC,交换机,ms,time,SW1
From: https://www.cnblogs.com/xl4ng/p/17778549.html

相关文章

  • 【MacOs】 env: node\r: No such file or directory
    报错的原因:执行具有Windows样式行结尾的js文件,主要发生在Mac/Linux操作系统中。行结尾更改为CRLF(Windows样式)而不是LS(Unix),因此解析器由于该字符“\R”而将换行符作为路径的一部分。通常来自具有js文件的第三方npm包。 解决方案:修改文件的行结尾$brew......
  • python 案例
    这个程序使用了两个包:datetime和playsound。datetime:这是Python标准库中的一个模块,用于处理日期和时间。它提供了许多函数和类,可以让您在Python程序中处理日期和时间。由于datetime是Python的内置模块,因此您无需安装任何其他软件包来使用它。playsound:这是一个第三方包,用于......
  • Adobe Audition 2021 for Mac中文直装版下载附安装激活步骤
    Audition2021ForMac缩写为Au2021,它是一款功能强大的整合音频编辑软件。使用该软件的用户不仅可以自由创建和编辑音频文件,还可以进行降噪处理、混音视频、录制播客或节目的声音、恢复和修复音频录音等功能,因此能够很好地满足用户的多种使用需求。软件地址:看置顶贴软件新功能:1.自......
  • Animate CC 2020 For Mac汉化版「Mac An CC2020中文版」动画制作
    AdobeAnimate2020是一款专业高效的实用型的动画制作工具,AdobeAnimate2020中文版由Adobe公司精心打造,软件不仅具备了原有的Flash开发工具,还拥有HTML5创作工具,ancc2020功能强悍,特别适合网页开发者使用,能够让用户创作音频、图片、视频、动画等时更加便捷。软件地址:看置顶贴Animat......
  • unique使用案例及原理
    使用案例#define_CRT_SECURE_NO_WARNINGS#include<iostream>#include<cstring>#include<stdlib.h>#include<stdio.h>#include<math.h>#include<iomanip>#include<ctype.h>#include<ctime>#include<stack......
  • Mac OS安装Python的pip
    最近牛牛的同学在学习python,但当他使用numpy时出现了报错(。•́︿•̀。)原因为他的python没有numpy这个库(这个故事很典)。然鹅雪上加霜的是,他的电脑是Mac,没有Windows的cmd...牛牛还没碰过苹果电脑,后面通过查找百度发现在苹果里这玩意儿叫Terminal,经历千辛万苦打开Terminal并开始pip后,......
  • 服务器数据恢复-服务器多块硬盘掉线导致银行业务模块崩溃的数据恢复案例
    服务器故障&分析:某银行的业务模块崩溃,无法正常使用。排查服务器故障,发现运行该业务模块的服务器中多块硬盘离线,导致上层应用崩溃。故障服务器内多块硬盘掉线,硬盘掉线数量超过服务器raid阵列冗余级别所允许的硬盘掉线数量,导致服务器瘫痪。可以通过修复硬盘物理故障,提取故障盘数据......
  • Axure RP 10 for mac:打造高保真交互原型设计的终极利器
    AxureRP10formac是一款功能强大的UI/UX设计工具,它可以帮助用户快速创建高保真的交互原型,帮助团队在早期阶段测试并验证产品或界面的想法。→→↓↓载AxureRP10forMacAxureRP10具有丰富的组件库和强大的交互功能,可以模拟各种复杂的交互效果,帮助用户在短时间内创建出令......
  • Adobe Acrobat Pro DC 2023:轻松驾驭PDF,开启高效工作新篇章 Mac+win版
    AdobeAcrobatProDC2023是Adobe公司推出的一款强大的PDF文档处理软件,它可以帮助用户轻松管理和编辑PDF文件,同时还提供了丰富的注释、高亮、添加文本等功能,使得用户可以在PDF文件中进行高效的沟通和协作。→→↓↓载AdobeAcrobatProDC2023mac/win版相较于其他PDF处理软......
  • Oracle集群升级迁移—主机网络设置及交换机侧bond vlan划分
    目录Oracle集群升级迁移—主机网络设置及交换机bondvlan划分网络规划操作系统层面的IP设置bond类型介绍设置bond1和bond0交换机侧的设置(省略)Oracle集群升级迁移—主机网络设置及交换机bondvlan划分网络规划按照工程师要求,配置了5个IP供集群使用。1个IP为ScanIP、2个IP为VIP......