[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.1428
[SW1-Vlan-interface1]ping 10.1.10.1
Ping 10.1.10.1 (10.1.10.1): 56 data bytes, press CTRL+C to break56bytesfrom10.1.10.1: icmp_seq=0 ttl=255 time=2.000 ms
56bytesfrom10.1.10.1: icmp_seq=1 ttl=255 time=1.000 ms
56bytesfrom10.1.10.1: icmp_seq=2 ttl=255 time=1.000 ms
56bytesfrom10.1.10.1: icmp_seq=3 ttl=255 time=2.000 ms
56bytesfrom10.1.10.1: icmp_seq=4 ttl=255 time=1.000 ms
--- Ping statistics for10.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:5962023 SW1 PING/6/PING_STATISTICS: Ping statistics for10.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 break56bytesfrom10.1.10.2: icmp_seq=0 ttl=255 time=3.000 ms
56bytesfrom10.1.10.2: icmp_seq=1 ttl=255 time=1.000 ms
56bytesfrom10.1.10.2: icmp_seq=2 ttl=255 time=2.000 ms
56bytesfrom10.1.10.2: icmp_seq=3 ttl=255 time=1.000 ms
56bytesfrom10.1.10.2: icmp_seq=4 ttl=255 time=0.000 ms
--- Ping statistics for10.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:4742023 SW1 PING/6/PING_STATISTICS: Ping statistics for10.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 break56bytesfrom10.1.10.3: icmp_seq=0 ttl=255 time=3.000 ms
56bytesfrom10.1.10.3: icmp_seq=1 ttl=255 time=0.000 ms
56bytesfrom10.1.10.3: icmp_seq=2 ttl=255 time=0.000 ms
56bytesfrom10.1.10.3: icmp_seq=3 ttl=255 time=1.000 ms
56bytesfrom10.1.10.3: icmp_seq=4 ttl=255 time=1.000 ms
--- Ping statistics for10.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:7352023 SW1 PING/6/PING_STATISTICS: Ping statistics for10.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地址表
[SW1]display mac-address
[SW1]
[SW1]interface Vlanif 1
[SW1-Vlanif1]ip address 10.1.10.1428
[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=56Sequence=1 ttl=128time=60 ms
Reply from 10.1.10.1: bytes=56Sequence=2 ttl=128time=10 ms
Reply from 10.1.10.1: bytes=56Sequence=3 ttl=128time=40 ms
Reply from 10.1.10.1: bytes=56Sequence=4 ttl=128time=50 ms
Reply from 10.1.10.1: bytes=56Sequence=5 ttl=128time=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=56Sequence=1 ttl=128time=60 ms
Reply from 10.1.10.2: bytes=56Sequence=2 ttl=128time=50 ms
Reply from 10.1.10.2: bytes=56Sequence=3 ttl=128time=50 ms
Reply from 10.1.10.2: bytes=56Sequence=4 ttl=128time=50 ms
Reply from 10.1.10.2: bytes=56Sequence=5 ttl=128time=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=56Sequence=1 ttl=128time=50 ms
Reply from 10.1.10.3: bytes=56Sequence=2 ttl=128time=50 ms
Reply from 10.1.10.3: bytes=56Sequence=3 ttl=128time=40 ms
Reply from 10.1.10.3: bytes=56Sequence=4 ttl=128time=50 ms
Reply from 10.1.10.3: bytes=56Sequence=5 ttl=128time=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 PortType LSP/LSR-ID
VSI/SI MAC-Tunnel
-------------------------------------------------------------------------------5489-9896-55271 - - GE0/0/1 dynamic 0/-
5489-9885-78481 - - 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-time200
[SW1]display mac-address
Oct 21202310: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 is6, the c
hange loop count is0, and the maximum number of records is4095.
MAC address table of slot 0:
-------------------------------------------------------------------------------
MAC Address VLAN/ PEVLAN CEVLAN PortType LSP/LSR-ID
VSI/SI MAC-Tunnel
-------------------------------------------------------------------------------5489-9896-55271 - - GE0/0/1 dynamic 0/-
5489-9885-78481 - - 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]
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 终于写完轮子一部分:tcp代理 了,记录一下
· 震惊!C++程序真的从main开始吗?99%的程序员都答错了
· 别再用vector<bool>了!Google高级工程师:这可能是STL最大的设计失误
· 单元测试从入门到精通
· 【硬核科普】Trae如何「偷看」你的代码?零基础破解AI编程运行原理