beautypg.com

4 bgp bestpath as-path ignore, 5 bgp bestpath compare-confed-aspath – CANOGA PERKINS 9175 Command Reference User Manual

Page 248

background image

CanogaOS Command Reference

16-3

Command Mode

Router mode

Usage

Multi Exit Discriminator (MED) is used in best path selection by BGP. MED is compared after BGP attributes

weight, local preference, AS-path and origin have been compared and are equal.

MED comparison is done only among paths from the same autonomous system (AS). Use bgp

always-comparemed command to allow comparison of MEDs from different ASs. The MED parameter is used

to select the best path. A path with lower MED is preferred.

Examples

Switch# configure terminal

Switch(config)# router bgp 100

Switch(config-router)# bgp always-compare-med

Related Commands

bgp bestpath med, bgp bestpath as-path ignore

16.4 bgp bestpath as-path ignore

Use this command to prevent the router from considering as-path as a factor in the algorithm for choosing a

route.

Use the no parameter with this command to allow the router to consider as-path in choosing a route.

Command Syntax

(no) bgp bestpath as-path ignore

Command Mode

Router mode

Examples

Switch# configure terminal

Switch(config) router bgp 100

Switch(config-router) bgp bestpath as-path ignore

Related Commands

bgp always-compare-med, bgp bestpath med, bgp bestpath compare-routerid

16.5 bgp bestpath compare-confed-aspath

Use this command to allow comparing of the confederation AS path length.