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 !!