7 bgp bestpath med – CANOGA PERKINS CanogaOS Command Reference User Manual

Page 282

Advertising
background image

CanogaOS Command Line Reference

Revision 1.02

Proprietary & Confidential Canoga Pertkins Metro Ethernet Switches

Page 282 of 855

Router mode

Usage

When comparing similar routes from peers the BGP router does not consider router ID of the routes. By
default, it selects the first received route. Use this command to include router ID in the selection process;
similar routes are compared and the route with lowest router ID is selected. The router-id is the highest IP
address on the router, with preference given to loopback addresses. Router-id can be manually set by using
the bgp router-id command.

Examples

Switch# configure terminal
Switch(config) router bgp 100
Switch(config-router) bgp bestpath compare-routerid

Related Commands

show ip bgp, show ip bgp neighbors


16.7 bgp bestpath med

Use this command to specify Multi Exit Discriminator (MED) attribute comparison.
Use the no parameter with this command to prevent BGP from considering the MED attribute in comparing
paths.

Command Syntax

bgp bestpath med confed|missing-as-worst
bgp bestpath med missing-as-worst confed
confed Compares MED among confederation paths
missing-as-worst Treats missing MED as the least preferred one

Command Mode

Router mode

Default

MED value is zero.

Usage

Use this command to specify two MED attributes--confed and missing-as-worst. The confed attribute enables
MED comparison among paths learned from confederation peers. The MEDs are compared only if there is no
external autonomous system (an AS not within the confederation) in the path. If there is an external
autonomous system in the path, the MED comparison is not made.
The missing-as-worst attribute to consider a missing MED attribute in a path as having a value of infinity,

Advertising