一.ICMP
发报环境
设置路由器接口地址
<Huawei>
<Huawei>sys
<Huawei>system-view
Enter system view, return user view with Ctrl+Z.
[Huawei]int g 0/0/0
[Huawei-GigabitEthernet0/0/0]ip add
[Huawei-GigabitEthernet0/0/0]ip address 192.168.1.254 24
Jun 14 2023 18:39:55-08:00 Huawei %%01IFNET/4/LINK_STATE(l)[2]:The line protocol
IP on the interface GigabitEthernet0/0/0 has entered the UP state.
[Huawei-GigabitEthernet0/0/0]quit
[Huawei]int g 0/0/1
[Huawei-GigabitEthernet0/0/1]ip add
[Huawei-GigabitEthernet0/0/1]ip address 192.168.2.254 24
Jun 14 2023 18:40:55-08:00 Huawei %%01IFNET/4/LINK_STATE(l)[3]:The line protocol
IP on the interface GigabitEthernet0/0/1 has entered the UP state.
[Huawei-GigabitEthernet0/0/1]
设置3台PC机地址及网关
pc1:192.168.1.1 网关:192.168.1.254
pc1:192.168.1.2 网关:192.168.1.254
pc1:192.168.2.1 网关:192.168.2.254
连接成功
连接失败
连接失败(不可达)
探测命令:
ARPA
测试环境
设置主机地址
pc1:192.168.1.1
pc2:192.168.1.2
请求前:
连接两台主机
请求缓存mac地址
抓包arp