RIP 简单配置、路由汇总、 认证、重分布静态

RIP 简单配置、路由汇总认证、重分布静态

掌握目标
一、基本 IP 地址配置
二、配置 RIPV1
三、配置 RIPV2
四、重分布静态路由
五、手工汇总路由
六、明文与 MD5 认证
实验配置如下:
RIP 简单配置、路由汇总、 认证、重分布静态_第1张图片

一、基本配置:
R1:
interface Serial1/0/0
ip address 10.0.12.1 255.255.255.0
interface LoopBack0
ip address 10.0.1.1 255.255.255.0
R2:
interface Serial1/0/0
ip address 10.0.12.2 255.255.255.0
interface Serial2/0/0
ip address 10.0.23.2 255.255.255.0
interface LoopBack0
ip address 10.0.2.2 255.255.255.0
R3:
interface Serial2/0/0
ip address 10.0.23.3 255.255.255.0
interface LoopBack0
ip address 10.0.3.3 255.255.255.0
[R2]ping 10.0.12.1
二、配置 RIPv1 协议
R1:
[R1]rip 1 =启用 RIP 进程
[R1-rip-1]network 10.0.0.0 =宣告网络到 RIP 进程
R2:
[R2]rip
[R2-rip-1]network 10.0.0.0
R3:
[R3]rip
[R3-rip-1]network 10.0.0.0
[R1]display ip routing-table protocol rip =查看路由表中 RIP 路由
[R1]ping 10.0.23.3
debugging rip 1 =开启 RIP 调试信息,必须在用户视图开启
terminal debugging
terminal monitor
display debugging rip =查看开启 debug 功能
undo debug rip 1 ====关闭 RIP debug 功能
undo debug all ====关闭所有 debug 功能
三、配置 RIPv2 协议
[R1]rip 1
[R1-rip-1]version 2
[R2]rip 1
[R2-rip-1]version 2
[R3]rip 1
[R3-rip-1]version 2
[R1]display ip routing-table protocol rip
测试:
debugging rip 1 event
debugging rip 1 packet
undo debugging all
四、RIP 中重分布静态路由
[R3]int lo 1
[R3-LoopBack1]ip add 172.16.3.3 24
ping -c 3 172.16.3.3
[R2]ip route-static 172.16.3.0 24 10.0.23.3
[R2]rip 1
[R2-rip-1]import-route static ====RIP 进程中重分布静态路由

RIPv2路由汇总与认证

RIP 简单配置、路由汇总、 认证、重分布静态_第2张图片

一、基本配置
R3:
interface LoopBack1
ip address 172.16.0.1 255.255.255.0
interface LoopBack2
ip address 172.16.1.1 255.255.255.0
interface LoopBack3
ip address 172.16.2.1 255.255.255.0
interface LoopBack4
ip address 172.16.3.1 255.255.255.0
二、配置 RIPv2
R1:
[R1]rip 1
[R1-rip-1]version 2
[R1-rip-1]network 10.0.0.0
R2:
[R2]rip 1
[R2-rip-1]version 2
[R2-rip-1]network 10.0.0.0
R3:
[R3]rip 1
[R3-rip-1]version 2
[R3-rip-1]net 10.0.0.0
[R3-rip-1]net 172.16.0.0
R1]display ip routing-table protocol rip
三、配置手工路由汇总
[R2]int s1/0/0
[R2-Serial1/0/0]rip summary-address 172.16.0.0 255.255.0.0
测试
display ip routing-table protocol rip | in 172
四、配置明文与 MD5 认证
R1 与 R2 明文认证:
interface Serial1/0/0
rip authentication-mode simple cisco
interface Serial1/0/0
rip authentication-mode simple cisco
interface Serial2/0/0
rip authentication-mode md5 usual cisco
interface Serial2/0/0
rip authentication-mode md5 usual cisco
[R1]int s1/0/0
reset ip routing-table statistics protocol rip ====清除 RIP 路由表信息

你可能感兴趣的:(华为实验)