Set origin – Enterasys Networks X-Pedition XSR CLI User Manual

Page 316

Advertising
background image

BGP Set Commands

6-120 Configuring the Border Gateway Protocol

Mode

Route‐map configuration: 

XSR(config-route-map)#

Default

The dynamically‐learned metric value.

Example

The following example displays how the set metric command is used to update the value of the 
MED value for BGP routes that are advertised to an external neighbor:

XSR(config)#access-list 66 permit 10.0.0.0 255.0.0.0
XSR(config)#route-map 1 permit 1
XSR(config-route-map)#match ip address 66
XSR(config-route-map)#set metric 20
XSR(config-route-map)#exit
XSR(config)#route-map 1 permit 2
XSR(config-route-map)#set metric 30
XSR(config-route-map)#exit
XSR(config)#router bgp 100
XSR(config-router)#neighbor 192.168.1.1 remote-as 101
XSR(config-router)#neighbor 192.168.1.1 route-map 1 out

The set metric command is used to change the value of the MED, which impacts the flow of 
inbound traffic into a multi‐homed AS. All of the outbound updates leaving this router and 
matching ACL 66 will have MED value of 20 assigned to them. All of the remaining updates will 
have the MED value of 30. A lower value of MED is preferred in the BGP route selection process.

set origin

This command assigns a value to the origin attribute in the BGP routing update message which 
impacts BGP route selection. Ensure that a match clause has been specified.

This attribute indicates where a routing update is derived. BGP prefers routes with the lowest 
origin type: IGP is preferred over EGP and EGP is preferred over incomplete.

Syntax

set origin {igp | egp | incomplete}

Syntax of the “no” Form

The no form of this command removes BGP origin coding:

no set origin {igp | egp | incomplete}

igp

Sets BGP origin code to Interior Gateway Protocol (IGP).

egp

Sets BGP origin code to Exterior Gateway Protocol (EGP).

incomplete

Sets BGP origin code to unknown.

Advertising