Command Reference Guide

3Com Router 3000 Ethernet Family
Command Reference Guide
Chapter 5 BGP Configuration Commands
3Com Corporation
5-34
Description
Use the import-route command to redistribute routes from other protocols.
Use the undo import-route command to disable the configuration.
By default, BGP does not redistribute the routes from other protocols.
Example
# Redistribute routes from RIP.
[3Com -bgp] import-route rip
5.1.34 ip as-path-acl
Syntax
ip as-path-acl aspath-acl-number { permit | deny } as-regular-expression
undo ip as-path-acl aspath-acl-number
View
System view
Parameter
aspath-acl-number: Number of AS path list ranging from 1 to 199.
as-regular-expression: AS path regular expression.
The routing information packet of the BGP protocol includes an AS path field. During
BGP routing information exchange, all the ASs along the route are recorded in this field.
Identifying an AS path list is to compare it with a regular expression. A regular
expression is a combination of characters. For example, ^200. *100$ means all the AS
path fields that begin with AS200 and end with AS100.
The following table shows the special characters used in AS regular expressions and
their meanings.
Table 5-12 Special characters in regular expressions
Character Meaning
.
Matches any single character, including
blank space.
* Matches 0 or more patterns.
+ Matches 1 or more patterns.
^ Matches the beginning of an input string.
$ Matches the end of an input string.