1. If no policy is configured for a route, the IGP route cost for the route is advertised as the MED when EBGP and IBGP peers advertise the route.
2. MEDs can be modified by running any of the following three commands under the BGP view: 1. peer x.x.x.x route-policy abc; 2. default med X; 3. network x.x.x.x route-policy abc. Configure apply cost value (MED value) in commands 1 and 3.If all of the three are configured, they take effect in the priority order of command 1, command 2, and command 3. Note that the default med command applies only to EBGP route advertisement.3. If X in the default med 0 command is 0, the MED is the IGP cost.