Cisco路由配置路由器缺省路由及IP重定向3[2012年7月13日]【大中小】1
2IP重定向当数据链路上连接多个路由器时,如A、B2个路由器,假如主机终端X设置的缺省网关为A,而实际目的地址需通过B才能到达,路由器A不仅要向路由器B转发报文,而且还要向主机发送ICMP重定向信息,通知他如果继续想特定的目的发送报文,那么请接将报文发送给路由器B,以下实验R1仿真为终端X,而R2、R3即为路由器A、B
R1和上一个实验一样的配置
R2:R2(config)#clocktimezonecet1R2(config)#ipsubnet-zeroR2(config)#interfaceloopback0R2(config-if)#ipaddress
0R2(config-if)#ipospfnetworkpoint-to-pointR2(config)#interfaceethernet0R2(config-if)#ipaddress112
0R2(config-if)#routerospf10R2(config-router)#router-id
2R2(config-router)#network
255area0R3:R3(config)#interfaceethernet0R3(config-if)#ipaddress112
0R3(config)#interfaceloopback0R3(config-if)#ipaddress
0secondaryR3(config-if)#ipaddress
0secondaryR3(config-if)#ipaddress
0second