< Home

rip version

Function

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.

Format

rip version { 1 | 2 [ broadcast | multicast ] }

undo rip version

Parameters

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.

-

Views

Interface view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

The versions of the request packets and response packets vary with the configured RIP version.
  • If the version of RIP is not set, a device sends RIP-1 packets in broadcast mode and receives the RIP-1 and RIP-2 packets that are sent in broadcast mode.
  • If the RIP version is set to RIP-1, a device sends only RIP-1 packets in broadcast mode and receives the RIP-1 packets that are sent in broadcast mode.
  • If the RIP version is set to RIP-2, a device sends only RIP-2 packets in multicast mode and receives RIP-2 packets that are sent in multicast or broadcast mode.
  • If the RIP version is set to multicast RIP-2, a device sends RIP-2 packets in multicast mode and receives RIP-2 packets that are sent in multicast mode.
  • If the RIP version is set to broadcast RIP-2, a device sends RIP-2 packets in broadcast mode and receives RIP-1 and RIP-2 packets.

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.

Example

# 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
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >