本端设备 | 端口号 | 对端设备 |
SW1 | E0/0/1 | PC1 |
SW1 | E0/0/2 | PC2 |
SW1 | E0/0/3 | PC3 |
计算机 | IP地点 | MAC地点 |
PC1 | 192.168.1.1/24 | 54-89-98-EB-55-B4 |
PC2 | 192.168.2.1/24 | 54-89-98-15-56-E2 |
PC3 | 192.168.3.1/24 | 54-89-98-0A-38-8E |
<Huawei>system-view [Huawei]sysname SW1 [SW1] [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-98ca-0358 1 - - Eth0/0/1 dynamic 0/- 5489-986f-0a10 1 - - Eth0/0/2 dynamic 0/- 5489-98ae-4688 1 - - Eth0/0/3 dynamic 0/- ------------------------------------------------------------------------------- Total matching items on slot 0 displayed = 3 |
[SW1]interface Eth0/0/1 [SW1-Ethernet0/0/1]port-security enable [SW1-Ethernet0/0/1]port-security mac-address sticky [SW1-Ethernet0/0/1]port-security mac-address sticky 5489-98ca-0358 vlan 1 [SW1]interface Eth0/0/2 [SW1-Ethernet0/0/2]port-security enable [SW1-Ethernet0/0/2]port-security mac-address sticky [SW1-Ethernet0/0/2]port-security mac-address sticky 5489-986f-0a10 vlan 1 [SW1]interface Eth0/0/3 [SW1-Ethernet0/0/3]port-security enable [SW1-Ethernet0/0/3]port-security mac-address sticky [SW1-Ethernet0/0/3]port-security mac-address sticky 5489-98ae-4688 vlan 1 |
[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-98ae-4688 1 - - Eth0/0/3 sticky - 5489-98ca-0358 1 - - Eth0/0/1 sticky - 5489-986f-0a10 1 - - Eth0/0/2 sticky - ------------------------------------------------------------------------------- Total matching items on slot 0 displayed = 3 |
PC>ping 192.168.10.2 Ping 192.168.10.2: 32 data bytes, Press Ctrl_C to break From 192.168.10.2: bytes=32 seq=1 ttl=128 time=32 ms From 192.168.10.2: bytes=32 seq=2 ttl=128 time=46 ms From 192.168.10.2: bytes=32 seq=3 ttl=128 time=47 ms From 192.168.10.2: bytes=32 seq=4 ttl=128 time=31 ms From 192.168.10.2: bytes=32 seq=5 ttl=128 time=31 ms --- 192.168.10.2 ping statistics --- 5 packet(s) transmitted 5 packet(s) received 0.00% packet loss round-trip min/avg/max = 31/37/47 ms |
PC>ping 192.168.10.3 Ping 192.168.10.3: 32 data bytes, Press Ctrl_C to break From 192.168.10.3: bytes=32 seq=1 ttl=128 time=47 ms From 192.168.10.3: bytes=32 seq=2 ttl=128 time=31 ms From 192.168.10.3: bytes=32 seq=3 ttl=128 time=47 ms From 192.168.10.3: bytes=32 seq=4 ttl=128 time=31 ms From 192.168.10.3: bytes=32 seq=5 ttl=128 time=47 ms --- 192.168.10.3 ping statistics --- 5 packet(s) transmitted 5 packet(s) received 0.00% packet loss round-trip min/avg/max = 31/40/47 ms |
PC>ipconfig Link local IPv6 address...........: fe80::5689:98ff:fe87:617a IPv6 address......................: :: / 128 IPv6 gateway......................: :: IPv4 address......................: 192.168.10.3 Subnet mask.......................: 255.255.255.0 Gateway...........................: 0.0.0.0 Physical address..................: 54-89-98-87-61-7A DNS server........................: |
PC>ping 192.168.10.3 Ping 192.168.10.3: 32 data bytes, Press Ctrl_C to break From 192.168.10.1: Destination host unreachable From 192.168.10.1: Destination host unreachable From 192.168.10.1: Destination host unreachable From 192.168.10.1: Destination host unreachable From 192.168.10.1: Destination host unreachable |
欢迎光临 ToB企服应用市场:ToB评测及商务社交产业平台 (https://dis.qidao123.com/) | Powered by Discuz! X3.4 |