BGP understanding-Part 2
BGP understanding-Part 2
© 2001, Cisco Systems, Inc. www.cisco.com Route Filtering and Route Selection in BGP-3
Objectives
© 2001, Cisco Systems, Inc. Route Filtering and Route Selection in BGP-4
Multi-homed Customers
Business Requirements
Internet
Service Provider #1
Multi-homed
Customer
Service Provider #2
© 2001, Cisco Systems, Inc. Route Filtering and Route Selection in BGP-5
Multi-homed Customers
Technical Requirements
Internet
Service Provider #1
Multi-homed P
BG
Customer
Service Provider #2
BGP
Multi-homed P
BG
Customer
Service Provider #2
BGP
Network
Network Next
Next Hop
Hop Metric
Metric LocPrf
LocPrf Weight
Weight Path
Path
*>
*> 1.0.0.0
1.0.0.0 0.0.0.0
0.0.0.0 00 32768
32768 ii
** 21.0.0.0
21.0.0.0 3.4.5.6
3.4.5.6 00 37
37 21
21 ii
*>
*> 2.3.4.5
2.3.4.5 00 00 21 i
21 i
*>
*> 37.0.0.0
37.0.0.0 3.4.5.6
3.4.5.6 00 00 37
37 ii
** 2.3.4.5
2.3.4.5 00 21
21 37
37 ii
** 40.0.0.0
40.0.0.0 3.4.5.6
3.4.5.6 00 00 37
37 40
40 ii
*>
*> 2.3.4.5
2.3.4.5 00 21
21 40
40 ii
© 2001, Cisco Systems, Inc. Route Filtering and Route Selection in BGP-8
Routing Policies for Multi-
Homed Customers
Multi-homed customers could require a
number of routing policies, for example:
• One provider is primary, the other is backup
• Traffic to direct customers of the ISPs go
direct, all other traffic goes through the
primary provider
• All transatlantic traffic goes through one ISPs
• Traffic toward a specific destination goes only
through one of the ISPs
© 2001, Cisco Systems, Inc. Route Filtering and Route Selection in BGP-9
Primary/Backup Provider
Another Internet
Customer Backup ISP Upstream AS
Multi-homed k
lin
Customer k up Primary ISP
c
Ba
Primary
link
Multi-homed k
lin
Customer k up Primary ISP
c
Ba
Primary
link
© 2001, Cisco Systems, Inc. Route Filtering and Route Selection in BGP-11
Transit Traffic Issue
Internet
Service Provider #1
Multi-homed
Customer
Service Provider #2
Multi-homed P
BG
Customer
AS123 Service Provider #2
21.0.0.0/8 BGP
Network=10.0.0.0/8
AS-Path=123
Multi-homed k
lin
Customer k up Primary ISP
c
Ba
Primary
link
© 2001, Cisco Systems, Inc. Route Filtering and Route Selection in BGP-15
Summary
© 2001, Cisco Systems, Inc. Route Filtering and Route Selection in BGP-16
Review Questions
• Why would a customer want connection to two
service providers?
• What are the technical requirements for multi-
homed customers?
• Which routing protocol needs to be deployed
between multi-homed customers and the ISP?
• Why do we need to influence BGP route selection
rules?
• List three potential customer routing policies
• What are the issues an ISP with multi-homed
customers is facing?
© 2001, Cisco Systems, Inc. Route Filtering and Route Selection in BGP-17
AS-Path Filters
© 2001, Cisco Systems, Inc. www.cisco.com Route Filtering and Route Selection in BGP-18
Objectives
© 2001, Cisco Systems, Inc. Route Filtering and Route Selection in BGP-19
AS Path Filtering
Several scenarios require BGP route filtering
based on AS-path
• Announce only local routes to the ISP - AS-
path needs to be empty
• Select routes based on a specific AS-number
in the AS-path
• Accept routes for specific AS only from some
BGP neighbors
AS-path filters use regular expressions
© 2001, Cisco Systems, Inc. Route Filtering and Route Selection in BGP-20
AS Path Regular Expressions
27 31 23 317 223
© 2001, Cisco Systems, Inc. Route Filtering and Route Selection in BGP-21
Regular Expressions
Simple String Matches
• String of characters in regular expression
matches any equivalent substring in AS
path
© 2001, Cisco Systems, Inc. Route Filtering and Route Selection in BGP-22
Regular Expressions
Alternatives
• Expression
expr1|expr2
matches the string if either subexpression
matches the string
© 2001, Cisco Systems, Inc. Route Filtering and Route Selection in BGP-23
Regular Expressions
Ranges and Wildcard Characters
• A range of characters matches any single
character in the range
examples:[1234] or [1-4]
• dot (.) matches any single character
how many times does [1-3].[34] match
|213 317 2316 31|
answer:
|213 317 2316 31|
|213 317 2316 31|
© 2001, Cisco Systems, Inc. Route Filtering and Route Selection in BGP-24
Regular Expressions
Matching Delimiters
^ matches beginning of string
$ matches end of string
_ matches any delimiter (beginning,
end, whitespace, tab, comma)
how many times does ^21, 31$, _31_ match
|213 317 218 31 731|
answer:
|213 317 218 31 731|
© 2001, Cisco Systems, Inc. Route Filtering and Route Selection in BGP-25
Regular Expressions
Grouping
Parenthesis can be used to group smaller
regular expressions into larger expressions
© 2001, Cisco Systems, Inc. Route Filtering and Route Selection in BGP-26
Regular Expressions
Special Characters
© 2001, Cisco Systems, Inc. Route Filtering and Route Selection in BGP-27
Regular Expressions
Repeating Operators
* matches zero or more atoms
? matches zero or one atom
+ matches one or more atoms
© 2001, Cisco Systems, Inc. Route Filtering and Route Selection in BGP-28
Sample Regular Expressions
© 2001, Cisco Systems, Inc. Route Filtering and Route Selection in BGP-29
Configuring BGP AS-path
Filters
router(config)#
ip as-path access-list number permit|deny regexp
router(config-router)#
neighbor ip-address filter-list as-path-filter in|out
© 2001, Cisco Systems, Inc. Route Filtering and Route Selection in BGP-30
AS-path BGP Filters
My router
BGP
table
Incoming neighbor Outgoing neighbor
© 2001, Cisco Systems, Inc. Route Filtering and Route Selection in BGP-31
Testing your Regular
Expressions
router#
show ip bgp regexp expression
wg6r1#show ip as-path-access-list
AS path access list 6
permit ^$
AS path access list 7
deny _213_
permit .*
AS path access list 8
permit _214_
AS path access list 25
permit _42_
AS path access list 27
deny _22_|_51$
permit .*
© 2001, Cisco Systems, Inc. Route Filtering and Route Selection in BGP-33
Display the Routes Matched
by a Regular Expression
wg6r1#show ip bgp regexp ^\(65002_
BGP table version is 85, local router ID is 197.6.2.1
Status codes: s suppressed, d damped, h history, * valid, > best, i -
internal
Origin codes: i - IGP, e - EGP, ? - incomplete
© 2001, Cisco Systems, Inc. Route Filtering and Route Selection in BGP-34
Display the Routes Matched
by a Filter List
wg6r1#show ip as-path-access-list 25
AS path access list 25
permit _42_
© 2001, Cisco Systems, Inc. Route Filtering and Route Selection in BGP-35
Example: Filter Transit Routes
Internet
Service Provider #1
Multi-homed
Customer
Service Provider #2
© 2001, Cisco Systems, Inc. Route Filtering and Route Selection in BGP-36
Summary
© 2001, Cisco Systems, Inc. Route Filtering and Route Selection in BGP-37
Regular Expressions Review
Questions
• What does a regular expression 27 match?
• List at least one AS-path matched by the regular
expression $27_
• What is the difference between regular expressions
76 and _76_
• What is the difference between _100_ and _100$
• What is the difference between _100$ and [ ]100$
• How do you match AS-paths that contain exactly
two AS-numbers?
© 2001, Cisco Systems, Inc. Route Filtering and Route Selection in BGP-38
AS-path Filters Review
Questions
• How can you test your regular expression?
• How can you test your AS-path filter before
using it?
• What are the steps needed to apply new
inbound routing policy to a neighbor?
• What is the recommended AS-path filter to be
used by multi-homed customers?
• What is the recommended AS-path filter to be
used by ISP with multi-homed customers?
© 2001, Cisco Systems, Inc. Route Filtering and Route Selection in BGP-39
Prefix-List Filters
© 2001, Cisco Systems, Inc. www.cisco.com Route Filtering and Route Selection in BGP-40
Objectives
© 2001, Cisco Systems, Inc. Route Filtering and Route Selection in BGP-41
Requirements for Prefix-Based
Filters
Internet
Service Provider #1
Multi-homed P
BG
Customer
AS123 Service Provider #2
21.0.0.0/8 BGP
Network=10.0.0.0/8
AS-Path=123
© 2001, Cisco Systems, Inc. Route Filtering and Route Selection in BGP-42
Traditional Prefix Filters
• Traditional IP prefix filters were
implemented with IP access-lists
configured on distribute-list command
• IP access-lists used as route filters have
several drawbacks:
• Subnet mask cannot be matched
• Access-list is evaluated sequentially for
every IP prefix in the routing update
• Access-lists are hard to edit
© 2001, Cisco Systems, Inc. Route Filtering and Route Selection in BGP-43
Prefix Lists - New Route
Filtering Mechanism
• Significant performance improvement on long filters
• Inside IOS the prefix list is a tree structure and is not scanned
sequentially
• Support for incremental updates
• Individual entries in prefix lists can be inserted or deleted
• More user-friendly command-line interface
• The command-line interface for using access lists to filter
BGP updates is difficult to understand and use, since it uses
the packet filtering format.
• Greater flexibility — can match on subnet masks
© 2001, Cisco Systems, Inc. Route Filtering and Route Selection in BGP-44
Prefix Lists Compared to IP
Access Lists
• Key access list features are preserved:
• Filtering using “permit” or “deny”
• Order dependency (first match wins)
• Security-focused: no match means deny
• The matching mechanism has changed
• Match routes in a part of address space with
subnet mask longer or shorter than a set
number
© 2001, Cisco Systems, Inc. Route Filtering and Route Selection in BGP-45
Prefix List Syntax
router(config)#
© 2001, Cisco Systems, Inc. Route Filtering and Route Selection in BGP-46
Prefix List Matching Rules
192.168.0.0/16 192.168.0.0/20 192.168.2.0/24
© 2001, Cisco Systems, Inc. Route Filtering and Route Selection in BGP-47
Prefix List Matching Rules
A prefix list entry with ge or le option matches
any prefix within specified address space where
the subnet mask falls within specified limits
© 2001, Cisco Systems, Inc. Route Filtering and Route Selection in BGP-48
More Prefix-list Examples
BGP
table
Incoming neighbor Outgoing neighbor
© 2001, Cisco Systems, Inc. Route Filtering and Route Selection in BGP-51
Displaying Prefix Lists
router#
show ip prefix-list [list-name] [detail|summary]
© 2001, Cisco Systems, Inc. Route Filtering and Route Selection in BGP-52
Modifying Prefix Lists
router#
show ip prefix-list list-name
© 2001, Cisco Systems, Inc. Route Filtering and Route Selection in BGP-54
Prefix-List Example
Filtering Peer Prefixes
• Requirement: the ISP will not accept routes with Internet
subnet masks longer than /24, subnet masks
Backup ISP
from class-B address space shall be no longer
than /20
Multi-homed k
lin
Customer k up Primary ISP
c
Ba
Primary
link
© 2001, Cisco Systems, Inc. Route Filtering and Route Selection in BGP-55
Summary
© 2001, Cisco Systems, Inc. Route Filtering and Route Selection in BGP-56
Review Questions
• What are the benefits of prefix-lists as
compared to IP access lists?
• Why would an ISP with multi-homed
customers need prefix lists?
• Why would an ISP deploy prefix lists against
updates from another ISP?
• How are the prefix lists and the AS-path filters
combined?
© 2001, Cisco Systems, Inc. Route Filtering and Route Selection in BGP-57
Route-Maps as BGP
Filters
© 2001, Cisco Systems, Inc. www.cisco.com Route Filtering and Route Selection in BGP-58
Objectives
© 2001, Cisco Systems, Inc. Route Filtering and Route Selection in BGP-59
Route Maps as BGP Filters
• Some scenarios require complex filters
• Filters on IP prefixes coming from
specific AS-number
• Filters on other BGP attributes
• In some cases, we even need to modify
BGP attributes
• Route-maps provide solution to both
requirements
© 2001, Cisco Systems, Inc. Route Filtering and Route Selection in BGP-60
Route Maps — Review
Route maps are very complex access lists:
• lines in access-lists statements in route maps
• addresses and masks in access-lists match
conditions in route maps
• access-list number route-map name
• statements in route-maps are numbered
– you can insert and delete statements in a route-map
– you can edit match conditions in a statement
• route-map statement can modify matched route
with ‘set’ option
© 2001, Cisco Systems, Inc. Route Filtering and Route Selection in BGP-61
Route-map Syntax
© 2001, Cisco Systems, Inc. Route Filtering and Route Selection in BGP-63
Route-map Set Options
Route-maps can also change the attributes
of BGP routes:
• origin
• BGP next-hop
• weight
• BGP community
• Local Preference
• Multi-exit-discriminator (MED)
© 2001, Cisco Systems, Inc. Route Filtering and Route Selection in BGP-64
Prefix List Usage in the Route
Maps
router(config-route-map)#
match ip address prefix-list list-name
© 2001, Cisco Systems, Inc. Route Filtering and Route Selection in BGP-66
BGP Filters
My router
BGP
table
Incoming neighbor Outgoing neighbor
© 2001, Cisco Systems, Inc. Route Filtering and Route Selection in BGP-67
Summary
© 2001, Cisco Systems, Inc. Route Filtering and Route Selection in BGP-68
Review Questions
• Why would you use route-maps on BGP neighbors?
• Which BGP attributes can you match with a route-
map?
• Which BGP attributes can you set with a route-map?
• Where can you use a route-map in BGP?
• How does a set statement in an outgoing route-map
affect the BGP table?
• How are the route-maps combined with prefix-lists
and AS-path filters?
© 2001, Cisco Systems, Inc. Route Filtering and Route Selection in BGP-69
Influencing BGP Route
Selection with Weights
© 2001, Cisco Systems, Inc. www.cisco.com Route Filtering and Route Selection in BGP-70
Objectives
© 2001, Cisco Systems, Inc. Route Filtering and Route Selection in BGP-71
BGP Route Selection Criteria
• Prefer highest weight (local to router)
• Prefer highest local-preference (global within AS)
• Prefer routes that the router originated
• Prefer shorter AS paths (only length is compared)
• Prefer lowest origin code (IGP < EGP < Unknown)
• Prefer lowest MED
• Prefer external (EBGP) paths over internal (IBGP)
• For IBGP paths, prefer path through closest IGP
neighbor
• For EBGP paths, prefer oldest (most stable) path
• Prefer paths from router with the lower BGP router ID
© 2001, Cisco Systems, Inc. Route Filtering and Route Selection in BGP-72
Influencing BGP Route
Selection
BGP routing policy can be specified by
using:
• Weights, which provide local routing policy (within
a router)
• Local-preference, which provides AS-wide routing
policy
BGP weights are specified per neighbor
• default weight
• as-path based weight
• complex criteria with route-maps
© 2001, Cisco Systems, Inc. Route Filtering and Route Selection in BGP-73
Applying BGP Weights
BGP
table
Incoming neighbor
default weight
filter-list weight
My router
route-map in
(filters, weights)
© 2001, Cisco Systems, Inc. Route Filtering and Route Selection in BGP-74
Configuring Per-Neighbor
Weights
router(config-router)#
neighbor ip-address weight weights
• All routes from the BGP neighbor get the specified
weight
• BGP routes with higher weight are preferred
• Weights are only applied to new incoming updates
• To enforce new weights, reestablish BGP sessions
with your neighbors by using clear ip bgp command
© 2001, Cisco Systems, Inc. Route Filtering and Route Selection in BGP-75
Primary/Backup Provider
Customer Configuration
Another Internet
Customer Backup ISP Upstream AS
Multi-homed k
lin
Customer k up Primary ISP
c
Ba
Primary
link
© 2001, Cisco Systems, Inc. Route Filtering and Route Selection in BGP-77
Configuring Weights Based on
AS-path Filters
router(config-router)#
neighbor ip-address filter-list as-path-acl weight weights
• All routes from BGP neighbor that match specified
AS-path filter get the configured weight
• The AS-path filter is applied after the default weight
• Several AS-path filters can be configured and are
applied in sequence
• Incoming routes not matched by the filter-list AS-
path filter with weight option are not discarded, only
the weight is not affected
• Weights are only applied to new incoming updates
© 2001, Cisco Systems, Inc. Route Filtering and Route Selection in BGP-78
Local Traffic Goes Direct
Customer Configuration
Another Internet
Customer AS 21 Upstream AS
Multi-homed k
lin
Customer k up AS 37
c
Ba
Primary
link
router bgp Customer-AS
neighbor Primary-ISP weight 150
neighbor Backup-ISP weight 100
neighbor Backup-ISP filter-list 7 weight 200
!
ip as-path access-list 7 permit _21$
• Traffic to customers of backup ISP goes direct
© 2001, Cisco Systems, Inc. Route Filtering and Route Selection in BGP-79
Local Traffic Goes Direct
Routing Policy Results
Customer#show ip bgp
BGP table version is 16, local router ID is 1.2.3.4
Status codes: s suppressed, h history, * valid, > best, i - internal
Origin codes: i - IGP, e - EGP, ? - incomplete
© 2001, Cisco Systems, Inc. Route Filtering and Route Selection in BGP-80
Configuring Weights with
Route-Maps
router(config)#
router bgp as-number
neighbor ip-address route-map route-map-name in
!
route-map route-map-name permit sequence
match condition
set weight weight
© 2001, Cisco Systems, Inc. Route Filtering and Route Selection in BGP-81
Complex Route Selection
Example
• Set weight 200 to networks coming from
2.3.4.5 originated in AS 21
router bgp 123
neighbor 2.3.4.5 route-map w200 in
!
route-map w200 permit 10
match as-path 47
set weight 200
!
route-map w200 permit 20
set weight 100
!
ip as-path access-list 47 permit _21$
© 2001, Cisco Systems, Inc. Route Filtering and Route Selection in BGP-82
Monitoring BGP Route
Selection and Weights
router>
show ip bgp
• Displays all BGP routes, best routes are marked with
>, weight associated with every route is displayed
router>
show ip bgp prefix [mask]
• Displays all paths for specific BGP routes
© 2001, Cisco Systems, Inc. Route Filtering and Route Selection in BGP-83
Monitoring BGP Table
router>
show ip bgp
• Displays weights associated with all routes in BGP
table. Indicates the best route with “>”
Fred#show ip bgp
BGP table version is 11, local router ID is 12.1.2.3
Status codes: s suppressed, d damped, h history, * valid, > best, i -
internal
Origin codes: i - IGP, e - EGP, ? - incomplete
© 2001, Cisco Systems, Inc. Route Filtering and Route Selection in BGP-84
Displaying Entries in BGP
Table
router>
show ip bgp ip-prefix [mask subnet-mask]
• Displays detailed information about all paths for a
single prefix
© 2001, Cisco Systems, Inc. Route Filtering and Route Selection in BGP-85
Summary: All BGP Route-
Selection and Filtering Tools
BGP
table
Incoming neighbor Outgoing neighbor
filter-list weight
Route-map on
redistribution
My router
© 2001, Cisco Systems, Inc. Route Filtering and Route Selection in BGP-86
Summary
© 2001, Cisco Systems, Inc. Route Filtering and Route Selection in BGP-87
Review Questions
• What is the difference between local-preference and
weight?
• How can you set BGP weights?
• What is the default weight for routes received from a
BGP neighbor?
• How would you implement primary/backup ISP
routing policy?
• When are the weights configured on a neighbor
enforced?
• What is the difference between filter-list in and filter-
list weight configuration command?
© 2001, Cisco Systems, Inc. Route Filtering and Route Selection in BGP-88
Implementing Changes
in BGP Policy
© 2001, Cisco Systems, Inc. www.cisco.com Route Filtering and Route Selection in BGP-89
Objectives
© 2001, Cisco Systems, Inc. Route Filtering and Route Selection in BGP-93
Using Soft Reconfiguration
router(config-router)#
neighbor ip-address soft-reconfiguration in
router#
clear ip bgp * | ip-address | peer-group soft out
router#
clear ip bgp * | ip-address | peer-group soft in
BGP table
Incoming neighbor
route-map in
(filters, weights)
Copy of updates
received from
neighbor filter-list weight
default weight
Distribute list in
My router
filter-list in
© 2001, Cisco Systems, Inc. Route Filtering and Route Selection in BGP-95
Using Soft Reconfiguration
Inbound
router#
clear ip bgp ip-address soft in
BGP table
route-map in
(filters, weights)
Copy of updates
received from
neighbor filter-list weight
default weight
Distribute list in
My router
filter-list in
© 2001, Cisco Systems, Inc. Route Filtering and Route Selection in BGP-96
Soft Reconfiguration
Outbound
router#
clear ip bgp ip-address soft out
BGP table
replay
Outgoing neighbor
filter-list out
route-map out
(filters, ...)
My router
© 2001, Cisco Systems, Inc. Route Filtering and Route Selection in BGP-97
Soft Reconfiguration-Related
Show Commands
Filters and route Filters and route
maps maps
BGP
table
Incoming neighbor Outgoing neighbor
© 2001, Cisco Systems, Inc. Route Filtering and Route Selection in BGP-98
BGP Route Refresh
• Inbound soft reconfiguration consumes
memory on the receiving router
It’s only needed because there is no
mechanism in standard BGP to request
retransmission of BGP routes
• BGP route refresh is an optional BGP
capability that allows a BGP router to
request retransmission of BGP routes from
a neighbor
© 2001, Cisco Systems, Inc. Route Filtering and Route Selection in BGP-99
BGP Route Refresh Operation
BGP session
RTR-A Route Refresh message RTR-B
router#
show ip bgp neighbor [address]
© 2001, Cisco Systems, Inc. Route Filtering and Route Selection in BGP-101
Show ip bgp neighbor
Cisco IOS 12.1 Printout
Router#show ip bgp neighbor 192.168.3.101
BGP neighbor is 192.168.3.101, remote AS 3, internal link
BGP version 4, remote router ID 192.168.3.101
BGP state = Established, up for 02:15:33
Last read 00:00:33, hold time is 180, keepalive interval is 60 seconds
Neighbor capabilities:
Route refresh: advertised and received
Address family IPv4 Unicast: advertised and received
Received 1417 messages, 0 notifications, 0 in queue
Sent 1729 messages, 2 notifications, 0 in queue
Route refresh request: received 9, sent 29
Minimum time between advertisement runs is 5 seconds
© 2001, Cisco Systems, Inc. Route Filtering and Route Selection in BGP-102
Summary
© 2001, Cisco Systems, Inc. Route Filtering and Route Selection in BGP-104
Limiting the Number of
Prefixes Received from
a BGP Neighbor
© 2001, Cisco Systems, Inc. www.cisco.com Route Filtering and Route Selection in BGP-105
Objectives
© 2001, Cisco Systems, Inc. Route Filtering and Route Selection in BGP-106
Limiting the Number of Routes
Received from a Neighbor
Problem definition:
• A misconfigured BGP neighbor can send a
huge number of prefixes that exhaust router’s
memory or overload the CPU (several Internet-
wide incidents have already occurred)
• All other filtering mechanisms only specify
what we’re willing to accept but not how much
• A new tool is needed to establish a hard limit
on the number of prefixes received from a
neighbor
© 2001, Cisco Systems, Inc. Route Filtering and Route Selection in BGP-107
Maximum-Prefix Command
router(config-router)#
© 2001, Cisco Systems, Inc. Route Filtering and Route Selection in BGP-108
Monitoring Maximum-Prefix
Operation
router#
show ip bgp neighbor [address]
• For neighbors with maximum-prefix configured
displays the maximum number of prefixes and the
warning threshold
• For neighbors exceeding the maximum number of
prefixes displays the reason the BGP session is idle
© 2001, Cisco Systems, Inc. Route Filtering and Route Selection in BGP-109
Monitoring Maximum-Prefix
Settings
Barney#show ip bgp neighbors 1.3.0.3
BGP neighbor is 1.3.0.3, remote AS 387, external link
Index 2, Offset 0, Mask 0x4
Community attribute sent to this neighbor
BGP version 4, remote router ID 14.1.2.3
BGP state = Established, table version = 6, up for 20:55:10
Last read 00:00:08, hold time is 180, keepalive is 60
seconds
Minimum time between advertisement runs is 30 seconds
Received 1262 messages, 0 notifications, 0 in queue
Sent 1262 messages, 0 notifications, 0 in queue
Inbound path policy configured
Outbound path policy configured
Route map for incoming advertisements is LocPref
Route map for outgoing advertisements is BackupComm
Connections established 1; dropped 0
Last reset never
No. of prefix received 2, maximum limit 5
Threshold for warning message 70%
© 2001, Cisco Systems, Inc. Route Filtering and Route Selection in BGP-110
Actions on Exceeding
Maximum Number of Prefixes
Barney#
%BGP-4-MAXPFX: No. of prefix received from 1.3.0.3 reaches 4, max 5
%BGP-3-MAXPFXEXCEED: No. of prefix received from 1.3.0.3: 6 exceed limit 5
© 2001, Cisco Systems, Inc. Route Filtering and Route Selection in BGP-111
Summary
© 2001, Cisco Systems, Inc. Route Filtering and Route Selection in BGP-112
Review Questions
• Why would you want to limit number of BGP
prefixes received from a neighbor?
• What happens when the number of configured
prefixes is exceeded?
• What happens after the BGP session with an
offending neighbor is torn down?
• When would a directly-connected BGP
neighbor stay in idle state?
© 2001, Cisco Systems, Inc. Route Filtering and Route Selection in BGP-113
Summary
After completing this lesson, you should be able
to perform the following tasks:
• Configure AS-path filters, prefix lists and route-
maps
• Filter incoming and outgoing BGP updates with AS-
path filters, prefix lists and route-maps
• Influence BGP route selection
• Monitor and troubleshoot BGP filters
• Implement non-disruptive BGP policy changes
• Limit the number of routes received from a BGP
neighbor
© 2001, Cisco Systems, Inc. Route Filtering and Route Selection in BGP-114
© 2001, Cisco Systems, Inc. Route Filtering and Route Selection in BGP-115