HP VPN Firewall Appliances Network Management Command Reference

511
# In BGP-VPN instance view, specify the maximum number of routes that can be received from peer
129.140.6.6 to 10000, and configure the router to tear down the connection to the peer if the number is
exceeded. (The VPN has been created.)
<Sysname> system-view
[Sysname] bgp 109
[Sysname-bgp] ipv4-family vpn-instance vpn1
[Sysname-bgp-ipv4-vpn1] peer 129.140.6.6 as-number 110
[Sysname-bgp-ipv4-vpn1] peer 129.140.6.6 route-limit 10000
peer route-policy (BGP/BGP-VPN instance view)
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.
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 }
Default
No routing policy is applied to routes from/to the peer/peer group.
Views
BGP view, BGP-VPN instance view
Default command level
2: System level
Parameters
group-name: Specifies the name of a peer group, a string of 1 to 47 characters.
ip-address: Specifies the IP address of a peer.
route-policy-name: Specifies the 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).
Usage guidelines
The peer route-policy command does not apply the if-match interface clause in the referenced routing
policy.
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