Configuring the med attribute, Configuring the next hop attribute – H3C Technologies H3C S10500 Series Switches User Manual
Page 259
244
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…
Use the command…
Remarks
Enter system view
system-view
—
Enter BGP view
bgp as-number
—
Enter IPv4 MBGP address family
view
ipv4-family multicast
—
Configure the default MED value
default med med-value
Optional
0 by default.
Enable the comparison of the MED
of routes from different ASs
compare-different-as-med
Optional
Not enabled by default.
Enable the comparison of the MED
of routes from each AS
bestroute compare-med
Optional
Not enabled by default.
Enable the comparison of the MED
of routes from confederation peers bestroute med-confederation
Optional
Not enabled by default.
Configuring the next hop attribute
You can use the peer next-hop-local command to specify the local router as the next hop of routes sent
to an MBGP iBGP peer or peer group. If load balancing is configured, the router specifies itself as the
next hop of route advertisements to the multicast iBGP peer or peer group regardless of whether the peer
next-hop-local command is configured.
In a third-party next-hop network (that is, when the local router has two multicast eBGP peers in a
broadcast network), the router does not specify itself as the next hop of routing information sent to the
eBGP peers unless the peer next-hop-local command is configured.
Follow these steps to specify the router as the next hop of routes sent to a peer or a peer group:
To do…
Use the command…
Remarks
Enter system view
system-view
—
Enter BGP view
bgp as-number
—
Enter IPv4 MBGP address family
view
ipv4-family multicast
—
Specify the router as the next hop
of routes sent to a peer or a peer
group
peer { group-name | ip-address }
next-hop-local
Optional
By default, IPv6 MBGP specifies
the local router as the next hop for
routes sent to an eBGP peer or a
peer group, but not for routes sent
to an MBGP iBGP peer or a peer
group.