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.