7.5.5 Checking the Configuration
After the configurations of controlling BGP route advertisement are complete, you can view
filters, routes matching a specified filter, and routes advertised to BGP peers.
Prerequisites
The BGP route advertisement configurations are complete.
Procedure
l
Run the
display ip as-path-filter
[
as-path-filter-number
|
as-path-filter-name
] command
to check information about a configured AS_Path filter.
l
Run the
display ip community-filter
[
basic-comm-filter-num
|
adv-comm-filter-num
|
comm-filter-name
] command to check information about a configured community filter.
l
Run the
display ip extcommunity-filter
[
extcomm-filter-number
|
extcomm-filter-name
]
command to check information about a configured extcommunity filter.
l
Run the
display bgp routing-table
as-path-filter
{
as-path-filter-number
|
as-path-filter-
name
} command to check information about routes matching a specified AS_Path filter.
l
Run the
display bgp routing-table
community-filter
{ {
community-filter-name
|
basic-
community-filter-number
} [
whole-match
] |
advanced-community-filter-number
}
command to check information about routes matching a specified BGP community filter.
l
Run the
display bgp routing-table
peer
ipv4-address
advertised-routes
[
statistics
]
command to check information about routes advertised by a BGP device to its peers.
----End
7.6 Configuring BGP to Receive Routes
BGP is used to transmit routing information. BGP can filter received routes to accept only the
expected routes, and can modify route attributes to direct network traffic.
7.6.1 Establishing the Configuration Task
Before configuring BGP to receive routes, 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 efficiently.
Applicable Environment
BGP is used to transmit routing information between ASs. Route reception directly affects traffic
forwarding.
The BGP switch may receive routes to the same destination from different BGP peers. To control
traffic forwarding paths, the switch needs to filter the received BGP routes.
The switch may be attacked and receive a large number of routes from its BGP peers, consuming
lots of resources of the switch. Therefore, the administrator must limit the resources to be
consumed based on networking planning and switch capacities, no matter whether too many
BGP routes caused by malicious attacks or incorrect configurations.
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.
394