华为路由器RIP配置命令
RIP配置1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
rip
命令用来使能RIP进程。该命令中,process-id指定了RIP进程ID。如果未指定process-id,命令将使用1 作为缺省进程ID。
version 2
使能RIPv2以支持扩展能力,比如支持VLSM、认证等。
network <network-address>
命令可用于在RIP中通告网络
rip
version2
network 10.0.0.0
rip metricin <metric value>
用于修改接口上应用的度量值。当路由器的一个接口收到路由时,路由器会首先将接口的附加度量值增加到该路由上,然后将路由加入路由表中。
interface gigabitethernet 0/0/0
rip metricin 2
rip metricout <metric value>
rip metricout用于路由器在通告RIP路由时修改路由的度量值。配置了rip metricout命令,则只应用命令中配置的度量值。
水平分割&毒性反转
interface gigabitethernet 0/0/0
rip split-horizone水平分割 默认启用
rip poison-reverse毒性反转
验证配置
display rip <process_id> interface <interface> verbose
display rip 1 interface gigabitethernet0/0/0 verbose
Poison-reverse:Enabled
Split-Horizon :Enabled
两者都显示“Enabled”时,只有“Poison-reverse”生效。
禁止/启用RIP发送RIP报文
interface gigabitethernet 0/0/0
undo rip output # 禁止发送发送报文
rip output # 启动发送发送报文
禁止/启用RIP接收RIP报文
interface gigabitethernet 0/0/0
undo rip input # 禁止接口发送报文
rip input # 启动接口发送报文
抑制端口
只接收不发送RIP报文
rip
silent-interface gigabitethernet 0/0/1
验证配置
display rip
可以比较全面的现实路由器的RIP信息
页:
[1]