4

计算机网络实例(一)—— 在同一网段与不同网段中传递数据

 2 years ago
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.
neoserver,ios ssh client

计算机网络实例(一)—— 在同一网段与不同网段中传递数据

2022.03.06 by kingcos

Preface · 序
重学计算机基础知识。

Release Notes ↕

网络拓扑结构:

1.png

发送方: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
----    -----------       --------    -----
  1. PC4 ARP 到交换机,交换机记录:
Vlan    Mac Address       Type        Ports
----    -----------       --------    -----
1       000c.cf77.542b    DYNAMIC     Fa0/1(PC4)
  1. 交换机 ARP 到 PC5 & 路由器
  2. 路由器拒收(隔绝广播域)
  3. 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)
  1. 交换机 ARP 到 PC4,PC4 记录:
C:\>arp -a
  Internet Address      Physical Address      Type
  192.168.1.11          0009.7cc2.6e23        dynamic(PC5)
  1. PC4 ICMP 到交换机
  2. 交换机 ICMP 到 PC5
  3. PC5 ICMP 到交换机
  4. 交换机 ICMP 到 PC4
  1. PC4 ICMP 到交换机
  2. 交换机 ICMP 到 PC5
  3. PC5 ICMP 到交换机
  4. 交换机 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)
  1. PC4 ARP 到交换机
  2. 交换机 ARP 到 PC5 & 路由器
  3. PC5 拒收
  4. 路由器接收并 ARP 到交换机
  5. 交换机 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)
  1. PC4 ICMP 到交换机
  2. 交换机 ICMP 到路由器
  3. 路由器 ARP 到 PC6 & PC7
  4. PC6 拒收
  5. PC7 接收并 ARP 到交换机,PC7 记录:
C:\>arp -a
  Internet Address      Physical Address      Type
  192.168.2.1           0002.4a1c.cc87        dynamic(路由器)
  1. 交换机 ARP 到路由器
  2. 路由器 ICMP 到交换机
  3. 交换机 ICMP 到 PC7
  1. PC4 ICMP 到交换机
  2. 交换机 ICMP 到路由器
  3. 路由器 ICMP 到交换机
  4. 交换机 ICMP 到 PC7

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK