一、示意图
二、IP规划
1) 配置终端IP地址、子网掩码、网关。
Laptop0:192.168.0.100 255.255.255.0 192.168.0.1
PC0:172.16.0.100 255.255.0.0 172.16.0.1
2) 配置路由端口的IP地址。
Router1-Fa0/0:ip address 123.0.0.2 255.0.0.0
Router1-Fa0/1:ip address 130.0.0.2 255.255.0.0
Router0-Fa0/1:ip address 192.168.0.1 255.255.255.0
Router0-Fa0/0:ip address 123.0.0.1 255.0.0.0
Router2-Fa0/1:ip address 172.16.0.1 255.255.0.0
Router2-Fa0/0:ip address 130.0.0.1 255.255.0.0
三、操作步骤
Router0:ip route 130.0.0.1 255.255.0.0 123.0.0.2
Router0:ip route 172.16.0.1 255.255.0.0 123.0.0.2
Router2:ip route 123.0.0.1 255.0.0.0 130.0.0.2
Router2:ip route 172.16.0.1 255.255.0.0 130.0.0.2
Router1:ip route 192.168.0.1 255.255.255.0 123.0.0.1
Router1:ip route 172.16.0.1 255.255.0.0 130.0.0.1
时间: 2024-11-04 13:31:32