![](/img/e/967/nBnauM3X4gTMyEDN1UzM1czM0MTM2ITOzkTMwADMwAjMxAzL1MzL1UzLt92YucmbvRWdo5Cd0FmLwE2LvoDc0RHa.jpg)
R1#
R1#config t
Enter configuration commands, one per line. End with CNTL/Z.
R1(config)#ip route 172.16.2.0 255.255.255.0 172.16.12.2 100
R1(config)#ip route 172.16.2.0 255.255.255.0 172.16.21.2
R1(config)#end
配置路由器r2
R2#config t
Enter configuration commands, one per line. End with CNTL/Z.
R2(config)#ip route 172.16.1.0 255.255.255.0 172.16.12.1 100
R2(config)#ip route 172.16.1.0 255.255.255.0 172.16.21.1
R2(config)#end
靜態路由的用處是當以太鏈路優先選擇,當以太鏈路出現故障的時候,選用串列鏈路,而在以太鏈路恢復後,再優先選以太鏈路。因此只要改變串列鏈路的管理距離。