25 set origin – CANOGA PERKINS 9175 Command Reference User Manual
Page 512
CanogaOS Command Reference
28-24
This command sets the type to either Type-1 or Type-2 in the AS-external-LSA when the
route-map matches the condition.
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
28.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.