RIP Configuration Commands
- Command Support
- bfd all-interfaces enable(RIP)
- bfd all-interfaces(RIP)
- checkzero (RIP)
- default-cost (RIP)
- default-route originate
- description (RIP)
- display default-parameter rip
- display rip
- display rip bfd session
- display rip database
- display rip graceful-restart
- display rip interface
- display rip neighbor
- display rip neighbor last-nbr-down
- display rip route
- display rip statistics interface
- display snmp-agent trap feature-name rip all
- filter-policy export (RIP)
- filter-policy import (RIP)
- graceful-restart (RIP)
- host-route
- import-route (RIP)
- maximum load-balancing (RIP)
- network (RIP)
- peer (RIP)
- preference (RIP)
- reset rip configuration
- reset rip statistics
- rip
- rip authentication-mode
- rip bfd
- rip bfd block
- rip bfd enable
- rip bfd static
- rip input
- rip metricin
- rip metricout
- rip mib-binding
- rip output
- rip pkt-transmit
- rip poison-reverse
- rip replay-protect
- rip split-horizon
- rip summary-address
- rip valid-ttl-hops
- rip version
- silent-interface (RIP)
- snmp-agent trap enable feature-name rip
- summary (RIP)
- timers rip
- verify-source (RIP)
- version (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.
Usage Guidelines
If BFD parameters are configured, but the bfd all-interfaces enable command is not configured, BFD sessions cannot be established.
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.
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, in milliseconds. If the MPU is ET1D2MPUA000 or ET1D2MPUDC00, the value ranges from 3 to 1000. Otherwise, the value ranges from 100 to 1000.By default, the minimum interval for receiving BFD packets is 1000 ms. |
min-tx-interval min-transmit-value | Specifies the minimum interval for sending BFD packets to the peer. |
The value is an integer, in milliseconds. If the MPU is ET1D2MPUA000 or ET1D2MPUDC00, the value ranges from 3 to 1000. Otherwise, the value ranges from 100 to 1000.By default, the minimum interval for receiving BFD packets is 1000 ms. |
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. |
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.
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.
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.
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.
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. |
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.
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 | { match default | route-policy route-policy-name } [ 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. |
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. |
Usage Guidelines
Usage Scenario
In a routing table, the destination address and mask of a default route are all 0s. If the destination address of a packet does not match any entry in the routing table of the switch, the switch sends the packet along the default route.
If no default route exists and the destination address of the packet does not match any entry in the routing table, the switch discards the packet and sends an Internet Control Message Protocol (ICMP) packet, informing the originating host that the destination address or network is unreachable.
- When the default-route originate command is configured without any parameter, the default route is originated unconditionally regardless of whether the default route exists in the IP routing table.
- When the default-route originate command is configured with route-policy, RIP will originate the default route only if the route that matches route-policy is active in the IP routing table.
- When the default-route originate command is configured with match default, RIP will originate the default route only if a default route learned by another routing protocol or RIP process is present in the IP routing table.
- When the default-route originate command is configured with avoid-learning, RIP will not learn the default route advertised by RIP peers.
Prerequisites
A RIP process has been created, and the RIP view is displayed using the rip command.
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.
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. |
display default-parameter rip
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 : 32 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)
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:
|
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
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 must be an existing VPN instance name. |
Usage Guidelines
You can run the display rip command to check the status and configuration of a RIP process.
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 : 1 RIP version : 1 Preference : 100 Checkzero : Enabled Default-cost : 0 Summary : Enabled Host-route : Enabled Maximum number of balanced paths : 8 Update time : 30 sec Age time : 180 sec Garbage-collect time : 120 sec Graceful restart : Disabled BFD : Disabled Silent-interfaces : None Default-route : Disabled Verify-source : Enabled Networks : None Configured peers : None Number of routes in database : 0 Number of interfaces enabled : 0 Triggered updates sent : 0 Number of route changes : 0 Number of replies to queries : 0 Number of routes in ADV DB : 0 Private VPN-instance name : VPN-Instance-1 RIP process : 100 RIP version : 1 Preference : 100 Checkzero : Enabled Default-cost : 0 Summary : Enabled Host-route : Enabled Maximum number of balanced paths : 8 Update time : 30 sec Age time : 180 sec Garbage-collect time : 120 sec Graceful restart : Disabled BFD : Disabled Silent-interfaces : None Default-route : Disabled Verify-source : Enabled Networks : None Configured peers : None Number of routes in database : 0 Number of interfaces enabled : 0 Triggered updates sent : 0 Number of route changes : 0 Number of replies to queries : 0 Number of routes in ADV DB : 0 Total count for 2 process : Number of routes in database : 0 Number of interfaces enabled : 0 Number of routes sendable in a periodic update : 0 Number of routes sent in last periodic update : 0
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
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. |
- |
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
<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:Vlanif10
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:Vlanif20
Diagnostic Info: No diagnostic information
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.
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. | - |
Usage Guidelines
You can run the display rip database command to check all the active routes in the RIP database. These routes are sent in RIP Update packets.
Example
<HUAWEI> display rip 100 database
---------------------------------------------------
Advertisement State : [A] - Advertised
[I] - Not Advertised/Withdraw
---------------------------------------------------
10.0.0.0/8, cost 0, ClassfulSumm
10.1.1.0/24, cost 0, [A], Imported
10.10.10.0/24, cost 0, [A], Rip-interface
10.137.220.0/23, cost 1, [A], nexthop 10.10.10.2
Item |
Description |
---|---|
Advertisement State |
Route status.
|
ClassfulSumm |
Classful route summarization. |
Imported |
Routes imported from other routing protocols. |
Rip-interface |
Routes learned on the RIP interface. |
nexthop |
Next-hop address. |
display rip graceful-restart
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. | - |
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
Item |
Description |
---|---|
Restart mode |
Role of a switch:
|
Restart status |
GR status:
|
Last complete reason |
Reason that the switch exits from GR for the last time:
|
Update progress summary |
Title bar indicating the updated RIP progress summary |
Restart capable peers |
Number of neighbors that help the local switch 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 switch to perform GR |
Update period finishes in 293 seconds |
Time to finish GR: 293 seconds |
display rip interface
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. | - |
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 VLANIF100.
<HUAWEI> display rip 1 interface vlanif 100
--------------------------------------------------------------------------
Interface IP Address State Protocol MTU
--------------------------------------------------------------------------
Vlanif 100 10.1.1.2 UP RIPv1 Compatible 500
Item |
Description |
---|---|
Interface |
RIP-enabled interfaces |
IP Address |
IP address of the interface |
State |
Status of the interface:
|
Protocol |
Version of RIP running on the interface:
To set the version of RIP, run the rip version command. |
MTU |
MTU value of the link |
# Display detailed information about RIP on VLANIF100.
<HUAWEI> display rip 1 interface vlanif 100 verbose
Vlanif100 (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
Item |
Description |
---|---|
State |
Status of the interface:
|
MTU |
Maximum Transmission Unit |
Metricin |
Metric that is added to the route when the interface receives a RIP packet. To set the metric, run the rip metricin command. |
Metricout |
Metric that is added to the route when the interface sends a RIP packet. To set the metric, run the rip metricout command. |
Input |
Whether receiving packets is enabled. To enables the specified interface to receive RIP packets, run the rip input command. |
Output |
Whether sending packets is enabled. To enable the specified interface to send RIP packets, run the rip output command. |
Protocol |
Protocol running on the interface:
To set the version of RIP, run the rip version command. |
Send version |
Type of packets sent on the interface:
|
Receive version |
Type of packets received on the interface:
|
Poison-reverse |
Whether poison reverse is enabled on the interface. To enable poison reverse, run the rip poison-reverse command. |
Split-Horizon |
Whether split horizon is enabled on the interface. To enable split horizon, run the rip split-horizon command. |
Authentication type |
Authentication type configured on the interface. To set the authentication mode and authentication parameters, run the rip authentication-mode command. |
Replay Protection |
Whether replay-protect is enabled on the interface. To enable the replay-protect function, run the rip replay-protect command. |
BFD |
Whether BFD is enabled on the interface:
|
Transmit-Interval |
Interval for sending BFD packets to the peer on the interface. To set BFD session parameters on the specified interface, run the rip bfd command. |
Receive-Interval |
Interval for receiving BFD packets from the peer on the interface. To set BFD session parameters on the specified interface, run the rip bfd command. |
Detect-Multiplier |
BFD detect multiplier value configured on the interface. To set BFD session parameters on the specified interface, run the rip bfd command. |
Summary Address (es) |
Summary address |
display rip neighbor
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. | - |
Usage Guidelines
You can run the display rip neighbor command to check information about RIP neighbors.
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 Vlanif100 RIP 0:0:7
Number of RIP routes:1
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 Vlanif100 RIP 0:0:17
Number of Active routes : 1
Number of routes in garbage : 0
Last Received Sequence Number : 0x0
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 |
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.
Parameters
Parameter | Description | Value |
---|---|---|
process-id | Specifies the ID of a RIP process. |
The value is an integer ranging from 1 to 65535. |
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 : Vlanif10
Reason for Neighbor down : Interface Down
Time at which neighbor went down : 2011-06-02 11:53:50
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 switchs and view the values of different timers related to each route.
Parameters
Parameter | Description | Value |
---|---|---|
process-id | Specifies the ID of a RIP process. | The value is an integer ranging from 1 to 65535. |
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 Vlanif100
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
Item |
Description |
---|---|
Route Flags |
Route flags. First character indicating that the route is a RIP or TRIP route, Second character indicating the status of the route:
|
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
|
Sec |
Time during which a route remains in a specific state |
display rip statistics interface
Function
The display rip statistics interface command displays statistics on a RIP interface, including the number of packets sent and 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. |
Usage Guidelines
You can run the display rip statistics interface command to check packet statistics on a RIP interface, including the number of packets sent and received on the interface.
Example
# Display statistics on VLANIF100 in RIP process 1.
<HUAWEI> display rip 1 statistics interface vlanif 100
Vlanif100(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
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 |
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.
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
Item |
Description |
---|---|
Feature name |
Name of the feature. |
Trap number |
Number of traps. |
Trap name |
Name of the trap:
|
Default switch status |
Default trap function status:
|
Current switch status |
Current trap function status:
|
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 64 case-sensitive characters without spaces. The value must start with a letter. |
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. | - |
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.
For an 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
# 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
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 64 case-sensitive characters without spaces. The value must start with a letter. |
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. | - |
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.
For an ACL, when the rule command is used to configure a filtering rule, the filtering rule takes effective only when the source address range is specified by the source parameter and the time period is specified by the time-range parameter.
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. |
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 switchs 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 switch completes GR before the period specified by period period expires, the restart switch automatically exits from GR. If the restart switch does not complete GR after the period specified by period period expires, the restart switch 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.
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.
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. |
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.
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)
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.
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.
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. |
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.
Parameters
Parameter | Description | Value |
---|---|---|
ip-address | Specifies the IP address of a neighbor. | The value is in dotted decimal notation. |
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.
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. |
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.
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.
Parameters
Parameter | Description | Value |
---|---|---|
process-id | Specifies a RIP process ID. | The value is an integer that ranges from 1 to 65535. |
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. |
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.
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 must be an existing VPN instance name. |
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 ciphertext authentication is recommended. |
- |
md5 | Specifies MD5 authentication. NOTE:
MD5 ciphertext authentication carries potential risks. HMAC-SHA256 ciphertext authentication is recommended. |
- |
usual | Indicates that MD5 ciphertext authentication packets use the universal format (private standard). | - |
nonstandard | Indicates that MD5 ciphertext 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.
|
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 identifier of Cryptographic 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). | - |
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 VLANIF100, with the authentication password admin@huawei and key-id 255.
<HUAWEI> system-view [HUAWEI] interface vlanif 100 [HUAWEI-Vlanif100] rip authentication-mode hmac-sha256 cipher admin@huawei 255
# Set HMAC-SHA256 authentication on GE1/0/1, with the authentication password admin@huawei and key-id 255.
<HUAWEI> system-view [HUAWEI] interface gigabitethernet 1/0/1 [HUAWEI-GigabitEthernet1/0/1] undo portswitch [HUAWEI-GigabitEthernet1/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, in milliseconds. If the MPU is ET1D2MPUA000 or ET1D2MPUDC00, the value ranges from 3 to 1000. Otherwise, the value ranges from 100 to 1000.By default, the minimum interval for receiving BFD packets is 1000 ms. |
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, in milliseconds. If the MPU is ET1D2MPUA000 or ET1D2MPUDC00, the value ranges from 3 to 1000. Otherwise, the value ranges from 100 to 1000.By default, the minimum interval for receiving BFD packets is 1000 ms. |
detect-multiplier detect-multiplier-value | Specifies the local detection multiplier. | The value is an integer ranging from 3 to 50. |
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 switch 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 VLANIF100 and set the minimum sending interval to 600 ms and local detection multiplier to 4.
<HUAWEI> system-view
[HUAWEI] interface vlanif 100
[HUAWEI-Vlanif100] rip bfd enable
[HUAWEI-Vlanif100] rip bfd min-tx-interval 600 detect-multiplier 4
# Enable BFD on GE1/0/1 and set the minimum sending interval to 600 ms and local detection multiplier to 4.
<HUAWEI> system-view [HUAWEI] interface gigabitethernet 1/0/1 [HUAWEI-GigabitEthernet1/0/1] undo portswitch [HUAWEI-GigabitEthernet1/0/1] rip bfd enable [HUAWEI-GigabitEthernet1/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.
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.
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.
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 VLANIF100.
<HUAWEI> system-view
[HUAWEI] interface vlanif 100
[HUAWEI-Vlanif100] rip bfd enable
# Disable BFD on VLANIF100.
<HUAWEI> system-view
[HUAWEI] interface vlanif 100
[HUAWEI-Vlanif100] undo rip bfd enable
# Enable BFD on GE1/0/1.
<HUAWEI> system-view [HUAWEI] interface gigabitethernet 1/0/1 [HUAWEI-GigabitEthernet1/0/1] undo portswitch [HUAWEI-GigabitEthernet1/0/1] rip bfd enable
# Disable BFD on GE1/0/1.
<HUAWEI> system-view [HUAWEI] interface gigabitethernet 1/0/1 [HUAWEI-GigabitEthernet1/0/1] undo portswitch [HUAWEI-GigabitEthernet1/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.
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
<HUAWEI> system-view [HUAWEI] bfd [HUAWEI-bfd] quit [HUAWEI] interface vlanif 100 [HUAWEI-Vlanif100] rip bfd static
# Enable static BFD on GE1/0/1.
<HUAWEI> system-view [HUAWEI] interface gigabitethernet 1/0/1 [HUAWEI-GigabitEthernet1/0/1] undo portswitch [HUAWEI-GigabitEthernet1/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.
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 VLANIF100 to receive RIP packets.
<HUAWEI> system-view [HUAWEI] interface vlanif 100 [HUAWEI-Vlanif100] rip input
# Enable the specified interface GE1/0/1 to receive RIP packets.
<HUAWEI> system-view [HUAWEI] interface gigabitethernet 1/0/1 [HUAWEI-GigabitEthernet1/0/1] undo portswitch [HUAWEI-GigabitEthernet1/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 64 case-sensitive characters without spaces. The value must start with a letter. |
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. |
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 VLANIF100 receives RIP routes.
<HUAWEI> system-view [HUAWEI] interface vlanif 100 [HUAWEI-Vlanif100] rip metricin 12
# Set the additional metric to 12 when GE1/0/1 receives RIP routes.
<HUAWEI> system-view [HUAWEI] interface gigabitethernet 1/0/1 [HUAWEI-GigabitEthernet1/0/1] undo portswitch [HUAWEI-GigabitEthernet1/0/1] rip metricin 12
# Set the additional metric to 12 using acl-name.
<HUAWEI> system-view [HUAWEI] interface vlanif 100 [HUAWEI-Vlanif100] rip metricin acl-name abcd 12
# Set the additional metric to 12 using ip-prefix.
<HUAWEI> system-view [HUAWEI] interface vlanif 100 [HUAWEI-Vlanif100] 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 64 case-sensitive characters without spaces. The value must start with a letter. |
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. |
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 an 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 vlanif 100 [HUAWEI-Vlanif100] rip metricout 12
# Set the metric that is added when the interface sends RIP routes to 12.
<HUAWEI> system-view [HUAWEI] interface gigabitethernet 1/0/1 [HUAWEI-GigabitEthernet1/0/1] undo portswitch [HUAWEI-GigabitEthernet1/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 vlanif 100 [HUAWEI-Vlanif100] rip metricout 2050 12
# Increase the metric of a RIP route that passes the filtering of ACL 2050 by 12.
<HUAWEI> system-view [HUAWEI] interface gigabitethernet 1/0/1 [HUAWEI-GigabitEthernet1/0/1] undo portswitch [HUAWEI-GigabitEthernet1/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 vlanif 100 [HUAWEI-Vlanif100] rip metricout ip-prefix p1 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] interface gigabitethernet 1/0/1 [HUAWEI-GigabitEthernet1/0/1] undo portswitch [HUAWEI-GigabitEthernet1/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.
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. |
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.
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.
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 VLANIF100 to send RIP packets.
<HUAWEI> system-view [HUAWEI] interface vlanif 100 [HUAWEI-Vlanif100] rip output
# Enable the interface GE1/0/1 to send RIP packets.
<HUAWEI> system-view [HUAWEI] interface gigabitethernet 1/0/1 [HUAWEI-GigabitEthernet1/0/1] undo portswitch [HUAWEI-GigabitEthernet1/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.
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. |
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 VLANIF100 to 100 milliseconds and the number of the packets sent each time to 50.
<HUAWEI> system-view
[HUAWEI] interface vlanif 100
[HUAWEI-Vlanif100] rip pkt-transmit interval 100 number 50
# Set the interval for sending packets on GE1/0/1 to 100 milliseconds and the number of the packets sent each time to 50.
<HUAWEI> system-view [HUAWEI] interface gigabitethernet 1/0/1 [HUAWEI-GigabitEthernet1/0/1] undo portswitch [HUAWEI-GigabitEthernet1/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.
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 vlanif 100 [HUAWEI-Vlanif100] rip poison-reverse
# Enable poison reverse on GE1/0/1.
<HUAWEI> system-view [HUAWEI] interface gigabitethernet 1/0/1 [HUAWEI-GigabitEthernet1/0/1] undo portswitch [HUAWEI-GigabitEthernet1/0/1] rip poison-reverse
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.
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. |
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).
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 VLANIF100.
<HUAWEI> system-view
[HUAWEI] interface vlanif 100 [HUAWEI-Vlanif100] rip replay-protect
# Enable the replay-protect function on GE1/0/1.
<HUAWEI> system-view [HUAWEI] interface gigabitethernet 1/0/1 [HUAWEI-GigabitEthernet1/0/1] undo portswitch [HUAWEI-GigabitEthernet1/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.
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.
rip summary-address
Function
The rip summary-address command configures a RIP switch to advertise a local summarized IP address.
The undo rip summary-address command disables a RIP switch from advertising a local summarized IP address.
By default, a RIP switch 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. | - |
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 switch to advertise a local summarized IP address.
<HUAWEI> system-view [HUAWEI] interface vlanif 100 [HUAWEI-Vlanif100] rip summary-address 10.0.0.0 255.0.0.0
# Configure the switch to advertise a local summarized IP address.
<HUAWEI> system-view [HUAWEI] interface gigabitethernet 1/0/1 [HUAWEI-GigabitEthernet1/0/1] undo portswitch [HUAWEI-GigabitEthernet1/0/1] rip summary-address 10.0.0.0 255.0.0.0
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 must be an existing VPN instance name. |
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 switch, a switch 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 switch 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.
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.
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. |
- |
Usage Guidelines
Usage Scenario
- If the version of RIP is not set, a device sends RIP-1 packets in broadcast mode and receives the RIP-1 and RIP-2 packets that are sent in broadcast mode.
- If the RIP version is set to RIP-1, a device sends only RIP-1 packets in broadcast mode and receives the RIP-1 packets that are sent in broadcast mode.
- If the RIP version is set to RIP-2, a device sends only RIP-2 packets in multicast mode and receives RIP-2 packets that are sent in multicast or broadcast mode.
- If the RIP version is set to multicast RIP-2, a device sends RIP-2 packets in multicast mode and receives RIP-2 packets that are sent in multicast mode.
- If the RIP version is set to broadcast RIP-2, a device sends RIP-2 packets in broadcast mode and receives RIP-1 and RIP-2 packets.
Precautions
You can also set a RIP version in a RIP process, but the RIP version that is set on an interface has a higher priority.
Example
# Send RIP-2 packets in broadcast mode.
<HUAWEI> system-view [HUAWEI] interface vlanif 100 [HUAWEI-Vlanif100] rip version 2 broadcast
# Send RIP-2 packets in broadcast mode.
<HUAWEI> system-view [HUAWEI] interface gigabitethernet 1/0/1 [HUAWEI-GigabitEthernet1/0/1] undo portswitch [HUAWEI-GigabitEthernet1/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. | - |
Usage Guidelines
Usage Scenario
When a switch running RIP is connected to a network running other routing protocols, you can run the silent-interface command on the interface that connects the switch 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.
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
<HUAWEI> system-view
[HUAWEI] rip 100
[HUAWEI-rip-100] silent-interface vlanif 100
[HUAWEI-rip-100] peer 10.1.1.1
<HUAWEI> system-view
[HUAWEI] rip 100
[HUAWEI-rip-100] silent-interface disable vlanif 100
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. |
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.
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.
Parameters
Parameter | Description | Value |
---|---|---|
always | Enables classful summarization no matter whether split horizon is configured. | - |
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 switch to handle more routes.
When classful summarization is enabled, the switch 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.
- 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.
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.
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. |
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, switchs cannot inform neighbors on time if RIP routes change during the update time.
Generally, the default values of the timers do not need to be changed, and thus the timers rip command must be used with caution.
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.
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.
It is not recommended that you disable source address check.
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.
Parameters
Parameter | Description | Value |
---|---|---|
1 | Sets the global RIP version to RIP-1. |
- |
2 | Sets the global RIP version to RIP-2. |
- |