华为路由器RIP路由协议配置命令
RIP路由协议配置
rip 创建开启协议进程
network + ip 对指定网段接口使能RIP功能IP地址是与路由器直连的网段
debugging rip 1 查看RIP定期更新情况
terminal debugging
terminal monitor 在屏幕上显示debug信息
undo debugging rip 1undo debug all 命令关闭debug调试功能
在上面的配置基础上配置RIP2
rip 进入子视图模式
version 2 配置版本
或者直接配置
rip 1
version 2
network + ip
rip简单认证
rip authentication-mode simple huawei 在需要的路由器上配置密码要相同
配置RIPv2 MD5 密文验证
rip authentication-mode md5 usual huawei 方式使用MD5密文验证,使用通用报文格式,两端报文格式必须一致
dis default-parameter rip 查看RIP配置信息
配置RIPv2自动汇总路由(默认关闭)
方法1:
rip 1
version 2
summary always
方法2:
int + 接口
undo rip split-horizon 关闭水平分割功能
配置RIPv2手动汇总
(需停止RIPv2自动汇总功能)
int +接口
rip summary-address 3.3.0.0 255.255.252.0 手动汇总ip+掩码
配置RIP版本兼容
rip version 2 broadcast 命令路由器以广播的形式发送RIPv2报文
rip version 2 multicast 命令路由器以组播的形式发送RIPv2报文
配置RIP定时器,优先级
int + 接口
undo rip output 让路由器停止发送RIP路由更新
display rip 1 database 检查RIP发布数据库中的所有路由激活
rip
timers rip 20 120 60 设置更新报文时间为20s,超时计时器为120s,垃圾收集计时器为60s
preference 90 修改RIP协议优先级为90
配置抑制接口
(只接受RIP更新报文,不发送更新报文)
rip 1
silent-interface GigabitEthernet 0/0/0 设置要抑制的接口
配置RIP单播更新(由于配置了抑制接口,接口无法以广播或者组播的方式发送RIP更新报文)
rip 1
peer 172.16.1.100 IP地址为邻居路由器的IP地址
另一种方法(删除上面的配置)
undo rip output 禁止这个接口发送RIP报文
undo rip input 禁止这个接口接收RIP报文
RIP与不连续子网(解决不连续子网问题)
方法1给接口配置第二个IP地址,应该取配置网段的子网,适合小型网络
ip address 10.0.23.2 sub
方法2使用RIPv2,关闭自动汇总
rip
version 2
undo summary
undo rip split-horizon 关闭水平分割功能(进入接口)
rip split-horizon 开启水平分割功能
rip poison-reverse 开启毒性逆转功能
增加度量值(进入接口)
rip metricin 2 增加度量值2端口出去的跳数
rip metricout 2 增加度量值2端口进来的跳数
Rip路由引入(需保证被引入的路由条目已经存在于当前设备中)
rip
import-route direct 直连路由,一般是本地接口的地址
rip
import-route static 静态路由,是引入的你在设备上配置的静态路由。