需求:实现PC4 (192.168.1.1)访问 PC5 (192.168.2.1)
实验拓扑:

实验步骤:
R1:
system-view
sysname R1
interface g0/0
ip address 11.1.1.1 255.255.255.0
undo shutdown
quit
interface g0/1
ip address 192.168.1.254 24
undo shutdown
quit
(配置静态路由)
ip route-static 192.168.2.0 24 11.1.1.2
R2:
system-view
sysname R2
interface g0/0
ip address 11.1.1.2 24
undo shutdown
quit
interface g0/1
ip address 12.1.1.2 24
undo shutdown
quit
(配置静态路由)
ip route-static 192.168.2.0 24 12.1.1.3
ip route-static 192.168.1.0 24 11.1.1.1
R3:
system-view
sysname R3
interface g0/1
ip address 12.1.1.3 24
undo shutdown
quit
interface g0/0
ip address 192.168.2.254 24
undo shutdown
quit
(配置静态路由)
ip route-static 192.168.1.0 24 12.1.1.2
PC4:

PC5:

实验结果:
PC4上测试:
ping 192.168.2.1

H3CNE实验(一)静态路由
最新推荐文章于 2025-06-26 21:53:38 发布
本文介绍了一种通过配置静态路由实现不同网段间PC互联的方法。实验中,PC4(192.168.1.1)通过路由器R1、R2、R3成功访问了PC5(192.168.2.1)。R1、R2、R3分别配置了相应的静态路由,确保了数据包正确转发。
9296

被折叠的 条评论
为什么被折叠?



