1. 网络拓扑
2. R1配置
[R1-GigabitEthernet0/0/0] ip address 192.168.12.1 24
[R1-GigabitEthernet0/0/1] ip address 192.168.1.254 24
[R1] ip route-static 192.168.2.0 24 192.168.12.2
3. R2 配置
[R2-GigabitEthernet0/0/0] ip address 192.168.12.2 24
[R2-GigabitEthernet0/0/1] ip address 192.168.23.2 24
[R2] ip route-static 192.168.1.0 24 192.168.12.1
[R2] ip route-static 192.168.2.0 24 192.168.23.3
4. R3配置
[R3-GigabitEthernet0/0/0] ip address 192.168.23.3 24
[R3-GigabitEthernet0/0/1] ip address 192.168.2.254 24
[R3] ip route-static 192.168.1.0 24 192.168.23.2
5. 查看配置