rip是一種使用跳數作為度量值得動態路由協議,支持觸發更新,有兩個版本,這裡介紹version1的配置,實驗拓撲圖如下
工具/原料
多臺思科路由器
交叉線數根
方法/步驟
路由器的基本配置,為簡化實驗,不再提及,路由器命名和設置密碼的問題
Continue with configuration dialog? [yes/no]: n
Press RETURN to get started!
Router>enable
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#interface FastEthernet0/0
Router(config-if)#ip address 192.168.10.1 255.255.255.0
Router(config-if)#no shutdown
Router(config-if)#
%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up
剩下的路由器都這樣完成基本配置,
路由器15 f0/0 192.168.10.1 255.255.255.0
路由器16 f1/0 192.168.10.2 255.255.255.0
f0/0 192.168.20.1 255.255.255.0
路由器17 f1/0 192.168.20.2 255.255.255.0
f0/0 192.168.30.1 255.255.255.0
路由器18 f1/0 192.168.30.2 255.255.255.0
(ps :路由器的標號是按順序來的哦,不用和我一樣,一般是默認(0,1,2.。。。。))
開始配置rip協議嘍,路由器15
Router(config-if)#exit
Router(config)#route rip
Router(config-router)#network 192.168.20.0
Router(config-router)#network 192.168.30.0
Router(config-router)#exit
Router(config)#exit
Router#
%SYS-5-CONFIG_I: Configured from console by console
路由器16
Router(config-if)#exit
Router(config)#route rip
Router(config-router)#network
% Incomplete command.
Router(config-router)#network192.168.30.0
^
% Invalid input detected at '^' marker.
Router(config-router)#network 192.168.30.0
路由器17
Router>enable
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#route rip
Router(config-router)#network 192.168.20.0
Router(config-router)#network 192.168.30.0
Router(config-router)#
路由器18
Router>enable
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#route rip
Router(config-router)#network 192.168.30.0
Router(config-router)#