行業資(zī)訊
   
廣州網絡維護-RIP路由協議配置實例
發布時間:2013-4-2
浏覽人數:3183

 

    RIP(Routing Information Protocol)是最常使用的内部網關協議(InteriorGateway Protocol)之一(yī),是一(yī)種典型的基于D-V 算法的動态路由協議。通過UDP(User Datagram Protocol)報文交換路由信息,使用跳數(HopCount)來衡量到達目的地的距離(lí)(被稱爲路由權-Routing cost)。由于在RIP 中(zhōng)大(dà)于或等于16 的跳數被定義爲無窮大(dà)(即目的網絡或主機不可達),所以RIP 一(yī)般用于采用同類技術的中(zhōng)等規模的網絡,如校園網及一(yī)個地區範圍内的網絡,RIP 并非爲複雜(zá)、大(dà)型的網絡而設計。

    啓動RIP,進入RIP 視圖: router Rip關閉RIP: no rip在指定的網絡上使能RIP network{ network-number| all }在指定的網絡上禁用RIP no network{ network-number| all

     Router1:

    Router>enable //進入特權模式Router#conf ter //進入全局配置模式Enter configuration commands, one per line. End with CNTL/Z. Router(config)#int f0/0 //配置Fa0/0 接口Router(config-if)#ip add 1.1.1.2 255.255.255.0 Router(config-if)#no shutdown

    %LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up Router(config-if)# %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up Router(config-if)#exit Router(config)#int s0/0/0 //配置串口Router(config-if)#ip add 1.1.6.1 255.255.255.0 Router(config-if)#clock rate 64000 Router(config-if)#no shutdown

    %LINK-5-CHANGED: Interface Serial0/0/0, changed state to down Router(config-if)#exit Router(config)#int s0/0/1 //配置串口Router(config-if)#ip add 1.1.2.1 255.255.255.0 Router(config-if)#clock rate 64000 Router(config-if)#no shutdown

    %LINK-5-CHANGED: Interface Serial0/0/1, changed state to down Router(config-if)#exit Router(config)#router rip //進入RIP 視圖Router(config-router)#network 1.0.0.0 //發布直連網絡Router(config-router)#exit Router(config)#exit Router# %SYS-5-CONFIG_I: Configured from console by console Router#show ip route //查看路由表Codes: C - connected, S - static, I - IGRP, 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, E - EGP i - IS-IS, 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 route

    Gateway of last resort is not set

    1.0.0.0/24 is subnetted, 1 subnets C 1.1.1.0 is directly connected, FastEthernet0/0 Router#

    Router2:Router>enable Router#conf ter Enter configuration commands, one per line. End with CNTL/Z. Router(config)#int f0/0 Router(config-if)#ip add 1.1.5.2 255.255.255.0 Router(config-if)#no shutdown

    %LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up Router(config-if)#exit Router(config)#int s0/0/1 Router(config-if)#ip add 1.1.2.2 255.255.255.0 Router(config-if)#clock rate 64000 Router(config-if)#no shutdown

    %LINK-5-CHANGED: Interface Serial0/0/1, changed state to up Router(config-if)#exit Router(config)#int s0/0/0 Router(config-if)#ip add 1.1.3.1 255.255.255.0 Router(config-if)#clo rate 64000 Router(config-if)#no shutdown

    %LINK-5-CHANGED: Interface Serial0/0/0, changed state to down Router(config-if)#exit Router(config)#router rip Router(config-router)#network 1.0.0.0 Router(config-router)#exit Router(config)#exit Router# %SYS-5-CONFIG_I: Configured from console by console Router# Router#show ip route Codes: C - connected, S - static, I - IGRP, 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, E - EGP i - IS-IS, 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 route

    Gateway of last resort is not set

    1.0.0.0/24 is subnetted, 3 subnets R 1.1.1.0 [120/1] via 1.1.2.1, 00:00:11, Serial0/0/1 C 1.1.2.0 is directly connected, Serial0/0/1 C 1.1.5.0 is directly connected, FastEthernet0/0 Router#

    Router3:Router>en Router#conf ter Enter configuration commands, one per line. End with CNTL/Z. Router(config)#int f0/0 Router(config-if)#ip add 1.1.4.2 255.255.255.0 Router(config-if)#no shutdown

    %LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up Router(config-if)#exit Router(config)#int s0/0/0 Router(config-if)#ip add 1.1.6.2 255.255.255.0 Router(config-if)#clo rate 64000 Router(config-if)#no shutdown

    Router(config-if)# %LINK-5-CHANGED: Interface Serial0/0/0, changed state to up Router(config-if)#exit Router(config)#int s0/0/1 Router(config-if)#ip add 1.1.3.2 255.255.255.0 Router(config-if)#clock rate 64000 Router(config-if)#no shutdown

    %LINK-5-CHANGED: Interface Serial0/0/1, changed state to up Router(config-if)#exit Router(config)#router rip Router(config-router)# %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0/1, changed state to up Router(config-router)#network 1.0.0.0 Router(config-router)#exit Router(config)#exit Router# %SYS-5-CONFIG_I: Configured from console by console Router#show ip rou Router#show ip route Codes: C - connected, S - static, I - IGRP, 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, E - EGP i - IS-IS, 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 route

    Gateway of last resort is not set

    1.0.0.0/24 is subnetted, 6 subnets R 1.1.1.0 [120/1] via 1.1.6.1, 00:00:02, Serial0/0/0 R 1.1.2.0 [120/1] via 1.1.6.1, 00:00:02, Serial0/0/0 [120/1] via 1.1.3.1, 00:00:10, Serial0/0/1 C 1.1.3.0 is directly connected, Serial0/0/1 C 1.1.4.0 is directly connected, FastEthernet0/0 R 1.1.5.0 [120/1] via 1.1.3.1, 00:00:10, Serial0/0/1 C 1.1.6.0 is directly connected, Serial0/0/0

 

新聞資(zī)訊
聯系我(wǒ)們

聯系電話(huà):020-87518715

聯系郵箱:services@picusit.com

公司名稱:鄭州易科計算機服務有限公司

公司地址:廣州市天河區龍口西路100号中(zhōng)明大(dà)廈1601

熱線咨詢電話(huà):

020-87518715

公司地址:
廣州市天河區龍口西路100号中(zhōng)明大(dà)廈1601
手機掃碼查看更多
如有問題咨詢請及時與我(wǒ)們溝通,我(wǒ)們會爲您詳細解答!
Copyright © 鄭州易科計算機服務有限公司 地址:廣州市天河區龍口西路100号中(zhōng)明大(dà)廈1601

網站首頁

公司介紹

服務項目

成功案例

技術動态

聯系方式