本章简解华为路由器RIP配置方法
1.基本宣告
2.基于接口调整RIP收发报文版本
3.RIP基于接口认证
4.手动汇总RIP路由条目
拓扑图如下
宣告接口加入RIP进程:
[Huawei]rip
[Huawei-rip-1]network 1.0.0.0(华为路由不支持RIP路由宣告无类网络)
接口RIP收发报文版本号调整:
[Huawei-AR8]interface G0/0/0
[Huawei-AR8-GigabitEthernet0/0/0]rip version 2 broadcast/multicast
------当你只能调整RIP版本为Version 1的路由器时,你可以在其与高坂本RIP路由器连接的接口上,打rip version 2 bradcast命令,是接口发出的更新报文为Version 2
[Huawei-AR9]interface g0/0/0
[Huawei-AR8-GigabitEthernet0/0/0]rip version 1
------当你只能调整高版本路由器时,你可以在其与低版本RIP路由器连接的接口上,打rip version 1,使该路由器从此接口发出的RIP更新包版本为Version 1
RIP接口认证:
明文
-----rip authentication-mode simple cipher
-----rip authentication-mode simple plain
-----rip authentication-mode simple STRING<1-16>/<24,32>
Rip authentication-mode simple/md5(此处的加密方式决定发送出去的报文中,所携带的密码为明文或密文)
Rip authentication-mode simple/md5 nonstandard/usual plain/cipher(此处的加密方式决定该密码保存在配置文件中是密文或是明文)
密文
-----rip authentication-mode md5 nonstandard STRING<1-255>/<20-392>
-----rip authentication-mode md5 nonstandard cipher STRING<1-255>/<20-392>
-----rip authentication-mode md5 nonstandard plain STRING<1-255>
-----rip authentication-mode md5 nonstandard keychain STRING<1-47>
-----rip authentication-mode md5 usual STRING STRING<1-16>/<24,32>
-----rip authentication-mode md5 usual cipher STRING<1-16>/<24,32>
-----rip authentication-mode md5 usual plain STRING<1-16>
接口下RIP路由汇总
正常情况下,AR9上会有3条RIP路由,分别通往1.1.1.0/24,1.1.2.0/24,1.1.3.0/24,但是这三个网段拥有同样的下一跳,也就是12.1.1.1,同时这三个网段处于一个大网段,所以可以对着三条路由进行汇总,RIP路由的汇总,一定要在更新源路由器的出接口处,进行汇总
比如
[Huawei]interface g0/0/0
[Huawei-AR8-GigabitEthernet0/0/0]rip summary-address 1.1.0.0 255.255.252.0
完成该操作后,在AR9上查看路由表,可以看到只有1.1.0.0/22一条下一跳为12.1.1.1的路由条目