lab:
一台交换机下挂两台pc机,分别为pc1和pc2,pc1和pc2的网络规划如下表。
host name | ip address/subnet mast | Mac-address | Gateway |
---|---|---|---|
PC1 | 10.1.1.1/24 | 54-89-98-6A-7B-E1 | - |
PC1 | 10.1.1.2/24 | 54-89-98-EA-60-B0 | - |
确保switch的Mac地址表和arp表是空的
<Huawei>dis mac-address
<Huawei>dis arp all
IP ADDRESS MAC ADDRESS EXPIRE(M) TYPE INTERFACE VPN-INSTANCE
VLAN
------------------------------------------------------------------------------
------------------------------------------------------------------------------
Total:0 Dynamic:0 Static:0 Interface:0
如果mac地址非空使用undo Mac-address
<Huawei>system-view
[Huawei]undo mac-address
Info: This operation will delete all MAC address entries except DHCP sticky MAC
and NAC MAC.
pc1 ping 不存在的ip地址(10.1.1.10)
PC>ping 10.1.1.10
Ping 10.1.1.10: 32 data bytes, Press Ctrl_C to break
From 10.1.1.1: Destination host unreachable
From 10.1.1.1: Destination host unreachable
From 10.1.1.1: Destination host unreachable
From 10.1.1.1: Destina