11 match origin – CANOGA PERKINS 9175 Command Reference User Manual
Page 342
CanogaOS Command Reference
19-11
Defaults
No match metric is specified by default.
Examples
Switch# configure terminal
Switch(config)# route-map myroute permit 3
Switch(config-route-map)# no match metric 888999
Related Commands
match community
match as-path
set as-path
set community
match ip next-hop
19.11 match origin
Use this command to match origin code.
Use the no parameter with this command to disable this matching.
The origin attribute defines the origin of the path information. The egp parameter is indicated as
an e in the routing table, and it indicates that the origin of the information is learned via Exterior
Gateway Protocol. The igp parameter is indicated as an i in the routing table, and it indicates
the origin of the path information is interior to the originating AS.
The incomplete parameter is indicated as a ? in the routing table, and indicates that the origin of
the path information is unknown or learned through other means. If a static route is redistributed
into BGP, the origin of the route is incomplete.
The match origin command specifies the origin to be matched. If there is a match for the
specified origin, and permit is specified, the route is redistributed or controlled as specified by
the set action. If the match criteria are met, and deny is specified, the route is not redistributed
or controlled. If the match criteria are not met, the route is neither accepted nor forwarded,
irrespective of permit or deny specifications.
The route specified by the policies might not be the same as specified by the routing protocols.
Setting policies enable packets to take different routes depending on their length or content.
Packet forwarding based on configured policies overrides packet forwarding specified in routing
tables.
Note:
This command is valid for BGP only.
Command Syntax