< Home

routing-table rib-only

Function

The routing-table rib-only command prevents BGP routes from being added into the IP routing table.

The undo routing-table rib-only command restores the default setting.

By default, the preferred BGP routes are added to the IP routing table.

Format

routing-table rib-only [ route-policy route-policy-name ]

undo routing-table rib-only

Parameters

Parameter Description Value
route-policy route-policy-name Specifies the name of a Route-Policy. 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

BGP view, BGP-IPv4 unicast address family view, BGP-IPv6 unicast address family view, BGP-VPN instance IPv4 address family view, BGP-VPN instance IPv6 address family view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

In BGP/MPLS IP VPN networking, if the BGP routing table has large numbers of VPN routes, these routes will consume large numbers of memory resources after being delivered to the IP VPN routing table. If these routes are not used in traffic forwarding, you can run the routing-table rib-only command to prevent these routes from being added to the IP VPN routing table. If some of these routes are not used in traffic forwarding, you can run the routing-table rib-only route-policy command to prevent this part of routes from being added to the IP VPN routing table.

If a route reflector (RR) is used and preferred BGP routes do not need to be used during the forwarding, the routing-table rib-only command can be used to make BGP routes unable to be added to the IP routing table or the forwarding layer. This improves forwarding efficiency and the system capacity.

When route-policy route-policy-name is specified in the command, the routes matching the policy are not added to the IP routing table, and the routes not matching the policy are added to the IP routing table with the route attributes unchanged.

Configuration Impact

After the routing-table rib-only command is run, the routes preferred by BGP are not added to the IP routing table.

The routing-table rib-only command does not take effect on the labeled routes.

Precautions

The routing-table rib-only command and the active-route-advertise command are mutually exclusive.

Creating a route-policy before it is referenced is recommended. By default, nonexistent route-policies cannot be referenced using the command. If the route-policy nonexistent-config-check disable command is run in the system view and a nonexistent route-policy is referenced using the current command, all routes are not delivered to the IP routing table.

Example

# Configure the routing policy named ribonly to prevent certain BGP routes from being added into the IP routing table.

<HUAWEI> system-view
[HUAWEI] bgp 100
[HUAWEI-bgp] routing-table rib-only route-policy ribonly
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >