![Huawei S6700 Series Configuration Manual Download Page 393](http://html.mh-extra.com/html/huawei/s6700-series/s6700-series_configuration-manual_169517393.webp)
If no mask or mask length is specified, the IP address is processed as a classful address.
A local route to be advertised must be in the local IP routing table. Routing policies
can be used to control the routes to be advertised more flexibly.
NOTE
l
The destination address and mask specified in the
network
command must be consistent
with those of the corresponding entry in the local IP routing table. Otherwise, the specified
route cannot be advertised.
l
When using the
undo network
command to clear the existing configuration, specify a
correct mask.
----End
7.3.5 Checking the Configuration
After basic BGP functions are configured, you can view information about BGP peers and BGP
routes.
Prerequisites
The configurations of basic BGP functions are complete.
Procedure
l
Run the
display bgp peer
[
verbose
] command to check information about all BGP peers.
l
Run the
display bgp peer
ipv4-address
{
log-info
|
verbose
} command to check log
information of a specified BGP peer.
l
Run the
display bgp routing-table
[
ipv4-address
[
mask
|
mask-length
] ] command to
check BGP routes.
----End
7.4 Configuring BGP Route Attributes
BGP has many route attributes. Configuring route attributes can change route selection results.
7.4.1 Establishing the Configuration Task
Before configuring BGP route attributes, familiarize yourself with the applicable environment,
complete the pre-configuration tasks, and obtain the data required for the configuration. This
will help you complete the configuration task quickly and accurately.
Applicable Environment
BGP has many route attributes. You can change route selection results by configuring attributes
for routes. Route attributes are listed as follows:
l
BGP preference
Setting the BGP preference can affect route selection between BGP routes and other routing
protocols' routes.
l
Preferred values
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.
374