配置rip动态路由协议实现全网互通

配置rip动态路由协议实现全网互通 R1和R2的互联地址 192.168.0.0/24R1和R3的互联地址 192.168.1.0/24R2和R3的互联地址 192.168.2.0/24R3和R4的互联地址 192.168.3.0/24使用loopback接口模拟公司内部的客户端主机R1的lo 0   192.168.10.1/24R2的lo 0   192.168.20.1/24R3的lo 0   192.168.30.1/24R4的lo 0   192.168.40.1/24  接口配置省略R1router ripnetwork 192.168.10.0network 192.168.0.0network 192.168.1.0 R2router ripnetwork 192.168.20.0network 192.168.2.0network 192.168.0.0 R3router ripnetwrok 192.168.30.0network 192.168.2.0network 192.168.1.0network 192.168.3.0 R4router ripnetwork 192.168.40.0network 192.168.3.0 路由表R1R    192.168.30.0/24 [120/1] via 192.168.1.2, 00:00:10, FastEthernet0/0C    192.168.10.0/24 is directly connected, Loopback0R    192.168.40.0/24 [120/2] via 192.168.1.2, 00:00:10, FastEthernet0/0R    192.168.20.0/24 [120/1] via 192.168.0.2, 00:00:04, FastEthernet1/0C    192.168.0.0/24 is directly connected, FastEthernet1/0C    192.168.1.0/24 is directly connected, FastEthernet0/0R    192.168.2.0/24 [120/1] via 192.168.1.2, 00:00:10, FastEthernet0/0                    [120/1] via 192.168.0.2, 00:00:04, FastEthernet1/0R    192.168.3.0/24 [120/1] via 192.168.1.2, 00:00:12, FastEthernet0/0R2R    192.168.30.0/24 [120/1] via 192.168.2.1, 00:00:00, FastEthernet0/0R    192.168.10.0/24 [120/1] via 192.168.0.1, 00:00:09, FastEthernet1/0R    192.168.40.0/24 [120/2] via 192.168.2.1, 00:00:00, FastEthernet0/0C    192.168.20.0/24 is directly connected, Loopback0C    192.168.0.0/24 is directly connected, FastEthernet1/0R    192.168.1.0/24 [120/1] via 192.168.2.1, 00:00:00, FastEthernet0/0                    [120/1] via 192.168.0.1, 00:00:09, FastEthernet1/0C    192.168.2.0/24 is directly connected, FastEthernet0/0R    192.168.3.0/24 [120/1] via 192.168.2.1, 00:00:02, FastEthernet0/0R3C    192.168.30.0/24 is directly connected, Loopback0R    192.168.10.0/24 [120/1] via 192.168.1.1, 00:00:25, FastEthernet1/0R    192.168.40.0/24 [120/1] via 192.168.3.1, 00:00:21, FastEthernet2/0R    192.168.20.0/24 [120/1] via 192.168.2.2, 00:00:24, FastEthernet0/0R    192.168.0.0/24 [120/1] via 192.168.2.2, 00:00:24, FastEthernet0/0                    [120/1] via 192.168.1.1, 00:00:25, FastEthernet1/0C    192.168.1.0/24 is directly connected, FastEthernet1/0C    192.168.2.0/24 is directly connected, FastEthernet0/0C    192.168.3.0/24 is directly connected, FastEthernet2/0R4R    192.168.30.0/24 [120/1] via 192.168.3.2, 00:00:13, FastEthernet0/0R    192.168.10.0/24 [120/2] via 192.168.3.2, 00:00:13, FastEthernet0/0C    192.168.40.0/24 is directly connected, Loopback0R    192.168.20.0/24 [120/2] via 192.168.3.2, 00:00:13, FastEthernet0/0R    192.168.0.0/24 [120/2] via 192.168.3.2, 00:00:13, FastEthernet0/0R    192.168.1.0/24 [120/1] via 192.168.3.2, 00:00:13, FastEthernet0/0R    192.168.2.0/24 [120/1] via 192.168.3.2, 00:00:13, FastEthernet0/0C    192.168.3.0/24 is directly connected, FastEthernet0/0标红的路由条目表示到目标网段有两条路径可走,跳数相同,因为RIP是以跳数作为度量值的扩展RIPv2内容(修改lo 0 参数)把 R1 lo 0 修改为10.10.10.1/24把R2 lo 0 修改为10.10.20.1/24把R3 lo 0 修改为10.10.30.1/24把R4 lo 0 修改为10.10.40.1/24然后每台路由宣告lo 0 网段network 10.0.0.0路由表R1 R       10.0.0.0/8 [120/1] via 192.168.1.2, 00:00:15, FastEthernet0/0R2R       10.0.0.0/8 [120/1] via 192.168.2.1, 00:00:16, FastEthernet0/0                   [120/1] via 192.168.0.1, 00:00:15, FastEthernet1/0R3R       10.0.0.0/8 [120/1] via 192.168.1.1, 00:00:02, FastEthernet1/0R4 R       10.0.0.0/8 [120/1] via 192.168.3.2, 00:00:14, FastEthernet0/0  R1 到10.10.20.1不通 10.10.30.1通  10.10.40.1不通R2 到10.10.10.1通  10.10.30.1 通 10.10.40.1不通R3到 10.10.10.1通 10.10.20.1 不通 10.10.40.1不通R4 到10.10.10.1通 10.10.20.1不通 10.10.30.1通解决办法:用RIPv2并且禁止路由汇总路由表R1R       10.10.20.0 [120/1] via 192.168.0.2, 00:00:12, FastEthernet1/0R       10.10.30.0 [120/1] via 192.168.1.2, 00:00:19, FastEthernet0/0R       10.10.40.0 [120/2] via 192.168.1.2, 00:00:19, FastEthernet0/0R2R       10.10.10.0 [120/1] via 192.168.0.1, 00:00:04, FastEthernet1/0R       10.10.30.0 [120/1] via 192.168.2.1, 00:00:11, FastEthernet0/0R       10.10.40.0 [120/2] via 192.168.2.1, 00:00:11, FastEthernet0/0R3R       10.10.10.0 [120/1] via 192.168.1.1, 00:00:09, FastEthernet1/0R       10.10.20.0 [120/1] via 192.168.2.2, 00:00:21, FastEthernet0/0R       10.10.40.0 [120/1] via 192.168.3.1, 00:00:15, FastEthernet2/0R4R       10.10.10.0 [120/2] via 192.168.3.2, 00:00:29, FastEthernet0/0R       10.10.20.0 [120/2] via 192.168.3.2, 00:00:29, FastEthernet0/0R       10.10.30.0 [120/1] via 192.168.3.2, 00:00:29, FastEthernet0/0全网互通成功 

推荐阅读

    学习写字楼新选择6000元主流配置

    学习写字楼新选择6000元主流配置,,这种配置需要考虑双核心的办公和娱乐平台,充分考虑办公室的办公需求和娱乐需求,以约6000元的预算和cost-e

    酷睿I7 配置

    酷睿I7 配置,配置,玩家国度啦华硕 Rampage II Extreme(3800元)如果米不够,也可以把Extreme改为Gene,不过是小板内存推荐金士顿6G DDR3 2000骇

    提高3A四核羿龙II游戏配置的性能

    提高3A四核羿龙II游戏配置的性能,,以节能环保为主题的IT产业,目前3A低端平台处理器、主板芯片组、独立开发卡性能突出,特别是在与AMD的处理

    opporeno8参数配置及价格

    opporeno8参数配置及价格,面部,亿元,Oppo的荣誉2020年1月4日,接近屏幕关闭传感器是否支持双卡:支持oppor11splus什么时候上市的Oppo R11S P

    查看配置:酷睿i3530集展示办公平台

    查看配置:酷睿i3530集展示办公平台,,由于时间和精力的关系,我们不可能对所有的配置进行评论,希望我们能理解,我希望我们的评论能在那些需要帮

    3500元超额值学生娱乐结构的优化配置

    3500元超额值学生娱乐结构的优化配置,,作为一个DIY的主流用户领域的学生,每个用户51学生攒机的高峰。因为学生用户没有稳定的收入来源,攒机