4
计算机网络实例(一)—— 在同一网段与不同网段中传递数据
source link: https://kingcos.me/posts/2022/network_demos_1/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
计算机网络实例(一)—— 在同一网段与不同网段中传递数据
2022.03.06 by kingcosPreface · 序
重学计算机基础知识。
Release Notes
↕
网络拓扑结构:
发送方:192.168.1.10(PC4) 接收方:192.168.1.11(PC5)
PC4 ARP 缓存:
C:\>arp -a
No ARP Entries Found
交换机 MAC 地址表:
Switch#show mac-address-table
Mac Address Table
-------------------------------------------
Vlan Mac Address Type Ports
---- ----------- -------- -----
- PC4 ARP 到交换机,交换机记录:
Vlan Mac Address Type Ports
---- ----------- -------- -----
1 000c.cf77.542b DYNAMIC Fa0/1(PC4)
- 交换机 ARP 到 PC5 & 路由器
- 路由器拒收(隔绝广播域)
- PC5 接收并 ARP 到交换机,PC5 记录:
C:\>arp -a
Internet Address Physical Address Type
192.168.1.10 000c.cf77.542b dynamic(PC4)
交换机记录:
Vlan Mac Address Type Ports
---- ----------- -------- -----
1 0009.7cc2.6e23 DYNAMIC Fa1/1(PC5)
1 000c.cf77.542b DYNAMIC Fa0/1(PC4)
- 交换机 ARP 到 PC4,PC4 记录:
C:\>arp -a
Internet Address Physical Address Type
192.168.1.11 0009.7cc2.6e23 dynamic(PC5)
- PC4 ICMP 到交换机
- 交换机 ICMP 到 PC5
- PC5 ICMP 到交换机
- 交换机 ICMP 到 PC4
- PC4 ICMP 到交换机
- 交换机 ICMP 到 PC5
- PC5 ICMP 到交换机
- 交换机 ICMP 到 PC4
发送方:192.168.1.10(PC4) 接收方:192.168.2.11(PC7)
PC4 ARP 缓存:
C:\>arp -a
Internet Address Physical Address Type
192.168.1.11 0009.7cc2.6e23 dynamic(PC5)
- PC4 ARP 到交换机
- 交换机 ARP 到 PC5 & 路由器
- PC5 拒收
- 路由器接收并 ARP 到交换机
- 交换机 ARP 到 PC4,PC4 记录:
C:\>arp -a
Internet Address Physical Address Type
192.168.1.1 0000.0cb0.0e20 dynamic(路由器)
192.168.1.11 0009.7cc2.6e23 dynamic(PC5)
- PC4 ICMP 到交换机
- 交换机 ICMP 到路由器
- 路由器 ARP 到 PC6 & PC7
- PC6 拒收
- PC7 接收并 ARP 到交换机,PC7 记录:
C:\>arp -a
Internet Address Physical Address Type
192.168.2.1 0002.4a1c.cc87 dynamic(路由器)
- 交换机 ARP 到路由器
- 路由器 ICMP 到交换机
- 交换机 ICMP 到 PC7
- PC4 ICMP 到交换机
- 交换机 ICMP 到路由器
- 路由器 ICMP 到交换机
- 交换机 ICMP 到 PC7
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK