259
To do…
Use the command…
Remarks
Step 3
Filter incoming routes
with an ACL or IP prefix
list
filter-policy
{
acl-number
|
ip-
prefix
ip-prefix-name
}
import
Required
Use one of the commands.
No route reception filtering is
configured by default.
You can configure a filtering policy
as needed.
If several filtering policies are
configured, they are applied in the
following sequence:
1.
filter-policy import
2.
peer filter-policy import
3.
peer as-path-acl import
4.
peer ip-prefix import
5.
peer route-policy
import
Only routes passing the first policy
can go to the next; only routes
passing all the configured policies
can be received.
Step 4
Reference a routing
policy to filter routes
from a peer or peer
group
peer
{
group-name
|
ip-address
}
route-policy
policy-name
import
Step 5
Reference an ACL to
filter routing information
from a peer or peer
group
peer
{
group-name
|
ip-address
}
filter-policy
acl-number
import
Step 6
Reference an AS path
ACL to filter routing
information from a peer
or peer group
peer
{
group-name
|
ip-address
}
as-path-acl
as-path-acl-
number
import
Step 7
Reference an IP prefix
list to filter routing
information from a peer
or peer group
peer
{
group-name
|
ip-address
}
ip-prefix
ip-prefix-name
import
Step 8
Specify the number of
prefixes that can be
received from a peer or
peer group
peer
{
group-name
|
ip-address
}
route-limit
prefix-number
[ {
alert-only
|
reconnect
reconnect-time
} |
percentage-
value
] *
The number is not limited by
default.
•
Only routes permitted by the specified filtering policies can be installed into the local BGP routing table.
•
Members of a peer group can have different route reception filtering policies from the peer group.
Enabling BGP and IGP route synchronization
By default, when a BGP router receives an iBGP route, it only checks the reachability of the
route’s next hop before advertisement. With BGP and IGP synchronization configured, the BGP
router cannot advertise the route to eBGP peers unless the route is also available in the IGP
routing table.
To do…
Use the command…
Remarks
Step 1
Enter system view
system-view
—
Step 2
Enter BGP view
bgp
as-number
—