15 bgp deterministic med, 16 bgp enforce-first-as – CANOGA PERKINS CanogaOS Command Reference User Manual

Page 288

Advertising
background image

CanogaOS Command Line Reference

Revision 1.02

Proprietary & Confidential Canoga Pertkins Metro Ethernet Switches

Page 288 of 855

16.15 bgp deterministic med

Use this command to have ZebOS software compare the Multi Exit Discriminator (MED) variable when
choosing among routes advertised by different peers in the same autonomous system.
Use the no parameter with this command to disallow this setting.

Command Syntax

(no) bgp deterministic-med

Default

Disabled

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. Enable bgp deterministic
med command on all routers in the local AS, for a correct comparison result. After enabling this command, all
paths for the same prefix are grouped together and arranged according to their MED value.
Based on this comparison, the best path is then chosen.
This command compares MED variable when choosing routes advertised by different peers in the same AS,
to compare MED, when choosing routes from neighbors in different ASs use the bgp always-compare-med
command.

Examples

Switch# configure terminal
Switch(config) router bgp 100
Switch(config-router) bgp deterministic-med

Related Commands

show ip bgp, show ip bgp neighbors

16.16 bgp enforce-first-as

Use this command to enforce the first AS for the eBGP routes.
Use the no parameter with this command to disable this feature.

Command Syntax

(no) bgp enforce-first-as

Advertising