R0106-HP MSR Router Series Layer 3 - IP Routing Command Reference(V7)
380
Usage guidelines
Different routing protocols might find different routes to the same destination. However, not all of those
routes are optimal. For route selection, routing protocols, direct routes, and static routes are assigned
different preferences. The route with the highest preference is preferred.
By default, the preference of an EBGP route is lower than a local route. If a device has an EBGP route and
a local route to reach the same destination, the device does not select the EBGP route. You can use the
network shortcut command to configure the EBGP route to have the same preference as the local route
so the EBGP route is more likely to become the optimal route.
You can use the preference command to modify the preferences for external and local BGP routes.
Examples
# In BGP IPv4 unicast address family view, increase the preference of EBGP route 10.0.0.0/16.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] address-family ipv4 unicast
[Sysname-bgp-ipv4] network 10.0.0.0 255.255.0.0 short-cut
# In BGP-VPN IPv6 unicast address family view, increase the preference of EBGP route 10::/16.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ip vpn-instance vpn1
[Sysname-bgp-vpn1] address-family ipv6 unicast
[Sysname-bgp-ipv6-vpn1] network 10:: 16 short-cut
Related commands
preference
non-stop-routing
Use non-stop-routing to enable BGP nonstop routing (NSR).
Use undo non-stop-routing to disable BGP NSR.
Syntax
non-stop-routing
undo non-stop-routing
The following matrix shows the support of MSR routers for the commands:
Hardware Command
com
p
atibilit
y
MSR2000 No
MSR3000 No
MSR4000 Yes
Default
BGP NSR is disabled.
Views
BGP view