D-Link DGS-3600 Switch User Manual


 
xStack
®
DGS-3600 Series Layer 3 Gigabit Ethernet Managed Switch CLI Manual
121
config bgp bestpath
If the routes have the same weight, use the route with the highest local preference.
If the routes have the same local preference, prefer the route that was originated by BGP on
this router. Originated from network command > from redistribute command> from aggregate
command.
If no route was originated, prefer the route with the shortest AS path.
If all paths are of the same AS length, prefer the route with lowest origin code (IGP < EGP <
INCOMPLETE).
If the origin codes are the same, prefer the path with the lowest Multi Exit Discriminator.
If the MEDs are the same, prefer external paths over internal paths. EBGP>IBGP.
Prefer the path through the closest IGP neighbor.
Prefer the path that was received first (the oldest one).
Prefer the path with the lowest BGP Router ID.
Prefer the routes advertised by the BGP speaker with a lower BGP identifier value.
Prefer the routes advertised by the BGP speaker with a lower peer address.
Parameters
always_compare_med - Enable or disable the comparison of the Multi Exit Discriminator
(MED) for paths from the neighbors in different Autonomous Systems. By default this setting
is disabled.
deterministic_med - Enable or disable to enforce the deterministic comparison of the Multi
Exit Discriminator (MED) for paths received from the neighbors within the same Autonomous
System By default this setting is disabled.
default_local_preference - The default value is 100
as_path_ignore - If enabled, the BGP process will ignore the AS path in the path selection
process. By default this value is disabled.
compare_routerid - If enabled, the BGP process will include the router ID in the path
selection process. Similar routes are compared and the route with the lowest router ID is
selected. By default this value is disabled.
med_confed - If enabled, the BGP process will compare the MED for the routes that are
received from confederation peers. For routes that have an external AS in the path, the
comparison does not occur. By default this value is disabled.
med_missing_as_worst - If enabled, the BGP process will assign a value of infinity to routes
that are missing the Multi Exit Discriminator (MED) attribute. If disabled, the BGP process will
assign a value of zero to routes that are missing the Multi Exit Discriminator (MED) attribute,
causing this route to be chosen as the best path. By default this value is disabled.
compare_confed_aspath - If enabled, the BGP process will compare the confederation AS
path length of the routes received. The shorter the confederation AS path length, the better
the route is. By default this value is disabled.
Restrictions Only Administrator and Operator-level users can issue this command.
Example usage:
To disable the comparison of the Multi Exit Discriminator (MED):
DGS-3627:admin# config bgp always_compare_med disable
Command:4# config bgp always_compare_med disable
Success.
DGS-3627:admin# config bgp bestpath compare_confed_aspath enable
Command:4# config bgp bestpath compare_confed_aspath enable
Success.