R3303-HP HSR6800 Routers IP Multicast Command Reference
387
Usage guidelines
The multi-exit discriminator (MED) is an external metric of a route. Different from the local preference, the
MED is exchanged between ASs and stays in the AS once it enters the AS. The route with a lower MED
is preferred. When a router running BGP obtains several routes with an identical destination but different
next-hops from various external peers, it selects the best route depending on the MED value. In the case
that all the other conditions are the same, the system selects the route with the lowest MED as the best
external route.
Examples
# Devices A and B belong to AS100 and device C belongs to AS200. C is the peer of A and B.
Configure the MED of A as 25 to make C select the path from B.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ipv6-family multicast
[Sysname-bgp-af-ipv6-mul] default med 25
default-route imported (IPv6 MBGP address family view)
Use default-route imported to enable default route redistribution into the IPv6 MBGP routing table.
Use undo default-route imported to disable the redistribution.
Syntax
default-route imported
undo default-route imported
Default
Default route redistribution is disabled.
Views
IPv6 MBGP address family view
Default command level
2: System level
Examples
# Enable default and OSPFv3 route redistribution into IPv6 MBGP.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ipv6-family multicast
[Sysname-bgp-af-ipv6-mul] default-route imported
[Sysname-bgp-af-ipv6-mul] import-route ospfv3 1
display bgp ipv6 multicast group
Use display bgp ipv6 multicast group to display IPv6 MBGP peer group information.
Syntax
display bgp ipv6 multicast group [ ipv6-group-name ] [ | { begin | exclude | include }
regular-expression ]