MED can be specified as an argument with the aspath-option field of the:
Any packets sent to this group of bgp peers will have the MED in the BGP packet modified to be the MED value from this AS. The MED is specified as part of the AS Path optional [aspath-opt] attributes. The MED is specified on the aspath-opt attribute is only for testing purpose. The metricout parameter is a more uniform parameter to set MED.
Other AS Path optional attributes are:
Any packets received for the bgp peer and aspath will also be check for MED within the bgp packet of this value. The MED is specified as part of the AS Path optional (aspath-opt) attributes.
Any packets exported to a bgp neighbor may select routes to be sent by specifying MED on the source bgp protocol. In addition, packets exported to a peer may have the MED modified by specifying MED as part of the AS PATH modified.
group type [internal | external] peeras 185 aspath-opt { MED [number] } { peer host-addr; }
Examples of this code are:group type internal peeras 185 aspath-opt { MED 20 } { peer 198.108.60.43; } group type internal peeras 185 aspath-opt { MED 30 } { peer 198.108.60.43; } group type external peeras 65 aspath-opt { MED 40 # please note that MED to an external # per has no defined meaning in BGP } { peer 198.108.60.43; }
import proto bgp as as-id
aspath-opt {
MED [number]
} [pref [number]]
{
route-filter;
};
Example of this code is:
import proto bgp as 185
aspath-opt
{
MED 20
}
{
128.2 restrict;
all;
}
export proto bgp as 2750
{
proto bgp as 2704
aspath-opt {
MED number
}
{
route-filter
}
}
export proto bgp as 2750
mod-aspath
{
MED 10
}
{
proto bgp as 2704
{
route-filter;
}
proto bgp aspath any
{
route-filter;
}
};
MED can be specified as an argument with the aspath-option field of the:
Any packets sent to this group of bgp peers will have the MED in the BGP packet modified to be the MED value from this AS. The MED is specified as part of the AS Path optional [aspath-opt] attributes. The MED is specified on the aspath-opt attribute is only for testing purpose. The metricout parameter is a more uniform parameter to set MED.
Other AS Path optional attributes are:
Any packets received for the bgp peer and aspath will also be check for MED within the bgp packet of this value. The MED is specified as part of the AS Path optional (aspath-opt) attributes.
Any packets exported to a bgp neighbor may select routes to be sent by specifying MED on the source bgp protocol. In addition, packets exported to a peer may have the MED modified by specifying MED as part of the AS PATH modified.
group type [internal | external] peeras 185 aspath-opt { MED [number] } { peer host-addr; }
Examples of this code are:group type internal peeras 185 aspath-opt { MED 20 } { peer 198.108.60.43; } group type internal peeras 185 aspath-opt { MED 30 } { peer 198.108.60.43; } group type external peeras 65 aspath-opt { MED 40 # please note that MED to an external # per has no defined meaning in BGP } { peer 198.108.60.43; }
import proto bgp as as-id
aspath-opt {
MED [number]
} [pref [number]]
{
route-filter;
};
Example of this code is:
import proto bgp as 185
aspath-opt
{
MED 20
}
{
128.2 restrict;
all;
}
export proto bgp as 2750
{
proto bgp as 2704
aspath-opt {
MED number
}
{
route-filter
}
}
export proto bgp as 2750
mod-aspath
{
MED 10
}
{
proto bgp as 2704
{
route-filter;
}
proto bgp aspath any
{
route-filter;
}
};