F3726, F3211, F3174, R5135, R3816-HP Firewalls and UTM Devices Network Management Command Reference-6PW100

Table Of Contents
484
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.
Syntax
peer { group-name | ip-address } advertise-community
undo peer { group-name | ip-address } advertise-community
Default
No community attribute is advertised to any peer group/peer.
Views
BGP view, BGP-VPN instance view