拓扑图
#
配置步骤
R2:
sysname R2
interface Serial4/0/0
link-protocol ppp
ip address 10.0.12.2 255.255.255.0
interface Serial4/0/1
link-protocol ppp
ip address 10.0.23.2 255.255.255.0
interface GigabitEthernet0/0/0
ip address 10.0.2.1 255.255.255.0
R3:
sysname R3
interface Serial4/0/0
link-protocol ppp
ip address 10.0.23.1 255.255.255.0
interface GigabitEthernet0/0/0
ip address 10.0.3.1 255.255.255.0
测试结果:直连的互通
#
配置RipV1
rip 1
network 10.0.0.0
测试:
debugging rip 1 ====开启RIP调试信息,必须在用户视图开启
terminal debugging
terminal monitor
display debugging rip ====查看开启debug功能
配置RipV2
rip 1
version 2
network 10.0.0.0
R1路由表:
RIP中重分布静态路由
R3中新加回环接口:
interface LoopBack0
ip address 100.0.1.1 255.255.255.255
测试R1:无法访问r3的loopback接口
[R2]中:
ip route-static 100.0.1.1 32 10.0.23.1
rip 1
import-route static
R2路由表:
R2中静态路由北RIP通告给R1了
#
汇总路由
思路:讲R3上的四条路由172.16.0.0,172.16.1.0,172.16.2.0,172.16.3.0,在R2上汇总为一条路由172.16.0.0 /16
[R2]int s1/0/0
[R2-Serial1/0/0]rip summary-address 172.16.0.0 255.255.0.0
这样R1上只有一条路由,r2,r3则是明细路由