beautypg.com

25 set origin – CANOGA PERKINS 9175 Command Reference User Manual

Page 355

background image

CanogaOS Command Reference

19-24

Note:

This command is valid for OSPF only.


Command Syntax

set metric-type {type1 | type2}

no set metric-type

Syntax Description

type1

Select to set external type 1 metric.

type2

Select to set external type 2 metric.

Command Mode

Route-map mode

Defaults

No set metric-type is specified by default.

Examples

Switch# configure terminal
Switch(config)# route-map rmap1 permit 3
Switch(config-route-map)# set metric-type 1

Related Commands

19.25 set origin

Use this command to set the BGP origin code.

Use the no parameter with this command to delete an entry.

The origin attribute defines the origin of the path information. The three parameters with this

command indicate three different values. IGP is interior to the originating AS. This happens if

IGP is redistributed into the BGP. EGP is learned through an Exterior Gateway Protocol.

Incomplete is unknown or learned through some other means. This happens when static route is

redistributed in BGP and the origin of the route is incomplete.

To use the set origin command, you must first have a match clause. Match and set commands

set the conditions for redistributing routes from one routing protocol to another. The match

command specifies the match criteria under which redistribution is allowed for the current

route-map. The set command specifies the set redistribution actions to be performed, if the

match criteria are met.

If the packets do not match any of the defined criteria, they are routed through the normal

routing process.