![Huawei S6700 Series Скачать руководство пользователя страница 434](http://html.mh-extra.com/html/huawei/s6700-series/s6700-series_configuration-manual_169517434.webp)
7.9.5 (Optional) Preventing BGP Routes from Being Added into the
IP Routing Table
Disabling BGP route delivery to the IP routing table on an RR can prevent traffic from being
forwarded by the RR, improving route advertisement efficiency.
Context
Usually, BGP routes are delivered to the IP routing table on the switch to guide traffic forwarding.
If the switch does not need to forward traffic, disable BGP route delivery to the IP routing table
on the switch.
BGP route delivery to the IP routing table is generally disabled on RRs. An RR transmits routes
and forwards traffic within an AS. If the RR is connected to many clients and non-clients, the
route transmission task will consume a lot of CPU resources of the RR and cause the RR unable
to implement traffic forwarding. To improve the efficiency of route transmission, disable BGP
route delivery to the IP routing table on the RR to make the RR dedicated to route transmission.
Perform the following steps on the switch that is running BGP.
Procedure
Step 1
Run:
system-view
The system view is displayed.
Step 2
Run:
bgp
as-number
The BGP view is displayed.
Step 3
Run:
ipv4-family
unicast
The IPv4 unicast address family view is displayed.
Step 4
Run:
bgp-rib-only
[
route-policy
route-policy-name
]
BGP route delivery to the IP routing table is disabled.
The routes preferred by BGP are delivered to the IP routing table by default.
If
route-policy
route-policy-name
is configured in the
bgp-rib-only
command, routes matching
the policy are not delivered to the IP routing table, and routes not matching the policy are
delivered to the IP routing table, with the route attributes unchanged.
NOTE
The
bgp-rib-only
command and the
active-route-advertise
command are mutually exclusive.
----End
7.9.6 Checking the Configuration
After configuring BGP RRs, you can view BGP RR configurations and routing information
transmitted by BGP.
S6700 Series Ethernet Switches
Configuration Guide - IP Routing
7 BGP Configuration
Issue 01 (2012-03-15)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
415