The rip replay-protect command enables the replay-protect function.
The undo rip replay-protect command disables the replay-protect function.
By default, the replay-protect function is disabled.
Parameter | Description | Value |
---|---|---|
window-range |
Specifies the size of the connection-oriented transmission buffer. |
It is an integer ranging from 50 to 50000. The default value is 50. |
If the Identification field in the last RIP packet sent before a RIP interface goes Down is X, after the interface goes Up, the Identification field in the RIP packet sent by this interface becomes 0. If the remote end does not receive the RIP packet with the Identification field being 0, subsequent RIP packets will be discarded until the remote end receives the RIP packet with the Identification field being X+1. As a result, RIP routing information of both ends is inconsistent. To solve this problem, you need to configure the rip replay-protect command so that RIP can obtain the Identification field in the RIP packet sent before the RIP packet goes Down and increases the Identification field of the subsequently sent RIP packet by one.
Before configuring the rip replay-protect command, you need to configure the rip authentication-mode command in the RIP interface view to configure the authentication mode and authentication parameters of RIP-2.
If you configure the rip replay-protect command in the same view for multiple times, only the last configuration takes effect.
# Enable the replay-protect function on VLANIF100.
<HUAWEI> system-view
[HUAWEI] interface vlanif 100 [HUAWEI-Vlanif100] rip replay-protect
# Enable the replay-protect function on GE0/0/1.
<HUAWEI> system-view [HUAWEI] interface gigabitethernet 0/0/1 [HUAWEI-GigabitEthernet0/0/1] undo portswitch [HUAWEI-GigabitEthernet0/0/1] rip replay-protect