To do...
Configure preferences for external,
internal, local MBGP routes
Configuring the default local preference
Follow these steps to configure the default local preference:
To do...
Enter system view
Enter BGP view
Enter IPv4 MBGP address family
view
Configure the default local
preference
Configuring the MED attribute
When other conditions of routes to a destination are identical, the route with the smallest MED is
selected.
Follow these steps to configure the MED attribute:
To do...
Enter system view
Enter BGP view
Enter IPv4 MBGP address family
view
Configure the
MED attribute
Use the command...
preference { external-preference
internal-preference local-
preference | route-policy route-
policy-name }
Use the command...
system-view
bgp as-number
ipv4-family multicast
default local-preference value
Use the command...
system-view
bgp as-number
ipv4-family multicast
Configure the
default med med-value
default MED value
Enable the
comparison of the
compare-different-as-med
MED of routes from
different ASs
Enable the
comparison of the
bestroute compare-med
MED of routes from
each AS
Enable the
comparison of the
MED of routes from
bestroute med-confederation
confederation
peers
227
Remarks
Optional
The default preferences of
multicast MBGP eBGP, MBGP
iBGP, and local MBGP routes are
255, 255, and 130,
respectively.
Remarks
—
—
—
Optional
100 by default.
Remarks
—
—
—
Optional
0 by default.
Optional
Not enabled by default
Optional
Not enabled by default
Optional
Not enabled by default