6-64
[Sysname-bgp-vpn1] peer 129.140.6.6 route-limit 10000
peer route-policy (BGP/BGP-VPN instance view)
Syntax
peer
{
group-name
|
ip-address
}
route-policy
route-policy-name
{
export
|
import
}
undo peer
{
group-name | ip-address
}
route-policy
route-policy-name
{
export
|
import
}
View
BGP view, BGP-VPN instance view
Default Level
2: System level
Parameters
group-name
: Name of a peer group, a string of 1 to 47 characters.
ip-address
: IP address of a peer.
route-policy-name
: Routing policy name, a string of 1 to 19 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).
Description
Use the
peer route-policy
command to apply a routing policy to routes incoming from or outgoing to a
peer or peer group.
Use the
undo peer route-policy
command to remove the configuration.
By default, no routing policy is applied to routes from/to the peer/peer group.
The
peer
route-policy
command does not apply the
if-match interface
clause in the referenced
routing policy. See
Route Policy Configuration Commands
in the
Layer 3 - IP Routing Command
Reference
for related commands.
Examples
# In BGP view, apply routing policy
test-policy
to routes outgoing to the peer group
test
.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] peer test route-policy test-policy export
# In BGP-VPN instance view, apply the routing policy
test-policy
to routes outgoing to the peer group
test
(the VPN has been created).
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ipv4-family vpn-instance vpn1
[Sysname-bgp-vpn1] peer test route-policy test-policy export
peer route-update-interval (BGP/BGP-VPN instance view)
Syntax
peer
{
group-name
|
ip-address
}
route-update-interval
interval
undo peer
{
group-name
|
ip-address
}
route-update-interval