193
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 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).
Description
Use peer route-policy to apply a routing policy to routes incoming from or outgoing to a peer or peer
group.
Use undo peer route-policy 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 "Routing policy configuration commands" 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-ipv4-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
View
BGP view, BGP-VPN instance view
Default level
2: System level
Parameters
group-name: Name of a peer group, a sting of 1 to 47 characters.