1.在华三交换机上查看MAC地址表
[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地址表
[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