Configuring BGP Configuring BGP Decision Attributes Command or Action Purpose Step 7 default-metric number Example: Device(config-router)# default-metric 300 (Optional) Sets a MED metric to set preferred paths to external neighbors. All routes without a MED will also be set to this value. The range is 1 to 4294967295. The lowest value is the most desirable. Step 8 bgp bestpath med missing-as-worst Example: Device(config-router)# bgp bestpath med missing-as-worst (Optional) Configures the switch to consider a missing MED as having a value of infinity, making the path without a MED value the least desirable path. Step 9 bgp always-compare med Example:
Device(config-router)# bgp always-compare-med (Optional) Configures the switch to compare MEDs for paths from neighbors in different autonomous systems. By default, MED comparison is only done among paths in the same AS. Step 10 bgp bestpath med confed Example: Device(config-router)# bgp bestpath med confed (Optional) Configures the switch to consider the MED in choosing a path from among those advertised by different subautonomous systems within a confederation. Step 11 bgp deterministic med Example: Device(config-router)# bgp deterministic med (Optional) Configures the switch to consider the MED variable when choosing among routes advertised by different peers in the same AS.
Step 12 bgp default local-preference value Example: Device(config-router)# bgp default local-preference 200 (Optional) Change the default local preference value. The range is 0 to 4294967295; the default value is 100. The highest local preference value is preferred. Step 13 maximum-paths ibgp number Example: Device(config-router)# maximum-paths 8 or Device(config-router)# maximum-paths ibgp 2 (Optional) Configures the number of paths to be added to the IP routing table. The default is to only enter the best path in the routing table. Having multiple paths allows load-balancing among the paths. • number: The number of paths to be added to the IP routing table.
Note Although the switch software allows a maximum of 32 equal-cost routes, the actual number of paths per route is dependent on the switch hardware. Configuring BGP 20