RIP实验报告
一. 实验要求及分析
1. R3环回为3.3.3.0/24
模拟外网,不可操作,通过缺省路由到达
2. R2均存在两个环回,其他基于192.168.1.0/24进行划分
3. 整个网络运行RIPV2,但不能直接宣告R3的环回A5全网可达,保障更新安全,减少路由条目数量,避免环路
使用RIPv2动态获取未知网段信息,使用路由汇总,空接口,缺省路由等技术
二. 实验配置
R1
[R1]interface g 0/0/0
[R1-GigabitEthernet0/0/0]ip address 192.168.1.1 30//配置接口IP
[R1]interface LoopBack 64
[R1-LoopBack64]ip address 192.168.1.65 27//配置环回接口IP
[R1]interface LoopBack 96
[R1-LoopBack96]ip address 192.168.1.97 27//配置环回接口IP
[R1]rip//打开RIP
[R1-rip-1]version 2//使用V2版本
[R1-rip-1]network 192.168.1.0//宣告属于该网段的接口
[R1-GigabitEthernet0/0/0]rip summary-address 192.168.1.0 255.255.255.0//进入接口进行手工汇总
[R1-GigabitEthernet0/0/0]RIP authentication-mode md5 usual cipher 123456//手工认证,接口加密
[R1]ip route-static 192.168.1.0 24 NULL 0//建立空接口,防止环路
R2
[R2-rip-1]display this
[V200R003C00]
rip 1
version 2
network 192.168.1.0
return//RIP配置
R2-GigabitEthernet0/0/0]display this
[V200R003C00]
interface GigabitEthernet0/0/0
ip address 192.168.1.2 255.255.255.252
rip authentication-mode md5 usual cipher %
%
cW>ELs!7#L1T)ZB*"&i8G}b’%
%
rip summary-address 192.168.1.128 255.255.255.192
return//接口配置
- [R2-GigabitEthernet0/0/1]display this
[V200R003C00]
interface GigabitEthernet0/0/1
ip address 192.168.1.5 255.255.255.252
rip authentication-mode md5 usual cipher %
%
Lj.1C!\kbF}+U}J"2MB1G}h2%
%
rip summary-address 192.168.1.64 255.255.255.192
rip summary-address 192.168.1.128 255.255.255.192
return//接口配置
R3
[R3-rip-1]default-route originate //启用缺省路由
[R3]ip route-static 0.0.0.0 0 3.3.3.1//写入缺省路由
[R3-rip-1]display this
[V200R003C00]
rip 1
default-route originate
version 2
network 192.168.1.0
return//RIP配置
[R3-GigabitEthernet0/0/0]display this
[V200R003C00]
interface GigabitEthernet0/0/0
ip address 192.168.1.6 255.255.255.252
rip authentication-mode md5 usual cipher %
%
MG)|NJ+Kd1~DaX"%*ed1G!,-%
%
return//接口配置
2
rip authentication-mode md5 usual cipher %
%
MG)|NJ+Kd1~DaX"%*ed1G!,-%
%
return//接口配置