Cisco认证考试重要知识辅导(2)
09-15
0
IP重定向
   
    当数据链路上连接多个路由器时,如A、B2个路由器,假如主机终端X设置的缺省网关为A,而实际目的地址需通过B才能到 达,路由器A不仅要向路由器B转发报文,而且还要向主机发送ICMP重定向信息,通知他如果继续想特定的目的发送报文,那么请接将报文发送给路由器B,以 下实验R1仿真为终端X,而R2、R3即为路由器A、B.
   
    R1和上一个实验一样的配置。
   
    R2:
   
    R2(config)#clock timezone cet 1
   
    R2(config)#ip subnet-zero
   
    R2(config)#interface loopback 0
   
    R2(config-if)#ip address .2 255.255.255.0
   
    R2(config-if)#ip ospf network point-to-point
   
    R2(config)#interface ethernet 0
   
    R2(config-if)#ip address 112.1.1.2 255.255.255.0
   
    R2(config-if)#router ospf 10
   
    R2(config-router)#router-id .2
   
    R2(config-router)#network .0 255.255.255.255 area 0
   
    R3:
   
    R3(config)#interface ethernet 0
   
    R3(config-if)#ip address 112.1.1.3 255.255.255.0
   
    R3(config)#interface loopback 0
   
    R3(config-if)#ip address .1 255.255.255.0 secondary
   
    R3(config-if)#ip address .3 255.255.255.0 secondary
   
    R3(config-if)#ip address .2 255.255.255.0 secondary
   
    R3(config-if)#ip address .4 255.255.255.0 secondary
   
    R3(config-if)#ip address .3 255.255.255.0
   
    R3(config-if)#ip ospf network point-to-point
   
    R3(config-if)#router ospf 10
   
    R3(config-router)#router-id .3
   
    R3(config-router)#network .0 255.255.255.255 area 0
   
    R1已经关闭了路由功能,所有已开始时看不到任何路由的只有默认网关:
   
    R1#show ip route
   
    Default gateway is 112.1.1.2
   
    Host               Gateway           Last Use    Total Uses Interface
   
    ICMP redirect cache is empty
  

相关内容

热门资讯

2012年思科认证(CCNP)... 2012年思科认证(CCNP)考试复习指导6
2012年思科认证(CCNP)... 2012年思科认证(CCNP)考试复习指导3
Cisco考试再认证常见问题4 Cisco考试再认证常见问题4
思科推进中国泛海网络建设 思科推进中国泛海网络建设
Cisco认证问答:我能在考试... Cisco认证问答:我能在考试的时候带计算器吗?
2012年思科认证(CCNP)... 2012年思科认证(CCNP)考试复习指导8