The rip version command sets the RIP version of an interface.
The undo rip version command restores the default setting.
By default, an interface sends only RIP-1 packets, but it can receive both RIP-1 and RIP-2 packets.
Parameter | Description | Value |
---|---|---|
1 | Indicates RIP-1 packets. | - |
2 | Indicates RIP-2 packets. | - |
broadcast | Indicates that RIP-2 packets are sent in broadcast mode. | - |
multicast | Indicates that RIP-2 packets are sent in multicast mode. NOTE:
By default, RIP-2 packets are sent in multicast mode. |
- |
Usage Scenario
Precautions
You can also set a RIP version in a RIP process, but the RIP version that is set on an interface has a higher priority.
# Send RIP-2 packets in broadcast mode.
<HUAWEI> system-view [HUAWEI] interface vlanif 100 [HUAWEI-Vlanif100] rip version 2 broadcast
# Send RIP-2 packets in broadcast mode.
<HUAWEI> system-view [HUAWEI] interface gigabitethernet 0/0/1 [HUAWEI-GigabitEthernet0/0/1] undo portswitch [HUAWEI-GigabitEthernet0/0/1] rip version 2 broadcast