1、RIP基本配置
1)RIPV1版本
R1(config)#router rip //启动协议
R1(config-router)#version 1 //选择版本,若不选择,默认是升级版本1
宣告:1、激活接口 2、路由 RIP仅支持主类宣告
R1(config-router)#network 1.0.0.0
R1(config-router)#network 12.0.0.0
2)RIPv2版本
R1(config)#router rip //启动协议
R1(config-router)#version 2 //选择版本,若不选择,默认是升级版本1
R1(config-router)#no auto-summary //关闭自动汇总。(若不关闭,则在往出发路由条目,会自动按照主类进行汇总)
宣告:1、激活接口 2、路由 RIP仅支持主类宣告
R1#show ip route //查看路由表
1.0.0.0/24 is subnetted, 1 subnets
C 1.1.1.0 is directly connected, Loopback1
2.0.0.0/24 is subnetted, 1 subnets
R 2.2.2.0 [120/1] via 12.1.1.2, 00:00:26, Serial2/1
3.0.0.0/24 is subnetted, 1 subnets
R 3.3.3.0 [120/2] via 12.1.1.2, 00:00:08, Serial2/1
23.0.0.0/24 is subnetted, 1 subnets
R 23.1