host-route

Function

The host-route command enables learning of host routes from RIPv1 neighbors.

The undo host-route command disables host route learning.

By default, host route is enabled.

Format

host-route

undo host-route

Parameters

None

Views

RIP view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
rip write

Usage Guidelines

Usage Scenario

By default, after receiving a RIP-1 route, the device selects the mask according to the following rules:

  • If the IP address carried in the received RIP-1 route and the IP address of the interface that receives the RIP-1 route belong to the same network segment, the mask of the RIP-1 route is that of the interface.
  • If the IP address carried in the received RIP-1 route and the IP address of the interface that receives the RIP-1 route belong to different network segments, the mask of the RIP-1 route is a natural mask.

    After the host-route command is run, if the IP address carried in the received RIP-1 route and the IP address of the interface that receives the RIP-1 route belong to the same network segment, the mask carried in the RIP-1 route is adopted.

Precautions

This command applies to RIP-1. In RIP-2, host routes are added to the routing table, regardless of whether the command is run.

Example

# Enable host route learning in RIP process 1.
<HUAWEI> system-view
[~HUAWEI] rip 1
[*HUAWEI-rip-1] host-route
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >