default med (BGP-IPv4 multicast address family view)

Function

The default med command sets the default MED for MBGP routes.

The undo default med command restores the default configuration.

By default, the MED value of an imported route equals the cost of the imported route; the MED value carried in a route learned.

Format

default med medVal

undo default med

Parameters

Parameter Description Value
medVal

Specifies the MED for MBGP routes.

The value is an integer ranging from 0 to 4294967295.

Views

BGP-IPv4 multicast address family view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
bgp write

Usage Guidelines

Usage Scenario

The system prefers the route with the smallest MED for the traffic entering the local AS if the other attributes of multiple available routes are the same.

Example

# Configure the default MED for MBGP routes.
<HUAWEI> system-view
[~HUAWEI] bgp 100
[*HUAWEI-bgp] ipv4-family multicast
[*HUAWEI-bgp-af-multicast] default med 10
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >