380
route-policy-name
: Specifies a routing policy by its name, a case-sensitive string of 1 to 63 characters.
export
: Applies the routing policy to routes outgoing to the peer or peer group.
import
: Applies the routing policy to routes incoming from the peer or peer group.
Usage guidelines
The specified routing policy must have been configured with the
route-policy
command in system view.
Otherwise, all routes can pass the routing policy.
The
if-match interface
command, if configured for the referenced routing policy, does not take effect for
routes.
Examples
# In BGP IPv4 unicast address family view, apply routing policy
test-policy
to routes outgoing to the peer
group
test
.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] address-family ipv4 unicast
[Sysname-bgp-ipv4] peer test route-policy test-policy export
# In BGP-VPN IPv6 unicast address family view, apply the routing policy
test-policy
to routes outgoing to
the peer group
test
.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ip vpn-instance vpn1
[Sysname-bgp-vpn1] address-family ipv6 unicast
[Sysname-bgp-ipv6-vpn1] peer test route-policy test-policy export
Related commands
•
filter-policy export
•
filter-policy import
•
peer as-path-acl
•
peer filter-policy
•
peer prefix-list
•
route-policy
peer route-update-interval
Use
peer route-update-interval
to specify an interval for sending the same update to a peer or peer
group.
Use
undo peer route-update-interval
to restore the default.
Syntax
peer
{
group-name
|
ip-address
|
ipv6-address
}
route-update-interval
interval
undo peer
{
group-name
|
ip-address
|
ipv6-address
}
route-update-interval
Default
The interval for sending the same update to an IBGP peer is 15 seconds and the interval for sending the
same update to an EBGP peer is 30 seconds.