R3303-HP HSR6800 Routers Layer 3 - IP Routing Command Reference
254
Usage guidelines
The network route to be injected must exist in the local IP routing table, and using a routing policy makes
route management more flexible.
The ORIGIN attribute of the network route injected with the network command is IGP.
Examples
# In BGP view, inject the network segment 10.0.0.0/16 to the BGP routing table.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] network 10.0.0.0 255.255.0.0
# In BGP-VPN instance view, advertise the network segment 10.0.0.0/16 to the BGP routing table. (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
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