No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

Command Reference

AR500, AR510, and AR530 V200R007

This document describes all the configuration commands of the device, including the command function, syntax, parameters, views, default level, usage guidelines, examples, and related commands.
Rate and give feedback :
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
RIP Configuration Commands

RIP Configuration Commands

NOTE:

Among the AR500 series routes,AR502G-L-D-H and AR502GR-L-D-H do not support RIP.

bfd all-interfaces enable (RIP)

Function

The bfd all-interfaces enable command enables BFD on all the interfaces in a RIP process.

The undo bfd all-interfaces enable command disables BFD on all the interfaces in a RIP process.

By default, BFD is disabled in a RIP process.

Format

bfd all-interfaces enable

undo bfd all-interfaces enable

Parameters

None

Views

RIP view

Default Level

2: Configuration level

Usage Guidelines

If BFD parameters are configured, but the bfd all-interfaces enable command is not configured, BFD sessions cannot be established.

NOTE:
  • The BFD priority on an interface is higher than the BFD priority on a RIP process.

  • If the rip bfd block command is configured on an interface, the bfd all-interfaces enable command cannot be used to enable BFD on the interface.

Example

# Enable BFD on all interfaces in a RIP process.

<Huawei> system-view 
[Huawei] bfd 
[Huawei-bfd] quit 
[Huawei] rip 
[Huawei-rip-1] bfd all-interfaces enable
Related Topics

bfd all-interfaces (RIP)

Function

The bfd all-interfaces command sets BFD session parameters.

The undo bfd all-interfaces command restores BFD session parameters to default values.

By default, the minimum intervals for receiving and sending BFD packets are 1000 ms and the detection time multiplier is 3.

Format

bfd all-interfaces { min-rx-interval min-receive-value | min-tx-interval min-transmit-value | detect-multiplier detect-multiplier-value } *

undo bfd all-interfaces { min-rx-interval [ min-receive-value ] | min-tx-interval [ min-transmit-value ] | detect-multiplier [ detect-multiplier-value ] } *

Parameters

Parameter Description Value
min-rx-interval min-receive-value

Specifies the minimum interval for receiving BFD packets from the peer.

The value is an integer ranging from 10 to 2000, in milliseconds. The default value is 1000 milliseconds.
min-tx-interval min-transmit-value

Specifies the minimum interval for sending BFD packets to the peer.

The value is an integer ranging from 10 to 2000, in milliseconds. The default value is 1000 milliseconds.
detect-multiplier detect-multiplier-value

Indicates the local detection multiplier.

The value is an integer that ranges from 3 to 50. The default value is 3.

Views

RIP view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

The priority of BFD configured on an interface is higher than that configured for a RIP process. If BFD is enabled on an interface, BFD sessions are established using the BFD parameters set on the interface.

Actual interval at which BFD packets are transmitted on the local device = Max { transmit-value on the local device, receive-value on the peer}.

Actual interval at which BFD packets are received on the local device = Max { transmit-value on the peer, receive-value on the local device}.

Local BFD detection time = Actual interval at which BFD packets are received on the local device x detect-multiplier-value on the peer.

Prerequisites

BFD has been enabled on all the interfaces using the bfd all-interfaces enable command in the RIP view.

Example

# Configure BFD for a RIP process and set the minimum interval for sending BFD packets to 500 ms.

<Huawei> system-view 
[Huawei] bfd 
[Huawei-bfd] quit 
[Huawei] rip 
[Huawei-rip-1] bfd all-interfaces enable
[Huawei-rip-1] bfd all-interfaces min-tx-interval 500

checkzero (RIP)

Function

The checkzero command enables the device to check the zero fields in RIP-1 packets.

The undo checkzero command disables the device from checking the zero fields in RIP-1 packets.

By default, the device checks the zero fields in RIP-1 packets.

Format

checkzero

undo checkzero

Parameters

None

Views

RIP view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

In a RIP-1 packet, the values of some fields must be zero. These fields are zero fields. After zero field check is enabled, the device checks the zero fields in the RIP-1 packets and discards the packets in which the zero field values are not 0.

The checkzero command is valid only for RIP-1 packets.

Run the undo checkzero command to reduce CPU usage if there is no zero field to check (all neighbors are trusted).

Configuration Impact

By default, devices reject all RIP-1 packets in which the zero fields are not 0.

RIP-1 implementations vary with device manufacturers. If the third-party peer device allows zero fields in RIP-1 packets to carry non-zero values, run the undo checkzero command on the local device. The undo checkzero command causes potential security risks to network, so it is not recommended.

Example

# Enable the device to check zero fields in RIP-1 packets.

<Huawei> system-view
[Huawei] rip 100
[Huawei-rip-100] checkzero

default-cost (RIP)

Function

The default-cost command changes the default metric of imported routes.

The undo default-cost command restores the default metric of imported routes.

By default, the metric of imported routes is 0.

Format

default-cost cost

undo default-cost

Parameters

Parameter Description Value
cost Specifies the default metric of imported routes. The value is an integer that ranges from 0 to 15. The default value is 0.

Views

RIP view

Default Level

2: Configuration level

Usage Guidelines

You can run one of the following commands to set the metric of imported routes. The following commands are listed in descending order of priorities.

  • Run the apply cost command to set the metric of imported routes.

  • Run the import-route (RIP) command to set the metric of imported routes.

  • Run the default-cost (RIP) command to set the default metric of imported routes.

Example

# Set the default metric for imported routes to 2.

<Huawei> system-view
[Huawei] rip 100
[Huawei-rip-100] default-cost 2

default-route originate

Function

The default-route originate command configures RIP to originate a default route or advertise the default route in the routing table to neighbors.

The undo default-route originate command restores the default configuration.

By default, the device does not advertise the default route to neighbors.

Format

default-route originate [ cost cost | tag tag | { { match default | route-policy route-policy-name [ advertise-tag ] } [ avoid-learning ] } ]*

undo default-route originate

Parameters

Parameter Description Value
cost cost Specifies the metric of the default route. The value is an integer that ranges from 0 to 15. The default value is 0.
tag tag Specifies the tag value of the default route. Route tags classify routes as required. The same type of routes has the same tags. Routes are managed and controlled based on the tag by using the routing policy. The value is an integer that ranges from 0 to 65535. The default value is 0.
match default Indicates that the device advertises the default route imported from another routing protocol or RIP process in the routing table to neighbors. -
avoid-learning Disables RIP from importing default routes. If a default route in active state already exists in the routing table, the default route is set to inactive after this parameter is used. -
route-policy route-policy-name Specifies the name of the routing policy. RIP will originate the default route only if route permitted by the route policy is present as active in the routing table. The name is a string of 1 to 40 case-sensitive characters, with spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string.
advertise-tag Specifies inherit the tag value applied through route-policy while advertising default route. -

Views

RIP view

Default Level

2: Configuration level

Usage Guidelines

In a routing table, the default route is a route to the network 0.0.0.0 (with the mask being 0.0.0.0). You can check whether the default route is configured by using the display ip routing-table command. When the destination address of a packet does not match any destination address in the routing table, the industrial switch router uses a default route to forward this packet.

Example

# Set the metric for the default route to 2.

<Huawei> system-view
[Huawei] rip 100
[Huawei-rip-100] default-route originate cost 2

# Set the metric for the default route in routing table to 2.

<Huawei> system-view
[Huawei] rip 100
[Huawei-rip-100] default-route originate match default cost 2

# Configure the device to originate the default route, which matches the route-policy named filter, and set the metric to 15.

<Huawei> system-view
[Huawei] rip 100
[Huawei-rip-100] default-route originate route-policy filter cost 15

# Prevent RIP from importing default routes from another routing protocol or RIP processes.

<Huawei> system-view
[Huawei] rip 100
[Huawei-rip-100] default-route originate match default avoid-learning 

description (RIP)

Function

The description command configures a description for a RIP process.

The undo description command deletes the description of a RIP process.

By default, there is no description for a RIP process.

Format

description text

undo description

Parameters

Parameter Description Value
text Specifies a description for a RIP process. It is a string of 1 to 80 case-sensitive characters. Spaces are supported.

Views

RIP view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

By configuring descriptions for RIP processes, you can easily identify RIP processes.

Configuration Impact

If the description command is run multiple times, only the latest configuration takes effect.

Example

# Configure a description for RIP process 100.

<Huawei> system-view
[Huawei] rip 100
[Huawei-rip-100] description this process configure the poison reverse process

display default-parameter rip

Function

The display default-parameter rip command displays the default RIP configuration.

Format

display default-parameter rip

Parameters

None

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

Usage Scenario

After the default RIP configuration is modified, running the display default-parameter rip command still displays the default configuration during RIP initialization.

Example

# Display the default RIP configuration.

<Huawei> display default-parameter rip
                                                                                
--------------------------------------------                                    
 Protocol Level Default Configurations                                          
--------------------------------------------                                    
       RIP version   : 1                                                        
       Preference    : 100                                                      
       Checkzero     : Enabled                                                  
       Default-cost  : 0                                                        
       Auto Summary  : Enabled                                                  
       Host-route    : Enabled                                                  
       Maximum Balanced Paths : 8                                               
       Update time   : 30 sec              Age time : 180 sec                   
       Garbage-collect time : 120 sec                                           
       Default-route     : Disabled                                             
       Verify-source     : Enabled                                              
       Graceful restart  : Disabled                                             
--------------------------------------------                                    
 Interface Level Default Configurations                                         
--------------------------------------------                                    
  Metricin                : 0                                                   
  Metricout               : 1                                                   
  Input Packet Processing : Enabled                                             
  Output Packet Processing: Enabled                                             
  Poison Reverse          : Disabled                                            
  Replay Protect          : Disabled                                            
  Split Horizon                                                                 
   For Broadcast and P2P Interfaces :  Enabled                                  
   For NBMA Interfaces              :  Disabled                                 
  Packet Transmit Interval          :  200 msecs                                
  Packet Transmit Number            :  50                                       
  RIP Protocol Version              :  RIPv1 Compatible (Non-Standard)          
Table 8-1  Description of the display default-parameter rip command output

Item

Description

Protocol Level Default Configurations

Default RIP protocol-level configuration.

RIP version

Default global RIP version.

Preference

Default RIP preference.

Checkzero

Whether zero fields in RIP-1 packets are checked by default.

Default-cost

Default metric of routes imported from other routing protocols.

Auto Summary

Whether RIP summarization is enabled by default.

Host-route

Whether host routes are added to routing tables by default.

Maximum Balanced Paths

Default maximum number of equal-cost routes for load balancing.

Update time

Default interval for sending Update packets.

Age time

Default aging time of RIP routes.

Garbage-collect time

Default Garbage-collect time of RIP routes.

Default-route

Whether the default route is used if no entries in the routing table match packets.

Verify-source

Whether source address check is enabled by default.

Graceful restart

Whether RIP GR is enabled by default.

Interface Level Default Configurations

Default RIP configuration on the interface.

Metricin

Default metric added to routes when RIP packets are received.

Metricout

Default metric added to routes when RIP packets are sent.

Input Packet Processing

Whether an interface is allowed to receive RIP packets by default.

Output Packet Processing

Whether an interface is allowed to send RIP packets by default.

Poison Reverse

Whether poison reverse is enabled by default.

Replay Protect

Whether replay-protect is enabled by default.

Split Horizon

Whether split horizon is enabled for the following interfaces:
  • Broadcast and P2P interfaces

  • NBMA interfaces

Packet Transmit Interval

Default interval for forwarding packets, in milliseconds.

Packet Transmit Number

Default number of forwarded packets.

RIP Protocol Version

Default RIP version on the interface.

display rip

Function

The display rip command displays the status and configuration of a RIP process.

Format

display rip [ process-id | vpn-instance vpn-instance-name ]

Parameters

Parameter Description Value
process-id Displays the status and configuration of a specified RIP process. The value is an integer that ranges from 1 to 65535.
vpn-instance vpn-instance-name Displays the status and configuration of a RIP process with the specified VPN instance. The value is a string of 1 to 31 case-sensitive characters, spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string.

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

None

Example

# Display the status and configuration of a RIP process. The command output shows that two VPN instances are running. One is a public instance and another one is a VPN instance named VPN-Instance-1.

<Huawei> display rip
Public VPN-instance
    RIP process : 34
       RIP version   : 1
       Preference    : 100
       Checkzero     : Enabled
       Default-cost  : 1
       Summary       : Disabled
       Host-route    : Enabled
       Maximum number of balanced paths : 8
       Update time   : 30 sec    Age time  : 180 sec
       Suppress time : 0 sec   Garbage-collect time : 120 sec
       Graceful restart  : Disabled
       BFD               : Disabled
       Silent-interfaces : None
       Default-route     : Disabled
       Verify-source     : Enabled
       Networks          : 10.0.0.0
       Configured peers             : None
       Number of routes in database : 5
       Number of interfaces enabled : 3
       Triggered updates sent       : 0
       Number of route changes      : 0
       Number of replies to queries : 0
       Number of routes in ADV DB   : 14
Private VPN-instance name : VPN-Instance-1
    RIP process: 150
       Rip version   : 2
       Preference    : 120
       Checkzero     : Enabled
       Default-cost  : 4
       Summary       : Enabled
       Host-route    : Enabled
       Maximum number of balanced paths: 8
       Update time   : 30 sec    Age time  : 180 sec
       Suppress time : 0 sec   Garbage-collect time : 120 sec
       Graceful restart  : Disabled
       BFD               : Disabled
       Silent-interfaces : None
       Default-route : Disabled
       Verify-source : Enabled
       Networks      : 10.0.0.0
       Configured peers             : None
       Number of routes in database : 4
       Number of interfaces enabled : 3
       Triggered updates sent       : 0
       Number of route changes      : 25
       Number of replies to queries : 4
       Number of routes in ADV DB   : 14
  Total count for 2 process :
       Number of routes in database : 3
       Number of interfaces enabled : 2
       Number of routes sendable in a periodic update : 6
       Number of routes sent in last periodic update : 4 
Table 8-2  Description of the display rip command output

Item

Description

RIP process

Running RIP process. To create a RIP process, run the rip command.

RIP version

Global RIP version. To set the RIP version, run the version command.

Preference

RIP preference. To set the RIP preference, run the preference command.

Checkzero

Whether zero fields in RIP-1 packets are checked. To check zero fields in RIP-1 packets, run the checkzero command.

Default-cost

Default metric for the routes imported from other routing protocols. To set the default metric, run the default-cost command.

Summary

Whether RIP summarization is enabled. To enable RIP summarization, run the summary command.

Host-route

Whether host routes are added to routing tables. To add host routes to routing tables, run the host-route command.

Maximum number of balanced paths

Maximum number of equal-cost routes for load balancing. To set the maximum number of equal-cost routes, run the maximum load-balancing command.

Update time

Interval for sending RIP Update packets. To set the interval for sending RIP Update packets, run the timers rip command.

Age time

Aging time of RIP routes. To set the RIP aging time, run the timers rip command.

Garbage-collect time

Garbage-collect time of RIP routes. To set the Garbage-collect time, run the timers rip command.

Graceful restart

Whether graceful restart is enabled for RIP routes.

BFD

Whether RIP is associated with BFD.

Silent-interfaces

Suppressed RIP interface, which only receive but does not send RIP packets. To specify the suppressed interface, run the silent-interface command.

Default-route

Whether RIP originates default routes. To configure RIP to originate default routes, run the default-route originate command.

Verify-source

Whether the source addresses of received RIP Update packets are checked. To check the source addresses of received RIP Update packets, run the verify-source command.

Networks

Network segment running RIP. To enable RIP for a network segment, run the network command.

Configured peers

RIP neighbors. To configure a RIP neighbor, run the peer command.

Number of routes in database

Number of routes in the RIP database.

Number of interfaces enabled

Number of interfaces running RIP.

Triggered updates sent

Number of RIP packets triggering update.

Number of route changes

Number of changed routes in the RIP database.

Number of replies to queries

Number of response packets to RIP requests.

Number of routes in ADV DB

Number of routes in each Update packet.

Number of routes sendable in a periodic update

Number of routes sent in each Update interval.

Number of routes sent in last periodic update

Number of routes sent in last Update interval.

display rip bfd session

Function

The display rip bfd session command displays information about BFD sessions.

Format

display rip process-id bfd session { interface interface-type interface-number | neighbor-id | all }

Parameters

Parameter Description Value
process-id

Specifies the ID of a RIP process.

The value is an integer ranging from 1 to 65535.
interface interface-type interface-number

Specifies the type and number of the interface on which the BFD session is configured.

-
neighbor-id

Specifies the RIP neighbor ID on which the BFD session is configured.

The value is in dotted decimal notation.
all

Displays information about BFD sessions established on all BFD-enabled interfaces in the RIP process.

-

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

The display rip bfd session command can be used to view the following information in a RIP process:

  • BFD sessions of a specified process

  • BFD sessions on a specified interface

  • BFD sessions on a specified neighbor

Example

# Display information about BFD sessions in all RIP processes with IDs of 1.
<Huawei> display rip 1 bfd session all
 LocalIp      :10.1.0.1         RemoteIp :10.1.0.2         BFDState  :Up       
 TX           :1000             RX       :1000             Multiplier:3       
 BFD Local Dis:8192             Interface:GigabitEthernet1/0/0                    
 Diagnostic Info: No diagnostic information                               
 LocalIp      :10.2.0.1         RemoteIp :10.2.0.2         BFDState  :Up       
 TX           :1000             RX       :1000             Multiplier:3       
 BFD Local Dis:8193             Interface:GigabitEthernet2/0/0                    
 Diagnostic Info: No diagnostic information                               
Table 8-3  Description of the display rip bfd session all command output

Item

Description

LocalIp

Local IP address

RemoteIp

Remote IP address

BFDState

A BFD session status can be either Up or Down.

TX

Minimum interval at which BFD packets are sent

RX

Minimum interval at which BFD packets are received

Multiplier

Remote detection multiplier

BFD Local Dis

Local discriminator dynamically assigned by BFD

Interface

Local interfaces on which BFD sessions are configured

Diagnostic Info

Diagnostic information

display rip database

Function

The display rip database command displays all the active routes in the RIP database. These routes are sent in RIP Update packets.

Format

display rip process-id database [ verbose ]

Parameters

Parameter Description Value
process-id Specifies the ID of a RIP process. The value is an integer ranging from 1 to 65535.
verbose Displays detailed information about the routes in the RIP database. -

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

None

Example

# Display the RIP database.
<Huawei> display rip 100 database
---------------------------------------------------
Advertisement State : [A] - Advertised
                      [I] - Not Advertised/Withdraw
---------------------------------------------------
   10.0.0.0/8, cost 5, ClassfulSumm
      10.8.8.8/32, cost 5, [A], nexthop 10.1.1.2
   172.16.0.0/8, cost 7, ClassfulSumm
      172.16.9.9/32, cost 7, [A], Imported
Table 8-4  Description of the display rip database command output

Item

Description

Advertisement State

Route status.
  • [A]: Advertised
  • [I]: Not Advertised/Withdraw

ClassfulSumm

Classful route summarization.

cost

Link cost of a specified interface.

nexthop

Next-hop IP address.

Imported

Routes imported from other routing protocols.

display rip graceful-restart

Function

The display rip graceful-restart command displays the GR status of RIP.

Format

display rip process-id graceful-restart [ verbose ]

Parameters

Parameter Description Value
process-id Specifies the ID of a RIP process. The value is an integer ranging from 1 to 65535.
verbose Displays detailed information about GR status. -

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

After receiving the GR abort notification from the helper or detecting a network topology change, the restarter stops the GR process.

Example

# Display the GR status in RIP process 1.

<Huawei> display rip 1 graceful-restart
Restart mode     : Restarting 
Restart status   : In Progress - Waiting for updates
Last complete reason : None
Update progress summary: 
------------------------
Restart capable peers  : 0 
 Completed: 0    Inprogress: 0
Restart incapable peers: 1
 Completed: 0    Inprogress: 1          
Update period finishes in 293 seconds 
Table 8-5  Description of the display rip graceful-restart command output

Item

Description

Restart mode

Role of a industrial switch router:
  • Restarting: indicates the restarter.
  • Helper: indicates the helper.
  • None: indicates a common industrial switch router that does not participate in GR.

Restart status

GR status:
  • In Progress - Waiting for updates: indicates that the industrial switch router is waiting for Update packets.
  • In Progress - Calculating active routes: indicates that the industrial switch router is calculating RIP routes.
  • Aborted - Calculating active routes: indicates that the route exits from GR abnormally.
  • GR completed: indicates that GR is complete.

Last complete reason

Reason that the industrial switch router exits from GR for the last time:
  • Unknown: indicates an unknown reason.
  • Abort: indicates that the industrial switch router exits from GR abnormally.
  • Period Expired: indicates that GR period expires.
  • Successful: indicates that the industrial switch router exits from GR normally.
  • None: indicates that the industrial switch router does not perform GR.

Update progress summary

Title bar indicating the updated RIP progress summary

Restart capable peers

Number of neighbors that help the local industrial switch router to perform GR

Completed

Number of neighbors that have sent all Update packets

Inprogress

Number of neighbors that have not sent all Update packets

Restart incapable peers

Number of neighbors that cannot help the local industrial switch router to perform GR

Update period finishes in 293 seconds

Time to finish GR: 293 seconds

display rip interface

Function

The display rip interface command displays information about RIP interfaces.

Format

display rip process-id interface [ interface-type interface-number ] [ verbose ]

Parameters

Parameter Description Value
process-id Specifies the ID of a RIP process. The value is an integer ranging from 1 to 65535.
interface-type interface-number Specifies the type and the numberof an interface. -
verbose Displays detailed information about a RIP interface. -

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

The display rip interface command output displays the configuration and operation status of RIP, which facilitate fault location and configuration verification.

Example

# Display information about RIP on GE0/0/1.

<Huawei> display rip 1 interface gigabitethernet 0/0/1
 --------------------------------------------------------------------------
 Interface                 IP Address      State    Protocol            MTU
 --------------------------------------------------------------------------
 GE0/0/1                   10.1.1.2        UP       RIPv1 Compatible    500
Table 8-6  Description of the display rip interface command output

Item

Description

Interface

RIP-enabled interfaces

IP Address

IP address of the interface

State

Status of the interface:
  • UP

  • DOWN

Protocol

Version of RIP running on the interface:
  • RIPv1 Compatible
  • RIPv2 Multicast
  • RIPv2 Broadcast

MTU

MTU value of the link

# Display detailed information about RIP on GE0/0/1.

<Huawei> display rip 1 interface gigabitethernet 0/0/1 verbose
 GigabitEthernet0/0/1 (10.1.1.1)
  State    :   UP            MTU : 500
  Metricin : 0        
  Metricout : 1
  Input    : Enabled         Output : Enabled
  Protocol : RIPv1 Compatible (Non-Standard)
  Send version     : RIPv1 Packets
  Receive version  : RIPv1 Packets, RIPv2 Multicast and Broadcast Packets
  Poison-reverse                : Disabled
  Split-Horizon                 : Enabled
  Authentication type           : None
  Replay Protection   : Disabled
  BFD                 : Enabled (Static)
  Transmit-Interval   : 1000 ms
  Receive-Interval    : 1000 ms
  Detect-Multiplier   : 3
  Summary Address (es):  10.1.0.0/16 
Table 8-7  Description of the display rip interface verbose command output

Item

Description

State

Status of the interface:
  • UP

  • DOWN

MTU

Maximum Transmission Unit

Metricin

Metric that is added to the route when the interface receives a RIP packet

Metricout

Metric that is added to the route when the interface sends a RIP packet

Input

Whether receiving packets is enabled

Output

Whether sending packets is enabled

Protocol

Protocol running on the interface:
  • RIPv1 Compatible (Non-Standard)

  • RIPv1

  • RIPv2 Multicast

  • RIPv2 Broadcast

Send version

Type of packets sent on the interface:
  • RIPv1 packets

  • RIPv2 Multicast Packets

  • RIPv2 Broadcast Packets

Receive version

Type of packets received on the interface:
  • RIPv1 packets

  • RIPv2 Multicast and Broadcast Packets

Poison-reverse

Whether poison reverse is enabled on the interface

Split-Horizon

Whether split horizon is enabled on the interface

Authentication type

Authentication type configured on the interface

Replay Protection

Whether replay-protect is enabled on the interface

BFD

Whether BFD is enabled on the interface, including :
  • Enabled (Dynamic) : Indicates dynamic BFD is enabled on the interface.

  • Blocked: Indicates BFD is blocked on the interface.

Transmit-Interval

Interval for sending BFD packets to the peer on the interface

Receive-Interval

Interval for receiving BFD packets from the peer on the interface

Detect-Multiplier

BFD detect multiplier value configured on the interface

Summary Address (es)

Summary address

Related Topics

display rip neighbor

Function

The display rip neighbor command displays information about RIP neighbors.

Format

display rip process-id neighbor [ verbose ]

Parameters

Parameter Description Value
process-id Specifies the ID of a RIP process. The value is an integer ranging from 1 to 65535.
verbose Displays detailed information about a RIP neighbor. -

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

None

Example

# Display information about the neighbor in RIP process 1.

<Huawei> display rip 1 neighbor
----------------------------------------------------------------
 IP Address      Interface                 Type   Last-Heard-Time
----------------------------------------------------------------
 10.1.1.1        GigabitEthernet1/0/0      RIP    0:0:7
 Number of RIP routes:1
Table 8-8  Description of the display rip neighbor command output

Item

Description

IP Address

IP address of the neighboring interface

Interface

Interface type

Type

Protocol used to establish adjacencies with neighbors

Last-Heard-Time

Time since the last time packets are received from neighbors

Number of RIP routes

Number of RIP routes

# Display detailed information about the neighbor in RIP process 1.

<Huawei> display rip 1 neighbor verbose
----------------------------------------------------------------
 IP Address      Interface               Type   Last-Heard-Time
----------------------------------------------------------------
 10.1.1.1        GigabitEthernet1/0/0    RIP    0:0:17
   Number of Active routes       : 1
   Number of routes in garbage   : 0
   Last Received Sequence Number : 0x0
Table 8-9  Description of the display rip neighbor verbose command output

Item

Description

Number of Active routes

Number of routes in the active state

Number of routes in garbage

Number of routes in the garbage state

Last Received Sequence Number

Sequence number of last received packet from neighbor

Related Topics

display rip neighbor last-nbr-down

Function

The display rip neighbor last-nbr-down command displays information about the last neighbor that goes Down in a RIP process.

Format

display rip process-id neighbor last-nbr-down

Parameters

Parameter Description Value
process-id

Specifies the ID of a RIP process.

The value is an integer ranging from 1 to 65535.

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

Usage Scenario

The display rip neighbor last-nbr-down command can be used to view information about the last 10 RIP neighbor that goes down and the reason why the neighbor goes down.

Example

# View information about the last neighbor that goes Down in a RIP process.

<Huawei> display rip 1 neighbor last-nbr-down
 Neighbor IP Address              : 10.2.2.2
 Interface                        : GigabitEthernet1/0/0
 Reason for Neighbor down         : Interface Down
 Time at which neighbor went down : 2011-06-02 11:53:50
Table 8-10  Description of the display rip neighbor last-nbr-down command output

Item

Description

Neighbor IP Address

IP address of a neighbor

Interface

Interface connected to a neighbor

Reason for Neighbor down

Reason that a neighbor goes Down

Time at which neighbor went down

Time when a neighbor goes Down

display rip route

Function

The display rip route command displays all the RIP routes that are learned from other industrial switch routers and view the values of different timers related to each route.

Format

display rip process-id route

Parameters

Parameter Description Value
process-id Specifies the ID of a RIP process. The value is an integer ranging from 1 to 65535.

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

After a RIP process is enabled on all devices that need to run RIP and the network command is run to enable RIP on the related network segment, the display rip route command can be used to view RIP routing information.

Example

# Display all the RIP routes and the values of different timers related to each route.

<Huawei> display rip 1 route
 Route Flags: R - RIP
              A - Aging, G - Garbage-collect 
 --------------------------------------------------------------------------
 Peer 192.168.5.1  on GigabitEthernet0/0/1
      Destination/Mask        Nexthop     Cost   Tag     Flags   Sec
       172.16.0.0/16         192.168.5.1    1    0       RA      15
     192.168.14.0/24         192.168.5.1    2    0       RA      15
Table 8-11  Description of the display rip route command output

Item

Description

Destination/Mask

Destination IP Address and its mask value

Nexthop

Next hop of the route

Cost

Metric value of the route

Tag

Tag that is used to differentiate internal RIP routes from external routes

  • 0:indicates that a RIP route is internal route.
  • 1:indicates that a RIP route is external route.

Flags

First character indicating that the route is a RIP or TRIP route

Second character indicating the status of the route

  • RA: indicates that a RIP route is active.
  • RG: indicates that a RIP route is inactive and that the Garbage-Collect timer has been started.

Sec

Time during which a route remains in a specific state

display snmp-agent trap feature-name rip all

Function

The display snmp-agent trap feature-name rip all command displays all trap messages of the RIP module.

Format

display snmp-agent trap feature-name rip all

Parameters

None

Views

All views

Default Level

3: Management level

Usage Guidelines

The Simple Network Management Protocol (SNMP) is a standard network management protocol widely used on TCP/IP networks. It uses a central computer (a network management station) that manages network elements through network management software. The management agent on the network element automatically reports trap messages to the network management station. After that, the network administrator immediately takes measures to resolve network problems.

To check whether the trap functions of the RIP module are enabled, run the display snmp-agent trap feature-name rip all command.

Example

# Display all trap messages of the RIP module.

<Huawei> display snmp-agent trap feature-name rip all
------------------------------------------------------------------------------
Feature name: rip
Trap number : 2
------------------------------------------------------------------------------
Trap name                       Default switch status   Current switch status
hwRip2DBOverFlow                off                     on
hwRip2DBOverFlowResume          off                     on
Table 8-12  Description of the display snmp-agent trap feature-name rip all command output

Item

Description

Feature name

Name of the feature.

Trap number

Number of traps.

Trap name

Name of the trap:

  • hwRip2DBOverFlow: is sent when the number of routes in the RIP database reaches the threshold.
  • hwRip2DBOverFlowResume: is sent when the number of routes in the RIP database falls below the threshold.

Default switch status

Default trap function status:

  • on: The trap function is enabled.
  • off: The trap function is disabled.

Current switch status

Current trap function status:

  • on: The trap function is enabled.
  • off: The trap function is disabled.

display rip statistics interface

Function

The display rip statistics interface command displays statistics on a RIP interface, including the number of packets sent or received on the interface.

Format

display rip process-id statistics interface { all | interface-type interface-number [ verbose | neighbor neighbor-ip-address ] }

Parameters

Parameter Description Value
process-id Specifies the ID of a RIP process. The value is an integer ranging from 1 to 65535.
all Displays the statistics of all interfaces. -
interface-type interface-number Specifies the type and number of an interface. -
verbose Displays detail information about interface statistics. -
neighbor neighbor-ip-address Specifies the IP address of a neighbor. The value is in dotted decimal notation.

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

None

Example

# Display statistics on GE0/0/1 in RIP process 1.

<Huawei> display rip 1 statistics interface gigabitethernet 0/0/1
GigabitEthernet0/0/1(10.0.0.11)
Statistical information          Last min     Last 5 min    Total
------------------------------------------------------------------
Periodic updates sent            5            23             259
Triggered updates sent           5            30             408
Response packets sent            10           34             434
Response packets received        15           38             467
Response packets ignored         0            0              0
Request packets sent             1            3              8
Request packets received         4            20             40
Request packets ignored          0            0              0
Bad packets received             0            0              0
Routes received                  0            0              0
Routes sent                      0            0              0
Bad routes received              0            0              0
Packet authentication failed     0            0              0
Packet send failed               0            0              0
Table 8-13  Description of the display rip statistics interface command output

Item

Description

Statistical information

Packet type

Last min

Statistics within the last 1 minute

Last 5 min

Statistics within the last 5 minutes

Total

Total number of packets

Periodic updates sent

Number of periodic Update packets that are sent on the interface

Triggered updates sent

Number of triggered Update packets that are sent on the interface

Response packets sent

Number of RIP Response packets that are sent on the interface

Response packets received

Number of RIP Response packets that are received on the interface

Response packets ignored

Number of RIP Response packets that are ignored on the interface

Request packets sent

Number of RIP Request packets that are sent on the interface

Request packets received

Number of RIP Request packets that are received on the interface

Request packets ignored

Number of RIP Request packets that are ignored on the interface

Bad packets received

Number of received packets that cannot be parsed correctly

Routes received

Number of received routes

Routes sent

Number of sent routes

Bad routes received

Number of received routes that cannot be parsed correctly

Packet authentication failed

Number of packets that fail to pass authentication

Packet send failed

Number of RIP packets that fail to be sent

filter-policy export (RIP)

Function

The filter-policy export command configures egress filtering policy for RIP routes.

The undo filter-policy export command deletes the filtering policy.

By default, no filtering policy is configured.

Format

filter-policy { acl-number | acl-name acl-name | ip-prefix ip-prefix-name } export [ protocol [ process-id ] | interface-type interface-number ]

undo filter-policy [ acl-number | acl-name acl-name | ip-prefix ip-prefix-name ] export [ protocol [ process-id ] | interface-type interface-number ]

Parameters

Parameter Description Value
acl-number Specifies the number of the basic ACL that is used to filter the destination addresses of routes. The value is an integer ranging from 2000 to 2999.
acl-name acl-name Specifies the ACL filtering route destination addresses. The value is a string of 1 to 32 case-sensitive characters without spaces. The value must start with a letter (a to z or A to Z, case sensitive).
ip-prefix ip-prefix-name Specifies the name of the IP prefix list that is used to filter the destination addresses of routes. The name is a string of 1 to 169 case-sensitive characters, with spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string.
protocol process-id Specifies the name of the routing protocol that exports the routes and the protocol process ID.

The imported route type can be static, direct, rip, ospf, bgp, unr and isis. The process ID must be specified when routes are imported from isis, rip or ospf.

The value is an integer that ranges from 1 to 65535.
interface-type interface-number Specifies type and number of the interface based on which routes are filtered. -

Views

RIP view

Default Level

2: Configuration level

Usage Guidelines

Only filtered routes can be added to routing tables and advertised in Update packets.

When you remove an interface-based filtering policy, you must specify interface-type interface-number in the undo filter-policy export command. The policy on only one interface can be deleted each time.

This command runs in the RIP view. If the filtering policy is based on interfaces or protocols, each interface or protocol can be configured with only one filtering policy. If the interface or protocol is not specified, a global filtering rule is configured. Only one global filtering rule can be configured each time. If you run the command again when a global rule exists, the new policy overwrites the old one.

Example

# Filter the imported static routes based on the IP prefix list named abc. Then, only the routes that match the filtering policy are added into the RIP routing table and then sent through RIP Update packets.

<Huawei> system-view
[Huawei] rip 100
[Huawei-rip-100] filter-policy ip-prefix abc export static

# Filter the routes imported from IS-IS process 1 based on ACL 2002. Only the routes that match the filtering policy are added into the RIP routing table and then sent through RIP Update packets.

<Huawei> system-view
[Huawei] rip 100
[Huawei-rip-100] filter-policy 2002 export isis 1
Related Topics

filter-policy import (RIP)

Function

The filter-policy import command filters the received RIP routes.

The undo filter-policy import command cancels route filtering.

By default, no filtering policy is configured.

Format

filter-policy { acl-number | acl-name acl-name | ip-prefix ip-prefix-name [ gateway ip-prefix-name ] } import [ interface-type interface-number ]

filter-policy gateway ip-prefix-name import

undo filter-policy [ acl-number | acl-name acl-name | ip-prefix ip-prefix-name [ gateway ip-prefix-name ] ] import [ interface-type interface-number ]

undo filter-policy [ gateway ip-prefix-name ] import

Parameters

Parameter Description Value
acl-number Specifies the number of the basic ACL that is used to filter the destination addresses of routes. The value is an integer ranging from 2000 to 2999.
acl-name acl-name Specifies the ACL filtering route destination addresses. The value is a string of 1 to 32 case-sensitive characters without spaces. The value must start with a letter (a to z or A to Z, case sensitive).
interface-type interface-number Indicates the type and the number of the interface based on which routes are filtered. -
ip-prefix Filters routes by using the IP prefix list. -
ip-prefix-name Specifies the address prefix list used to filter route destination addresses. The name is a string of 1 to 169 case-sensitive characters, with spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string.
gateway Filters routes based on the gateway. -

Views

RIP view

Default Level

2: Configuration level

Usage Guidelines

The filter-policy import command filters received RIP routes, including:

  • Filtering a specified route in the packet

  • Not monitoring the Update packets from the device

To cancel route filtering, run the undo filter-policy import command. When you remove an interface-based filtering policy, you must specify interface-type interface-number. The policy on only one interface can be deleted each time.

This command runs in the RIP view. If the filtering policy is based on interfaces, each interface can be configured with only one filtering policy. If the interface is not specified, a global filtering policy is configured. Only one global filtering policy can be configured. If you run the command again when a global policy exists, the new policy overwrites the old one.

Example

# Filter the RIP Update packets that are received from all the interfaces according to the IP prefix list named abc.

<Huawei> system-view
[Huawei] rip 100
[Huawei-rip-100] filter-policy ip-prefix abc import

graceful-restart (RIP)

Function

The graceful-restart command enables RIP GR on the restarter.

The undo graceful-restart command disables RIP GR on the restarter.

By default, RIP GR is disabled.

Format

graceful-restart [ period period | wait-time time | planned-only time ] *

undo graceful-restart

Parameters

Parameter Description Value
period period Specifies the period of GR. It is an integer ranging from 30 to 3600, in seconds. The default value is 180 seconds.
wait-time time Specifies the period of GR performed between the restarter and the neighbors that do not support GR. The value of wait-time time cannot be greater than the value of period period. It is an integer ranging from 1 to 3600, in seconds. The default value is 45 seconds.
planned-only time Specifies the period of GR performed between the restarter and the neighbors that support GR. It is an integer ranging from 5 to 3600, in seconds. The default value is 60 seconds.

Views

RIP view

Default Level

2: Configuration level

Usage Guidelines

Planned GR indicates the master/slave switchover triggered through the command. Unplanned GR indicates the master/slave switchover triggered because of a fault.

When most industrial switch routers on a network do not support RIP GR, it is recommended to set wait-time time to a greater value. This ensures that the restarter has enough time to learn correct routes.

If the restart industrial switch router completes GR before the period specified by period period expires, the restart industrial switch router automatically exits from GR. If the restart industrial switch router does not complete GR after the period specified by period period expires, the restart industrial switch router is forced to exit from GR.

If the period of GR performed between the restarter and the neighbors that do not support GR depends on wait-time, the restarter does not exit from GR regardless of whether GR is finished within wait-time. After wait-time expires, however, the restarter is forced to exit from GR.

Example

# Enable RIP GR and set the GR period to 200s.

<Huawei> system-view
[Huawei] rip 1
[Huawei-rip-1] graceful-restart period 200

host-route

Function

The host-route command adds host routes with 32 bits into the routing table.

The undo host-route command disables host routes with 32 bits from being added into the routing table.

By default, host routes can be added into the routing table.

Format

host-route

undo host-route

Parameters

None

Views

RIP view

Default Level

2: Configuration level

Usage Guidelines

This command is valid only in RIP-1.

Example

# Add host routes into the routing table.

<Huawei> system-view
[Huawei] rip 1
[Huawei-rip-1] host-route
Related Topics

import-route (RIP)

Function

The import-route command configures RIP to import routes from other routing protocols.

The undo import-route command disables RIP from importing routes from other routing protocols.

By default, RIP does not import routes from other routing protocols.

Format

import-route bgp [ permit-ibgp ] [ cost { cost | transparent } | route-policy route-policy-name ] *

import-route { { static | direct | unr } | { { rip | ospf | isis } [ process-id ] } } [ cost cost | route-policy route-policy-name ] *

undo import-route { { static | direct | bgp | unr } | { { rip | ospf | isis } [ process-id ] } }

Parameters

Parameter Description Value
bgp | static | direct | rip | ospf | isis | unr Specifies the routing protocol from which RIP imports routes. -
permit-ibgp Imports routes from IBGP to RIP. -
process-id Specifies a process ID. The process ID can be specified when you import routes from RIP, OSPF, or IS-IS to RIP. The value is an integer that ranges from 1 to 65535.
cost cost Specifies the metric for imported routes. The value is an integer that ranges from 0 to 15.
cost transparent This parameter is valid only when RIP imports routes from BGP. The metric of the imported routes is the MED of the BGP routes. -
route-policy route-policy-name Specifies the routing policy for importing routes. The name is a string of 1 to 40 case-sensitive characters, with spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string.

Views

RIP view

Default Level

2: Configuration level

Usage Guidelines

After you run the import-route command to set a routing policy, RIP can import only the specified routes and sets the route attributes.

To import routes from RIP, OSPF, or IS-IS, you can specify the process ID. If the process ID is specified, RIP imports routes only from the specified process. If no process ID is specified, RIP imports routes from all processes. When a static or direct route is imported, the process ID cannot be specified.

You can run one of the following commands to set the metric of the imported routes. The following commands are listed in the descending order of priorities.

  • Run the apply cost command to set route metric.

  • Run the import-route (RIP) command to set the metric for imported routes.

  • Run the default-cost (RIP) command to set the default metric for routes.

NOTE:
  • RIP defines a 16-bit tag, while other routing protocols define 32-bit tags. If the routes of other protocols are imported to RIP and the tag is used in the routing policy, the tag value cannot exceed 65535. If the tag value exceeds 65535, the routing policy becomes invalid or the matching result is incorrect.

  • After the import-route direct command is executed, routes to the network segment where the IP address of the management interface belongs are also imported in the RIP routing table. Therefore, use this command with caution.

  • The permit-ibgp parameter cannot be set for the RIP VPN instance.
  • Importing IBGP routes to RIP may cause routing loops.

Example

# Import routes from IS-IS process 7 and set the route metric to 7.

<Huawei> system-view
[Huawei] rip 1
[Huawei-rip-1] import-route isis 7 cost 7

# Import IBGP routes, which are filtered by policy abc, to RIP process 1 and set the metric to 5.

<Huawei> system-view
[Huawei] rip 1
[Huawei-rip-1] import-route bgp permit-ibgp cost 5 route-policy abc

maximum load-balancing (RIP)

Function

The maximum load-balancing command configures the maximum number of equal-cost routes for load balancing.

The undo maximum load-balancing command restores the default setting.

By default, the maximum number of equal-cost routes supported by the device is 4.

Format

maximum load-balancing number

undo maximum load-balancing

Parameters

Parameter Description Value
number Specifies the number of equal-cost routes. The value is an integer that ranges from 1 to 4.

Views

RIP view

Default Level

2: Configuration level

Usage Guidelines

If a network has multiple redundant links, the maximum number of equal-cost routes can be configured to implement load balancing. With load balancing, network resources are fully utilized, situations where some links are overloaded while others are idle can be avoided, and delay in packet transmissions is shortened.

Example

# Set the maximum number of equal-cost routes to 4.

<Huawei> system-view
[Huawei] rip 1
[Huawei-rip-1] maximum load-balancing 4
Related Topics

network (RIP)

Function

The network command enables RIP for the interface on the specified network segment.

The undo network command disables RIP for the interface on the specified network segment.

By default, RIP is disabled for the interface on the specified network segment.

Format

network network-address

undo network network-address

Parameters

Parameter Description Value
network-address Specifies the network address on which RIP is enabled. It must be the address of the natural network segment. The value is in dotted decimal notation.

Views

RIP view

Default Level

2: Configuration level

Usage Guidelines

An interface can be associated with only one RIP process.

If one sub-interface's network segment of an interface with multiple sub-interface IP addresses has been associated with an RIP process, the interface cannot be associated with any other RIP processes.

By running the network 0.0.0.0 command, you can enable RIP on all interfaces. Dynamic allocation of IP addresses for PPPOE interface causes change of major network. To support dyanmic IP address change and add interface to RIP, RIP should have default network configuration to allow to run RIP on any IP interface.

Example

# Enable RIP routes for the interface on the specified network segment.

<Huawei> system-view
[Huawei] rip
[Huawei-rip-1] network 10.0.0.0
Related Topics

peer (RIP)

Function

The peer command specifies the IP addresses of the RIP neighbors. After this command is configured, Update packets are sent to the peer in unicast instead of multicast or broadcast mode.

The undo peer command deletes the specified neighbor IP address.

By default, no RIP neighbor address is specified.

Format

peer ip-address

undo peer ip-address

Parameters

Parameter Description Value
ip-address Specifies the IP address of a neighbor. The value is in dotted decimal notation.

Views

RIP view

Default Level

2: Configuration level

Usage Guidelines

Generally, it is not recommended to use the peer command because an interface may receive the same packets both in multicast (or broadcast) and unicast mode. It is recommended to change the mode of the interface to the silent mode when configuring the peer command.

Example

# Specify the IP address of the neighbor to 10.0.0.1.

<Huawei> system-view
[Huawei] rip 1
[Huawei-rip-1] peer 10.0.0.1
Related Topics

preference (RIP)

Function

The preference command sets the preference for RIP routes.

The undo preference command restores the default preference of RIP routes.

The default preference for RIP routes is 100.

Format

preference { preference | route-policy route-policy-name } *

undo preference

Parameters

Parameter Description Value
preference Specifies the preference for routes. The value is an integer ranging from 1 to 255. By default, it is 100.
route-policy route-policy-name Specifies the routing policy that sets preference for the routes meeting conditions, The name is a string of 1 to 40 case-sensitive characters, with spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string.

Views

RIP view

Default Level

2: Configuration level

Usage Guidelines

A small value indicates a high preference. To enable RIP routes to have a higher preference than the routes learned by other IGP protocols, you need to configure a smaller preference value for the RIP routes. The preference determines the algorithm through which the optimal route is obtained among the routes in the IP routing table.

Example

# Set the preference of RIP routes to 120.

<Huawei> system-view
[Huawei] rip 1
[Huawei-rip-1] preference 120

# Set the preference of RIP routes that match the routing policy named rt-policy1 to 120.

<Huawei> system-view
[Huawei] rip 1
[Huawei-rip-1] preference 120 route-policy rt-policy1

reset rip configuration

Function

The reset rip configuration command resets system parameters for a specified RIP process. When a RIP process starts, all the parameters of the process retain the default values.

Format

reset rip process-id configuration

Parameters

Parameter Description Value
process-id Specifies a RIP process ID. The value is an integer that ranges from 1 to 65535.

Views

User view

Default Level

3: Management level

Usage Guidelines

Restarting RIP processes may interrupt services. Exercise caution when you run this command.

After the command is executed, RIP neighbor relationships are set up again and learned routes are deleted.

Example

# Reset the parameters of RIP process 100.

<Huawei> reset rip 100 configuration

reset rip statistics

Function

The reset rip statistics command resets the counter that is maintained by a particular RIP process. This command allows you to repeatedly record statistics during debugging.

Format

reset rip process-id statistics [ interface { all | interface-type interface-number [ neighbor neighbor-ip-address ] } ]

Parameters

Parameter Description Value
process-id Specifies a RIP process ID. The value is an integer ranging from 1 to 65535.
all Clears statistics of all RIP processes. -
interface all Clears statistics on all the interfaces of a specified RIP process. -
interface interface-type interface-number Clears statistics on the interface with specified number and type. -
neighbor neighbor-ip-address Clears statistics on the RIP process between the local RIP interface and the specified neighbor. The value is in dotted decimal notation.

Views

User view

Default Level

3: Management level

Usage Guidelines

Statistics cannot be restored after being cleared. Exercise caution when you run this command.

Example

# Clear statistics in RIP process 100.

<Huawei> reset rip 100 statistics

rip

Function

The rip command starts the specified RIP in the system view.

The undo rip command stops the specified RIP process.

By default, no RIP process is started.

Format

rip [ process-id ] [ vpn-instance vpn-instance-name ]

undo rip process-id

Parameters

Parameter Description Value
process-id Specifies the ID of a RIP process. The value is an integer that ranges from 1 to 65535. The default value is 1.
vpn-instance vpn-instance-name Specifies the name of a VPN instance. The value is a string of 1 to 31 case-sensitive characters, spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

If no VPN instance is specified, a RIP process is run globally or in the default VPN instance. Before configuring each global RIP parameter, you need to start RIP. This restriction is not applicable when you configure interface-related parameters.

Example

# Start RIP process 1.

<Huawei> system-view
[Huawei] rip 1
[Huawei-rip-1]

# Start RIP process 100 in the VPN instance named abc.

<Huawei> system-view
[Huawei] rip 100 vpn-instance abc
[Huawei-rip-100]

rip authentication-mode

Function

The rip authentication-mode command sets the RIP-2 authentication mode and authentication parameters. Only one authentication password is used for each authentication. If multiple authentication passwords are configured, the latest one takes effect.

The undo rip authentication-mode command cancels authentication.

By default, no authentication is configured.

Format

rip authentication-mode simple { plain plain-text | [ cipher ] password-key }

rip authentication-mode keychain keychain-name

rip authentication-mode md5 usual { plain plain-text | [ cipher ] password-key }

rip authentication-mode md5 nonstandard { keychain keychain-name | { plain plain-text | [ cipher ] password-key } key-id }

rip authentication-mode hmac-sha256 { plain plain-text | [ cipher ] password-key } key-id

undo rip authentication-mode

Parameters

Parameter Description Value
simple Specifies simple authentication.
NOTE:

Simple authentication mode carries potential risks. HMAC-SHA256 cipher text authentication is recommended.

-
md5 Specifies MD5 authentication.
NOTE:

MD5 cipher text authentication carries potential risks. HMAC-SHA256 cipher text authentication is recommended.

-
usual Indicates that MD5 cipher text authentication packets use the universal format (private standard). -
nonstandard Indicates that MD5 cipher text authentication packets use non-standard packet format (IETF standard). -
plain Indicates that only plain text can be entered and only plain text is displayed when the configuration file is viewed.
NOTICE:

If plain is selected, the password is saved in the configuration file in plain text. This brings security risks. It is recommended to select cipher to save the password in cipher text.

-
plain-text Specifies the authentication password that is displayed in plain text. The value is a string of case-sensitive characters. It contains letters and digits without spaces. When the authentication mode is simple or md5 usual, the password consists of 1 to 16 characters. When the authentication mode is md5 nonstandard or hmac-sha256, the password consists of 1 to 255 characters.
cipher Indicates that either plain text or cipher text can be entered and cipher text is displayed when the configuration file is viewed. -
password-key Specifies the authentication password that is displayed in cipher text. The value is a string of case-sensitive characters. It contains letters and digits without spaces.
  • When the authentication mode is simple or md5 usual, the password is in plain text (1 to 16 characters) or in cipher text (48, 24 or 32 characters). If the source version supports a ciphertext password which is a string of 24 or 32 characters, the target version also supports this type of password.
  • When the authentication mode is md5 nonstandard or hmac-sha256, the password is in plain text (1 to 255 characters) or in cipher text (20 to 392 characters).
keychain keychain-name Specifies keychain authentication. The value is a string of 1 to 47 case-insensitive characters. Except the question mark (?) and space. However, when double quotation marks (") are used around the string, spaces are allowed in the string.
key-id Specifies the key in MD5 authentication. The value is an integer that ranges from 1 to 255.
hmac-sha256 Indicates Keyed-Hash Message Authentication Code (HMAC) for Secure Hash Algorithm 256 (SHA256). -

Views

Interface view

Default Level

2: Configuration level

Usage Guidelines

Keychain authentication improves UDP connection security. Keychain authentication must be configured on both ends of a link. Encryption algorithms and passwords configured on both ends must be the same; otherwise, the UDP connection cannot be set up and RIP messages cannot be transmitted.

Example

# Set HMAC-SHA256 authentication on GE0/0/1, with the authentication password admin@huawei and key-id 255.

<Huawei> system-view
[Huawei] interface gigabitethernet 0/0/1
[Huawei-GigabitEthernet0/0/1] rip authentication-mode hmac-sha256 cipher admin@huawei 255 

rip bfd

Function

The rip bfd command sets BFD session parameters on the specified interface.

The undo rip bfd command restores BFD session parameters set on the specified interface.

By default, the minimum intervals for receiving and sending BFD packets are 1000 ms and the detection time multiplier is 3.

Format

rip bfd { min-rx-interval min-receive-value | min-tx-interval min-transmit-value | detect-multiplier detect-multiplier-value } *

undo rip bfd { min-rx-interval [ min-receive-value ] | min-tx-interval [ min-transmit-value ] | detect-multiplier [ detect-multiplier-value ] } *

Parameters

Parameter Description Value
min-rx-interval min-receive-value

Specifies the minimum interval at which BFD packets are received from the remote device.

The value is an integer ranging from 10 to 2000, in milliseconds. The default value is 1000 milliseconds.
min-tx-interval min-transmit-value

Specifies the minimum interval at which BFD packets are sent to the remote device.

The value is an integer ranging from 10 to 2000, in milliseconds. The default value is 1000 milliseconds.
detect-multiplier detect-multiplier-value Specifies the local detection multiplier. The value is an integer ranging from 3 to 50.

Views

Interface view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

The min-receive-value value is obtained after the local min-rx-interval value and a neighbor's min-tx-interval value are negotiated. For detailed negotiation policies, see bfd all-interfaces (RIP). If the industrial switch router does not receive BFD packets from the neighbor at the interval of min-receive-value x detect-multiplier-value, the neighbor will go Down.

Prerequisites

Enable BFD globally and run the rip bfd enable command before establishing a BFD session.

Precautions

BFD session parameters configured in a RIP process take effect only after BFD is enabled on the interface.

The BFD priority configured on an interface is higher than the BFD priority configured in a RIP process. If BFD session parameters are configured on an interface, establish a BFD session based on the configured parameters.

Example

# Enable BFD on GE0/0/1 and set the minimum sending interval to 600 ms and local detection multiplier to 4.

<Huawei> system-view
[Huawei] interface gigabitethernet 0/0/1
[Huawei-GigabitEthernet0/0/1] rip bfd enable
[Huawei-GigabitEthernet0/0/1] rip bfd min-tx-interval 600 detect-multiplier 4

rip bfd block

Function

The rip bfd block command blocks BFD on a specified interface.

The undo rip bfd block command disables the blocking function.

By default, the blocking function is disabled.

Format

rip bfd block

undo rip bfd block

Parameters

None

Views

Interface view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

This command can be used to block the specified interface from enabling BFD on some links where no BFD session is needed.

Precautions

The rip bfd block and rip bfd enable commands are mutually exclusive. If both of them are configured, only the later configured one takes effect.

Example

# Block BFD on GE0/0/1.

<Huawei> system-view
[Huawei] interface gigabitethernet 0/0/1
[Huawei-GigabitEthernet0/0/1] rip bfd block

rip bfd enable

Function

The rip bfd enable command enables BFD on the specified interface to establish a BFD session with default parameters.

The undo rip bfd enable command disables BFD on the specified interface.

By default, BFD is disabled on a RIP interface.

Format

rip bfd enable

undo rip bfd enable

Parameters

None

Views

Interface view

Default Level

2: Configuration level

Usage Guidelines

If BFD is not enabled globally, you can set BFD parameters on the specified interface but you cannot establish a BFD session on this interface.

The rip bfd block and rip bfd enable commands are mutually exclusive. If both of them are configured, only the later configured one takes effect.

Example

# Enable BFD on GE0/0/1.

<Huawei> system-view
[Huawei] interface gigabitethernet 0/0/1
[Huawei-GigabitEthernet0/0/1] rip bfd enable

# Disable BFD on GE0/0/1.

<Huawei> system-view
[Huawei] interface gigabitethernet 0/0/1
[Huawei-GigabitEthernet0/0/1] undo rip bfd enable

rip bfd static

Function

The rip bfd static command enables static BFD on a specified RIP interface.

The undo rip bfd static command disables static BFD on a specified RIP interface.

By default, static BFD is disabled on a RIP interface.

Format

rip bfd static

undo rip bfd static

Parameters

None

Views

Interface view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

On a network deployed with high-speed data services, if a fault occurs on a link, a large amount of data is lost because it takes too long time for RIP to detect the fault. Deploying BFD for RIP to accelerate fault detection is necessary.

The rip bfd static command is used to enable BFD for RIP on a specified link to rapidly detect the fault on the link.

In addition, because many devices do not support BFD on the live network, this command can be also used to implement BFD between a BFD-capable device and a BFD-incapable device.

Prerequisites

BFD has been enabled globally using the bfd command.

Precautions

If rip bfd static, rip bfd enable, and rip bfd block are simultaneously configured, the latest configuration overrides the previous ones.

Example

# Enable static BFD on GE0/0/1.
<Huawei> system-view
[Huawei] bfd
[Huawei-bfd] quit
[Huawei] interface gigabitethernet 0/0/1
[Huawei-GigabitEthernet0/0/1] rip bfd static

rip input

Function

The rip input command enables the specified interface to receive RIP packets.

The undo rip input command disables the specified interface from receiving RIP packets.

By default, interfaces can receive RIP packets.

Format

rip input

undo rip input

Parameters

None

Views

Interface view

Default Level

2: Configuration level

Usage Guidelines

The priority of silent-interface is higher than the priority of rip input or rip output configured in the interface view. By default, an interface does not work in the silent state.

Example

# Enable the specified interface GE0/0/1 to receive RIP packets.

<Huawei> system-view
[Huawei] interface gigabitethernet 0/0/1
[Huawei-GigabitEthernet0/0/1] rip input

rip metricin

Function

The rip metricin command sets the metric that is added to the route when an interface receives a RIP packet.

The undo rip metricin command restores the additional metric to the default value.

By default, there is no metric added to the route when an interface receives a RIP packet.

Format

rip metricin { value | { acl-number | acl-name acl-name | ip-prefix ip-prefix-name } value1 }

undo rip metricin

Parameters

Parameter Description Value
value Specifies the metric that is added to the received route. The value is an integer ranging from 0 to 15. By default, it is 0.
acl-number Specifies the basic ACL number. The value is an integer ranging from 2000 to 2999.
acl-name acl-name Specifies the ACL name. The value is a string of 1 to 32 case-sensitive characters without spaces. The value must start with a letter (a to z or A to Z, case sensitive).
ip-prefix ip-prefix-name Specifies the IP prefix list. The name is a string of 1 to 169 case-sensitive characters, with spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string.
value1 Specifies the metric that is added to the route that passes the filtering of the ACL or IP prefix list. The value is an integer ranging from 1 to 15.

Views

Interface view

Default Level

2: Configuration level

Usage Guidelines

When an interface receives a route, RIP adds the additional metric of the interface to the route, and then installs the route into the routing table. Therefore, increasing the metric of an interface also increases the metric of the RIP route received by the interface.

Adjust RIP route selection by increasing the metrics of received routes.

Example

# Set the additional metric to 12 when GE0/0/1 receives RIP routes.

<Huawei> system-view
[Huawei] interface gigabitethernet 0/0/1
[Huawei-GigabitEthernet0/0/1] rip metricin 12

# Set the additional metric to 12 using acl-name.

<Huawei> system-view
[Huawei] interface gigabitethernet 0/0/1
[Huawei-GigabitEthernet0/0/1] rip metricin acl-name abcd 12

# Set the additional metric to 12 using ip-prefix.

<Huawei> system-view
[Huawei] interface gigabitethernet 0/0/1
[Huawei-GigabitEthernet0/0/1] rip metricin ip-prefix ip1 12

rip metricout

Function

The rip metricout command sets the metric that is added to the route when an interface sends a RIP packet.

The undo rip metricout command restores the additional metric to the default value.

By default, the metric that is added to the route when an interface sends a RIP packet is 1.

Format

rip metricout { value | { acl-number | acl-name acl-name | ip-prefix ip-prefix-name } value1 }

undo rip metricout

Parameters

Parameter Description Value
value Specifies the metric that is added to the sent route. The value is an integer ranging from 1 to 15. By default, it is 1.
acl-number Specifies the number of a basic ACL. The value is an integer ranging from 2000 to 2999.
acl-name acl-name Specifies the name of an ACL. The value is a string of 1 to 32 case-sensitive characters without spaces. The value must start with a letter (a to z or A to Z, case sensitive).
ip-prefix ip-prefix-name Specifies the name of the IP prefix list. The name must be exclusive. The name is a string of 1 to 169 case-sensitive characters, with spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string.
value1 Specifies the metric that is added to the route that passes the filtering of the ACL or IP prefix list. The value is an integer ranging from 2 to 15.

Views

Interface view

Default Level

2: Configuration level

Usage Guidelines

When a RIP route is advertised, the additional metric is added to the route. Therefore, increasing the metric of an interface also increases the metric of the RIP route sent on the interface. However, the metric of the route in the routing table remains unchanged.

You can specify the metric to be added to the RIP route that passes the filtering of the ACL or IP prefix list by specifying value1. If a RIP route does not pass the filtering, its metric is increased by 1.

For a named ACL, when the rule command is used to configure a filtering rule, the filtering rule is effective only with the source address range that is specified by the source parameter and with the time period that is specified by the time-range parameter.

Example

# Set the metric that is added when the interface sends RIP routes to 12.

<Huawei> system-view
[Huawei] interface gigabitethernet 0/0/1
[Huawei-GigabitEthernet0/0/1] rip metricout 12

# Increase the metric of a RIP route that passes the filtering of ACL 2050 by 12.

<Huawei> system-view
[Huawei] interface gigabitethernet 0/0/1
[Huawei-GigabitEthernet0/0/1] rip metricout 2050 12

# Increase the metric of a RIP route that passes the filtering of the IP prefix list named p1 by 12.

<Huawei> system-view
[Huawei] ip ip-prefix p1 permit 10.10.10.1 24
[Huawei] interface gigabitethernet 0/0/1
[Huawei-GigabitEthernet0/0/1] rip metricout ip-prefix p1 12

rip mib-binding

Function

The rip mib-binding command sets the binding between the Management Information Base (MIB) and RIP process ID, and specifies the ID of the RIP process that receives SNMP requests.

The undo rip mib-binding command cancels the binding.

By default, there is no binding between the Management Information Base and RIP process ID.

Format

rip mib-binding process-id

undo rip mib-binding

Parameters

Parameter Description Value
process-id Specifies the ID of a RIP process. The value is an integer ranging from 1 to 65535. The default value is 1.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

All SNMP requests are sent to the bound RIP process.

Prerequisites

A RIP process has been created using the rip command.

Example

# Configure RIP process 100 to receive SNMP requests.

<Huawei> system-view
[Huawei] rip 100
[Huawei-rip-100] quit
[Huawei] rip mib-binding 100

rip output

Function

The rip output command enables an interface to send RIP packets.

The undo rip output command disables an interface from sending RIP packets.

By default, an interface can send RIP packets.

Format

rip output

undo rip output

Parameters

None

Views

Interface view

Default Level

2: Configuration level

Usage Guidelines

When a device running RIP is connected to a network running other routing protocols, you can run the rip output command on the interface that connects the device to the network to prevent the interface from sending useless packets to the network.

The priority of silent-interface is higher than the priority of rip input or rip output that is configured in the interface view. By default, an interface does not work in the silent state.

Example

# Enable the interface GE0/0/1 to send RIP packets.

<Huawei> system-view
[Huawei] interface gigabitethernet 0/0/1
[Huawei-GigabitEthernet0/0/1] rip output

rip pkt-transmit

Function

The rip pkt-transmit command sets the interval for sending Update packets and the number of packets sent each time on the specified interface.

The undo rip pkt-transmit command restores the default values on an interface.

By default, the interval for sending RIP Update packets is 200 ms and 50 packets are sent each time.

Format

rip pkt-transmit { interval interval | number pkt-count } *

undo rip pkt-transmit

Parameters

Parameter Description Value
interval interval Specifies the interval for sending Update packets. The value is an integer ranging from 50 to 500, in milliseconds. The default value is 200.
number pkt-count Specifies the number of packets sent each time. The value is an integer and ranges from 25 to 100. The default value is 50.

Views

Interface view

Default Level

2: Configuration level

Usage Guidelines

The rip pkt-transmit command can be used on an interface to control the interval for sending Update packets and the number of sent packets. This improves RIP performance.

Example

# Set the interval for sending packets on GE0/0/1 to 100 milliseconds and the number of the packets sent each time to 50.

<Huawei> system-view
[Huawei] interface gigabitethernet 0/0/1
[Huawei-GigabitEthernet0/0/1] rip pkt-transmit interval 100 number 50

rip poison-reverse

Function

The rip poison-reverse command enables poison reverse.

The undo rip poison-reverse command disables poison reverse.

By default, poison reverse is disabled.

Format

rip poison-reverse

undo rip poison-reverse

Parameters

None

Views

Interface view

Default Level

2: Configuration level

Usage Guidelines

After poison reverse is enabled, RIP sets the cost of the routes learned from a specified interface to 16 (indicating unreachable), and then sends the routes to neighbors through the same interface.

When both split horizon and poison reverse are configured, only poison reverse takes effect.

Example

# Enable poison reverse.

<Huawei> system-view
[Huawei] interface gigabitethernet 0/0/1
[Huawei-GigabitEthernet0/0/1] rip poison-reverse
Related Topics

rip replay-protect

Function

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.

Format

rip replay-protect [ window-range ]

undo rip replay-protect

Parameters

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.

Views

Interface view

Default Level

2: Configuration level

Usage Guidelines

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 md5 nonstandard command in the RIP interface view to configure MD5 cipher text authentication packets to be in the nonstandard format (IETF standard).

NOTE:
  • For details of the Identification field in an IP packet, refer to Configuration Guide - IP Services.

  • If you configure the rip replay-protect command in the same view for multiple times, only the last configuration takes effect.

Example

# Enable the replay-protect function on GE0/0/1.

<Huawei> system-view
[Huawei] interface gigabitethernet 0/0/1
[Huawei-GigabitEthernet0/0/1] rip replay-protect

rip split-horizon

Function

The rip split-horizon command enables split horizon.

The undo rip split-horizon command disables split horizon.

By default, split horizon is enabled.

Format

rip split-horizon

undo rip split-horizon

Parameters

None

Views

Interface view

Default Level

2: Configuration level

Usage Guidelines

If a route is advertised through the interface from which the route is learned, the route is blocked by split horizon. Split horizon is used to avoid routing loops between neighboring devices.

Generally, it is not recommended that you disable split horizon.

If split horizon is enabled on the interface that is configured with secondary IP addresses, RIP Update packets may not be sent by each secondary address. An Update packet does not regard every network as the source unless split horizon is disabled.

If an interface is connected to a Non Broadcast Multiple Access (NBMA) network, split horizon on the interface is disabled by default.

If both poison reverse and split horizon are configured, simple split horizon (the route is suppressed by the interface through which the route is learned) is substituted by poison reverse. Here, simple split horizon means that the route is suppressed when it is advertised through the interface from which it is learned.

Example

# Enable split horizon.

<Huawei> system-view
[Huawei] interface gigabitethernet 0/0/1
[Huawei-GigabitEthernet0/0/1] rip split-horizon
Related Topics

rip summary-address

Function

The rip summary-address command configures a RIP industrial switch router to advertise a local summarized IP address.

The undo rip summary-address command disables a RIP industrial switch router from advertising a local summarized IP address.

By default, a RIP industrial switch router does not advertise local summarized IP addresses.

Format

rip summary-address ip-address mask [ avoid-feedback ]

undo rip summary-address ip-address mask

Parameters

Parameter Description Value
ip-address Specifies the network IP address to be summarized. The value is in dotted decimal notation.
mask Specifies the network mask. The value is in dotted decimal notation.
avoid-feedback Specifies that learning the same summarized route from an interface is not allowed. -

Views

Interface view

Default Level

2: Configuration level

Usage Guidelines

After the keyword avoid-feedback is specified, an interface no longer learns the summarized route with the same IP address as the advertised summarized IP address. This avoids routing loops.

Example

# Configure the industrial switch router to advertise a local summarized IP address.

<Huawei> system-view
[Huawei] interface gigabitethernet 0/0/1
[Huawei-GigabitEthernet0/0/1] rip summary-address 10.0.0.0 255.0.0.0
Related Topics

rip valid-ttl-hops

Function

The rip valid-ttl-hops command enables the RIP GTSM functions and sets the TTL value to be detected.

The undo rip valid-ttl-hops command cancels the function.

By default, the RIP GTSM functions are disabled.

Format

rip valid-ttl-hops valid-ttl-hops-value [ vpn-instance vpn-instance-name ]

undo rip valid-ttl-hops [ valid-ttl-hops-value ] [ vpn-instance vpn-instance-name ]

Parameters

Parameter Description Value
valid-ttl-hops-value

Specifies the number of TTL hops to be detected.

The valid TTL range of the detected packets is [ 255 -valid-ttl-hops-value + 1, 255 ].

The value is an integer ranging from 1 to 255.
vpn-instance vpn-instance-name

Specifies the name of the VPN instance.

If this parameter is used, you need only to specify the TTL value to be detected by the VPN instance.

The value is a string of 1 to 31 case-sensitive characters, spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

In a network demanding higher security, you can enable GTSM to improve the security of the RIP network. GTSM defends against attacks by checking the TTL value. If an attacker simulates RIP unicast packets and keeps sending them to a router, an interface board on the router receives the packets and directly sends them to the main control board for RIP processing, without checking the validity of the packets. In this case, the router is busy processing these packets, causing high usage of the CPU. GTSM protects the routers and enhances the system security by checking whether the TTL value in the IP packet header is in a pre-defined range.

The rip valid-ttl-hops command is used to enable RIP GTSM.

Precautions

GTSM configurations must be symmetrical. That is, GTSM must be enabled on devices at both ends.

If GTSM is enabled on a device, after the device receives a RIP packet, it checks whether the TTL value in the packet is in a pre-defined range. If the TTL value is beyond the pre-defined range, the device considers the packet as an attack packet and discards it.

Example

# Enable the RIP GTSM functions, and configure the maximum number of TTL hops to 5 for the packets that a router is allowed to receive.

<Huawei> system-view
[Huawei] rip valid-ttl-hops 5

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 gigabitethernet 0/0/1
[Huawei-GigabitEthernet0/0/1] rip version 2 broadcast

silent-interface (RIP)

Function

The silent-interface command controls an interface only to receive packets to update its routing table and prevent it from sending RIP packets.

The undo silent-interface command enables an RIP interface to send Update packets.

The silent-interface disable command enables an RIP interface to send Update packets.

The undo silent-interface disable command controls an interface only to receive packets to update its routing table and prevent it from sending RIP packets.

By default, silent interface not enabled.

Format

silent-interface { all | interface-type interface-number }

undo silent-interface { all | interface-type interface-number }

silent-interface disable interface-type interface-number

undo silent-interface disable interface-type interface-number

Parameters

Parameter Description Value
all Indicates that all interfaces are suppressed. -
interface-type interface-number Specifies the type and the number of the interface. -
disable Disables the suppression of the RIP interface so that the interface can send Update packets. -

Views

RIP view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

When a industrial switch router running RIP is connected to a network running other routing protocols, you can run the silent-interface command on the interface that connects the industrial switch router to the network to prevent the interface from sending useless packets to the network.

The silent-interface command is used together with the peer (RIP) command to advertise routes to the specified equipment.

Configuration Impact

If an interface is suppressed, the direct routes of the network segment where the interface resides can still be advertised to other interfaces.

Precautions

When the silent-interface command is used to suppress the specified interface, the priority of the silent-interface command is higher than the priority of the rip input and rip output command that is configured in the interface view.

NOTE:

After you configure all interfaces as silent interfaces, you can run the silent-interface disable interface-type interface-number command to activate a specified silent interface.

Example

# Configure all the interfaces as silent interfaces.

<Huawei> system-view
[Huawei] rip 100
[Huawei-rip-100] silent-interface all
# Configure the RIP interface GE0/0/1 as a silent interface and enable it to send routes to the neighbor with the IP address of 10.1.1.1/24.
<Huawei> system-view
[Huawei] rip 100
[Huawei-rip-100] silent-interface gigabitethernet 0/0/1
[Huawei-rip-100] peer 10.1.1.1
# Configure all interfaces as silent interfaces, and then activate the interface GE0/0/1.
<Huawei> system-view
[Huawei] rip 100
[Huawei-rip-100] silent-interface disable gigabitethernet 0/0/1

summary (RIP)

Function

The summary command enables RIP classful summarization. The summarized routes are advertised using natural masks.

The undo summary command disables classful summarization so that routing between subnets can be performed. The subnet information is then advertised. Route summarization reduces the routing table size.

By default, classful summarization is enabled for RIP-2.

Format

summary [ always ]

undo summary

Parameters

Parameter Description Value
always Enables classful summarization no matter whether split horizon is configured. -

Views

RIP view

Default Level

2: Configuration level

Usage Guidelines

RIP-1 does not support classful summarization. When using RIP-2, you can use the undo summary command to disable classful summarization.

RIP-2 route summarization improves scalability and efficiency on large networks. IP address summarization means that there is no sub-routing entry in the routing table. That is, there is no routing entry composed of single IP address. In addition to reducing the routing table size, route summarization enables the industrial switch router to handle more routes.

When classful summarization is enabled, the industrial switch router summarizes subnet addresses to the natural network segment border while advertising routes to the natural network segment border. When split horizon or poison reverse is enabled, route summarization will be invalid if the always parameter is not specified. When summarized routes are sent outside the natural network segment, split horizon or poison reverse must be disabled.

NOTE:
  • By default, classful summarization is enabled for RIP-2. If split horizon or poison reverse has been configured, classful summarization is invalid. When summarized routes are sent to the network border, split horizon and poison reverse must be disabled.
  • The summary always command can enable classful summarization no matter whether split horizon or poison reverse is enabled.
  • The summarization preference on interfaces is higher than the summarization preference in RIP processes. That is, the preference of rip summary-address is higher than the preference of summary. When summarization is configured on both interface and RIP process, the summarized route is advertised only when a few specific routes are beyond the summarization range configured on the interface.

Example

# Enable RIP-2 classful summarization.

<Huawei> system-view
[Huawei] rip 1
[Huawei-rip-1] version 2
[Huawei-rip-1] summary
# Enable RIP-2 classful summarization when split horizon is enabled.
<Huawei> system-view
[Huawei] rip 1
[Huawei-rip-1] summary always

snmp-agent trap enable feature-name rip

Function

The snmp-agent trap enable feature-name rip command enables the trap function for the RIP module.

The undo snmp-agent trap enable feature-name rip command disables the trap function for the RIP module.

By default, rip trap functions are disabled.

Format

snmp-agent trap enable feature-name rip [ trap-name { hwrip2dboverflow | hwrip2dboverflowresume } ]

undo snmp-agent trap enable feature-name rip [ trap-name { hwrip2dboverflow | hwrip2dboverflowresume } ]

Parameters

Parameter Description Value
trap-name Enables the trap function for a specified type of RIP events. -
hwrip2dboverflow Enables the trap function upon RIP database overflow. By default, the trap function is disabled.
hwrip2dboverflowresume Enables the trap function upon RIP database overflow recovery. By default, the trap function is disabled.

Views

System view

Default Level

3: Management level

Usage Guidelines

Usage Guidelines

The snmp-agent trap enable feature-name rip command enables the trap function to monitor the tunnel group status. To enable the trap function for one or more specific events on the RIP module, set the trap-name parameter in this command.

Follow-up Procedure

To view the traps related to the RIP module, run the display snmp-agent trap feature-name rip all command.

Example

# Enable the trap function upon RIP database overflow.

<Huawei> system-view
[Huawei] snmp-agent trap enable feature-name rip trap-name hwrip2dboverflow

timers rip

Function

The timers rip command sets the values of RIP timers.

The undo timers rip command restores the values of RIP timers to the default value.

By default, the interval for sending Update packets is 30s, the time for aging routes is 180s, the time for deleting a route from the routing table is 120s.

Format

timers rip update age garbage-collect

undo timers rip

Parameters

Parameter Description Value
update Specifies the interval for sending Update packets. The value is an integer ranging from 1 to 86400, in seconds.
age Specifies the time for aging routes. The value is an integer ranging from 1 to 86400, in seconds.
garbage-collect Specifies the time for deleting a route from the routing table, that is, the standard garbage collection time. The value is an integer ranging from 1 to 86400, in seconds.

Views

RIP view

Default Level

2: Configuration level

Usage Guidelines

By adjusting the RIP timers, you can improve routing protocol performance to meet network requirements. If the values of the preceding three timers are set improperly, route flapping occurs.

The relationship of the values of the three timers is: update < age and update < garbage-collect. For example, if the update time is longer than the aging time, industrial switch routers cannot inform neighbors on time if RIP routes change during the update time.

NOTE:

Generally, the default values of the timers do not need to be changed, and thus the timers rip command must be used with caution.

Example

# Set values for RIP timers.

<Huawei> system-view
[Huawei] rip 100
[Huawei-rip-100] timers rip 35 170 240

verify-source (RIP)

Function

The verify-source command enables check on source IP addresses in RIP Update packets.

The undo verify-source command disables check on source IP addresses in RIP Update packets.

By default, the source IP addresses in RIP Update packets are checked.

Format

verify-source

undo verify-source

Parameters

None

Views

RIP view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

After the verify-source command is executed, RIP checks whether the IP addresses of interfaces that send and receive the Update packets are on the same network segment. If not, the device does not process the packets.

NOTE:

It is not recommended that you disable source address check.

Example

# Enable source address check in RIP 100.

<Huawei> system-view
[Huawei] rip 100
[Huawei-rip-100] verify-source

version (RIP)

Function

The version command specifies a global RIP version.

The undo version command restores the default global RIP version.

By default, an interface sends only RIP-1 packets, and receives both RIP-1 and RIP-2 packets.

Format

version { 1 | 2 }

undo version

Parameters

Parameter Description Value
1

Set the global RIP version to RIP-1.

-
2

Set the global RIP version to RIP-2.

-

Views

RIP view

Default Level

2: Configuration level

Usage Guidelines

None

Example

# Send and receive RIP-2 packets.

<Huawei> system-view
[Huawei] rip 100
[Huawei-rip-100] version 2
Related Topics
Translation
Download
Updated: 2019-02-18

Document ID: EDOC1000097293

Views: 36581

Downloads: 101

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Share
Previous Next