RIP路由協議
------------
Router(config)#router rip
Router(config-router)#version 2
Router(config-router)#no version
Router(config-router)#network 10.0.0.0
Router(config-router)#no auto-summary //關閉自動匯總
Router(config)#interface fa0/1
Router(config-if)#ip rip send version 1 2
Router(config-if)#ip rip receive version 1 2
Router(config-if)#ip summary-address rip 172.16.0.0 255.255.0.0 //手動匯總
Router(config)#key chain Romeo //RIP鄰居驗證
Router(config-keychain)#key 1
Router(config-keychain-key)#key-string Juliet
Router(config-keychain-key)#interface fastethernet 0/0
Router(config-if)#ip rip authentication key-chain Romeo
Router(config-if)#ip rip authentication mode md5
RIP在廣播鏈路上使用單播
------------------
Router(config)# router rip
Router(config-router)# neighbor 192.168.10.3 //指定鄰居192.168.10.3用單播更新
Router(config-router)# (config-router)# passive-interface fa0/0 //把接口設為被動接口,別的鄰居如 192.168.10.4 就不會收到更新包
RIP驗證
-------
Router#debug ip rip
Router#debug ip routing
Router#show ip protocols
Router#show ip rip database
Router#show ip route
RIP控制metric
------------------
router rip
net 10.0.0.0
net 172.16.0.0
offset-list 1 in 2 serial 0 !!從serial0學到的路由度量值加上 2
!
access-list 1 permit 10.0.0.0 !!