您好,欢迎访问三七文档
当前位置:首页 > 商业/管理/HR > 管理学资料 > 华为eNSP配置实例7――RIP路由
七.RIPV1&V2配置•场景•你是你们公司的网络管理员。现在公司的内部网较小,仅有三台路由器,规划了五个网络。所以你决定使用RIP协议来实现路由信息的相互传输。考虑到兼容性问题,你希望使用RIPv1,但是RIPv2有很多优点。经过测试,你最终使用了RIPv210.0.2.210.0.3.110.0.23.110.0.23.210.0.1.110.0.3.210.0.12.210.0.12.110.0.2.110.0.1.2172.0.16.1172.0.16.2网络拓扑图步骤一.基本配置与IP编址•R1的基本配置•Huaweiundotermon•Huaweisys•[Huawei]sysnameR1•[R1]ints0/0/0•[R1-Serial0/0/0]ipaddr10.0.12.124•[R1-Serial0/0/0]undoshut•[R1-Serial0/0/0]inte0/0/1•[R1-Ethernet0/0/1]ipaddr10.0.1.124•[R1-Ethernet0/0/1]undoshut•[R1-Ethernet0/0/1]quit•R2的基本配置•Huaweiundotermon•Huaweisys•[Huawei]sysnameR2•[R2]ints0/0/0•[R2-Serial0/0/0]ipaddr10.0.12.224•[R2-Serial0/0/0]undoshut•[R2-Serial0/0/0]inte0/0/1•[R2-Ethernet0/0/1]ipaddr10.0.2.124•[R2-Ethernet0/0/1]undoshut•[R2-Ethernet0/0/1]ints0/0/1.•[R2-Serial0/0/1]ipaddr10.0.23.124•[R2-Serial0/0/1]undoshut•R3的基本配置•Huaweiundotermon•Huaweisys•[Huawei]sysnameR3•[R3]ints0/0/1•[R3-Serial0/0/1]ipaddr10.0.23.224•[R3-Serial0/0/1]undoshut•[R3-Serial0/0/1]inte0/0/1•[R3-Ethernet0/0/1]ipaddr10.0.3.124•[R3-Ethernet0/0/1]undoshut•R1上ping10.0.12.2通(直连)ping10.0.23.1不通(非直连)•R2上ping10.0.12.1通(直连)•ping10.0.23.2通(直连)•R3上ping10.0.23.1通(直连)ping10.0.12.2不通(非直连)步骤二.RIPv1协议配置•在R1上启动RIP协议,并将10.0.0.0网段通告到RIP协议。[R1]rip1[R1-rip-1]network10.0.0.0•在R2上启动RIP协议,并将10.0.0.0网段通告到RIP协议。[R2]rip1[R2-rip-1]network10.0.0.0•在R3上启动RIP协议,并将10.0.0.0这个网段通告到RIP协议。[R3]rip1[R3-rip-1]net10.0.0.0步骤三.RIPv1路由验证•查看R1、R2和R3的路由表,确认各路由器已经学习到以下红色突出显示部分的RIP路由。•[R1]displayiprouting-table•RouteFlags:R-relay,D-downloadtofib•------------------------------------------------------------------------------•RoutingTables:Public•Destinations:10Routes:10•Destination/MaskProtoPreCostFlagsNextHopInterface•10.0.1.0/24Direct00D10.0.1.1Ethernet0/0/1•10.0.1.1/32Direct00D127.0.0.1Ethernet0/0/1•10.0.2.0/24RIP1001D10.0.12.2Serial0/0/0•10.0.3.0/24RIP1002D10.0.12.2Serial0/0/0•10.0.12.0/24Direct00D10.0.12.1Serial0/0/0•10.0.12.1/32Direct00D127.0.0.1Serial0/0/0•10.0.12.2/32Direct00D10.0.12.2Serial0/0/0•10.0.23.0/24RIP1001D10.0.12.2Serial0/0/0•127.0.0.0/8Direct00D127.0.0.1InLoopBack0•127.0.0.1/32Direct00D127.0.0.1InLoopBack•[R2]displayiprouting-table10.0.1.0/24RIP1001D10.0.12.1Serial0/0/010.0.2.0/24Direct00D10.0.2.1Ethernet0/0/110.0.2.1/32Direct00D127.0.0.1Ethernet0/0/110.0.3.0/24RIP1001D10.0.23.2Serial0/0/1.....•[R3]displayiprouting-table10.0.1.0/24RIP1002D10.0.23.1Serial0/0/110.0.2.0/24RIP1001D10.0.23.1Serial0/0/110.0.3.0/24Direct00D10.0.3.1Ethernet0/0/110.0.3.1/32Direct00D127.0.0.1Ethernet0/0/110.0.12.0/24RIP1001D10.0.23.1Serial0/0/1•测试R1到10.0.23.1的连通性。R1与R3能够实现互通。•R1ping10.0.23.2•PING10.0.23.2:56databytes,pressCTRL_Ctobreak•Replyfrom10.0.23.2:bytes=56Sequence=1ttl=254time=170ms•Replyfrom10.0.23.2:bytes=56Sequence=2ttl=254time=70ms•Replyfrom10.0.23.2:bytes=56Sequence=3ttl=254time=80ms•Replyfrom10.0.23.2:bytes=56Sequence=4ttl=254time=80ms•Replyfrom10.0.23.2:bytes=56Sequence=5ttl=254time=30ms步骤四.RIPv2协议配置•基于前面的配置,只需在RIP子视图模式下配置version2即可。•[R1]rip1•[R1-rip-1]version2•[R2]rip1•[R2-rip-1]version2•[R3]rip1•[R3-rip-1]version2步骤五.RIPv2静态路由引入配置•本步骤中,我们将在R3上一个口配置IP地址为172.0.16.1/24,连接电脑172.0.16.2/24,然后在R2上配置到达该网段的路由。并将此静态路由引入到RIP路由信息中,以便实现R1与172.0.16.2地址之间的通讯。•[R3]inte0/0/0•[R3-Ethernet0/0/0]ipaddr172.0.16.124•[R3-Ethernet0/0/0]undoshut•测试R1到172.0.16.2的连通性。•[R1]ping172.0.16.2•PING172.0.16.2:56databytes,pressCTRL_Ctobreak•Requesttimeout•Requesttimeout•Requesttimeout•此时R1没有去往172.0.16.2的路由,所以无法通讯。•在R2上配置静态路由。•[R2]iproute-static172.0.16.02410.0.23.2•将静态路由引入RIPv2路由协议。•[R2]rip1•[R2-rip-1]import-routestatic步骤六.RIPv2静态路由引入验证•查看R1、R2和R3的路由表,发现R1里面出现了去往172.0.16.0/24的路由;R2里面多出了配置的去往172.0.16.0/24的静态路由;R3的路由表则无变化仍是去往172.0.16.0/24的直连路由•。•[R1]disiprout•Destination/MaskProtoPreCostFlagsNextHopInterface•10.0.1.0/24Direct00D10.0.1.1Ethernet0/0/1•10.0.1.1/32Direct00D127.0.0.1Ethernet0/0/1•10.0.2.0/24RIP1001D10.0.12.2Serial0/0/0•10.0.3.0/24RIP1002D10.0.12.2Serial0/0/0•10.0.12.0/24Direct00D10.0.12.1Serial0/0/0•10.0.12.1/32Direct00D127.0.0.1Serial0/0/0•10.0.12.2/32Direct00D10.0.12.2Serial0/0/0•10.0.23.0/24RIP1001D10.0.12.2Serial0/0/0•127.0.0.0/8Direct00D127.0.0.1InLoopBack0•127.0.0.1/32Direct00D127.0.0.1InLoopBack0•172.0.16.0/24RIP1001D10.0.12.2Serial0/0/0•[R2]disiprout•RouteFlags:R-relay,D-downloadtofib•------------------------------------------------------------------------------•RoutingTables:Public•Destinations:13Routes:13•Destination/MaskProtoPreCostFlagsNextHopInterface•10.0.1.0/24RIP1001D10.0.12.1Serial0/0/0•10.0.2.0/24Direct00D10.0.2.1Ethernet0/0/1•10.0.2.1/32Direct00D127.0.0.1Ethernet0/0/1•10.0.3.0/24RIP1001D10.0.23.2Serial0/0/1•10.0.12.0/24Direct00D10.0.12.2Serial0/0/0•10.0.12.1/32Direct00D10.0.12.1Serial0/0/0•10.0.12.2/32Direct00D127.0.0.1Serial0/0/0•10.0.23.0/24Direct00D10.0.23.1Serial0/0/1•10.0.23.1/32Direct00D127.0.0.1Serial0/0/1•10.0.23.2/32Direct00D10.0.23.2Serial0/0/1•127.0.0.0/8Direct00D127.0.0.1InLoopBack0•127.0.0.1/32Direct00D127.0.0.1InLoopBack0•172.0.16.0/24Static600RD10.0.23.2Serial0/0/1•R3disiprout•RouteFlags:R-relay,D-downloadtofib•--------------------------------------------------------------------------
本文标题:华为eNSP配置实例7――RIP路由
链接地址:https://www.777doc.com/doc-3547687 .html