添加路由表
1.拓扑图

2.实验环境
PC1

PC2

AR1
[AR1-GigabitEthernet0/0/1]display ip interface brief
*down: administratively down
^down: standby
(l): loopback
(s): spoofing
The number of interface that is UP in Physical is 3
The number of interface that is DOWN in Physical is 0
The number of interface that is UP in Protocol is 3
The number of interface that is DOWN in Protocol is 0
Interface IP Address/Mask Physical Protocol
GigabitEthernet0/0/0 192.168.1.1/24 up up
GigabitEthernet0/0/1 192.168.2.1/24 up up
NULL0 unassigned up up(s)
AR2
[AR2-GigabitEthernet0/0/0]display ip interface brief
*down: administratively down
^down: standby
(l): loopback
(s): spoofing
The number of interface that is UP in Physical is 3
The number of interface that is DOWN in Physical is 0
The number of interface that is UP in Protocol is 3
The number of interface that is DOWN in Protocol is 0
Interface IP Address/Mask Physical Protocol
GigabitEthernet0/0/0 192.168.2.2/24 up up
GigabitEthernet0/0/1 192.168.3.1/24 up up
NULL0 unassigned up up(s)
AR3
[AR3]display ip interface brief
*down: administratively down
^down: standby
(l): loopback
(s): spoofing
The number of interface that is UP in Physical is 3
The number of interface that is DOWN in Physical is 0
The number of interface that is UP in Protocol is 3
The number of interface that is DOWN in Protocol is 0
Interface IP Address/Mask Physical Protocol
GigabitEthernet0/0/0 192.168.3.2/24 up up
GigabitEthernet0/0/1 192.168.4.1/24 up up
NULL0 unassigned up up(s)
3.添加路由表
AR1
[AR1]ip route-static 192.168.3.0 24 192.168.2.2
[AR1]ip route-static 192.168.4.0 24 192.168.2.2
AR2
[AR2]ip route-static 192.168.1.0 24 192.168.2.1
[AR2]ip route-static 192.168.4.0 24 192.168.3.2
AR3
[AR3]ip route-static 192.168.1.0 24 192.168.3.1
[AR3]ip route-static 192.168.2.0 24 192.168.3.1
4.测试
PC1

PC2

5.其他一些命令
[AR1]display ip routing-table #查看路由表
[AR1]undo route-static 192.168.4.0 24 #删除路由表某条的信息
tracert #查看经过那些路由
