配置静态路由目的
配置接口IP地址并通过静态路由配置实现全网互通
方案
使用ensp搭建实验环境,如图所示

步骤
1.分别为路由器配置非直连网段的静态路由
1)[R1]ip route-static 192.168.3.0 24 192.168.2.2
2)[R1]ip route-static 192.168.4.0 24 192.168.2.2
3)[R2]ip route-static 192.168.1.0 24 192.168.2.1
4)[R2]ip route-static 192.168.4.0 24 192.168.3.2
5)[R3]ip route-static 192.168.2.0 24 192.168.3.1
6)[R3]ip route-static 192.168.1.0 24 192.168.3.1
2.分别测试pc1.pc2与网络各接口能否互通