靜态路由协议和ARP协议冲突.docxVIP

  • 4
  • 0
  • 约2.8千字
  • 约 4页
  • 2016-12-03 发布于重庆
  • 举报
靜态路由协议和ARP协议冲突

静态路由协议:协议冲突(静态路由协议、arp协议)案例研究实验拓扑中,R3模拟服务器,网桥连接R1、R2。因为网桥还有其他的连接,负责的流量十分大。而又R1传送的数据有十分重要,所以,网络管理员便在R1上专门配置了一条主机路由,只向R2的Fa0/0口发送数据。实验拓扑拓扑中连接网桥的是12.1.1.0/24网段,R1、R2之间直接连接的是21.1.1.0/24网段。实验配置R1:no ip domain lookup //关闭域名解析interface FastEthernet0/0 ip address 12.1.1.1 255.255.255.0 //为Fa0/0口配置IP地址interface FastEthernet0/1 ip address 21.1.1.1 255.255.255.0 //为Fa0/1口配置IP地址ip route 12.1.1.3 255.255.255.255 21.1.1.2 //配置主机路由line con 0 exec-timeout 0 0 //防止超时登出logging synchronous //防止日志解析打断命令行R2:no ip domain lookupinterface FastEthernet0/0 ip address 12.1.1.2 255.255.255.0interface FastEthernet0/1 ip address 21.1.1.2 255.255.255.0interface Ethernet1/0 ip address 23.1.1.2 255.255.255.0line con 0 exec-timeout 0 0logging synchronousR3:no ip domain lookupinterface FastEthernet0/0 ip address 12.1.1.3 255.255.255.0ip route 12.1.1.1 255.255.255.255 12.1.1.2 //配置去往12.1.1.2主机的路由条目line con 0 exec-timeout 0 0logging synchronous 此时,我们来查看R1上的路由表:Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2 i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2 ia - IS-IS inter area, * - candidate default, U - per-user static route o - ODR, P - periodic downloaded static routeGateway of last resort is not set 21.0.0.0/24 is subnetted, 1 subnetsC 21.1.1.0 is directly connected, FastEthernet0/1 12.0.0.0/8 is variably subnetted, 2 subnets, 2 masksC 12.1.1.0/24 is directly connected, FastEthernet0/0S 12.1.1.3/32 [1/0] via 21.1.1.2注意红色加粗的下划线字体,路由器会发现静态路由精确匹配到了32位,并且与直连12.1.1.0/24网段位于同一网段,所以,路由器选择从Fa0/1发送数据。按照我们学习的只是,数据包是可以到达R3,但是事实并非如此,我们在R1上测试:R1(config)#do ping 12.1.1.3Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 12.1.1.3, timeout is 2 seconds:.....Success rate is 0 percent (0/5)从红色字体中可以看出,没有一个数据包传送出去之后并没有收到回复信息。利用trace命令,来对R1发送的数据包进行追踪。我们可以发现,数据包一直在12.1.1.1和21.1

文档评论(0)

1亿VIP精品文档

相关文档