HP VPN Firewall Appliances Network Management Command Reference

485
[Sysname-bgp-ipv4-vpn1] network 10.0.0.0 255.255.0.0
network short-cut (BGP/BGP-VPN instance view)
Use network short-cut to increase the preference of a received EBGP route.
Use undo network short-cut to cancel the configuration.
Syntax
network ip-address [ mask | mask-length ] short-cut
undo network ip-address [ mask | mask-length ] short-cut
Default
A received EBGP route has a preference of 255.
Views
BGP view, BGP-VPN instance view
Default command level
2: System level
Parameters
ip-address: Specifies a destination IP address.
mask: Specifies a mask of the network address, in dotted decimal notation.
mask-length: Specifies a mask length, in the range of 0 to 32.
Usage guidelines
The preference of an EBGP route is lower than a local route. The network short-cut command allows you
configure an EBGP route as a shortcut route that has the same preference as a local route and is more
likely to become the optimal route.
Examples
# In BGP view, increase the preference of EBGP route 10.0.0.0/16.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] network 10.0.0.0 255.255.0.0 short-cut
# In BGP-VPN instance view, increase the preference of EBGP route 10.0.0.0/16. (The VPN has been
created.)
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ipv4-family vpn-instance vpn1
[Sysname-bgp-ipv4-vpn1] network 10.0.0.0 255.255.0.0 short-cut
peer advertise-community (BGP/BGP-VPN instance view)
Use peer advertise-community to advertise the community attribute to a peer/peer group.
Use undo peer advertise-community to disable the community attribute advertisement to a peer/peer
group.