[Huawei]rip 1 //启动RIP进程 [Huawei-rip-1]version 2 //选择版本(可选) [Huawei-rip-1]net 10.0.0.0(通告自然网段)
[Huawei-rip-1]summary always //使能自动汇总[V2默认开启,但不生效] [接口]undo rip split-horizon //关闭接口水平分割 [Huawei-GigabitEthernet0/0/0]rip summary-address 聚合后网络 子网掩码 //手动汇总 #接口附加度量值 [接口]rip metricin x //cost=原来的值+x [接口]rip metricout x //cost=0+x #认证 [R2-Serial1/0/0]rip authentication-mode simple huawei //明文 [R2-Serial2/0/0]rip authentication-mode md5 usual huawei //MD5
Js
#开启RIP调试 <R1>debug rip 1 <R1>terminal debugging Info: Current terminal debugging is on. <R1>terminal monitor #抑制接口(只收不发) [R1-GigabitEthernet0/0/0]undo rip output //不能使用单播通信 或 [R2-rip-1]silent-interface E0/0/0 //优先级高于前者
Js
[R2-rip-1]peer IP地址 //单播通信 [R2-rip-1]preference x //修改优先级(只在本地有效) [R2-rip-1]timers rip 20 120 60 //修改定时器 [R3]ip route-static 0.0.0.0 0 LoopBack 2 //发布默认路由 [R3-rip-1]default-route originate //不需创建默认路由,也能发布 <Huawei>reset rip 1 statistics //刷新RIP统计信息 <R1>reset ip routing-table statistics protocol rip //清除RIP学到的路由信息 [R2]undo rip 1 //删除RIP [R1]rip version2 multicase //配置版本1的也能发送RIPv2报文