
C613-50186-01 Rev B
Command Reference for AR2050V
1393
AlliedWare Plus™ Operating System - Version 5.4.7-1.x
R
OUTE
M
AP
C
OMMANDS
MATCH
ORIGIN
match origin
Overview
Use this command to add an origin match clause to a route map entry. Specify the
origin attribute value to match.
A BGP update message matches the route map if its origin attribute value matches
the route map’s origin value.
Each entry of a route map can only match against one origin in one origin match
clause. If the route map entry already has an origin match clause, entering this
command replaces that match clause with the new clause.
Use the
no
variant of this command to remove the origin match clause from the
route map entry.
Syntax
match origin {egp|igp|incomplete}
no match origin [egp|igp|incomplete]
Mode
Route-map Configuration
Usage
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.
This command is valid for BGP update messages only.
Example
To add entry 34 to the route map called “rmap1”, which will drop
externally-originated routes, use the commands:
awplus#
configure terminal
awplus(config)#
route-map myroute deny 34
awplus(config-route-map)#
match origin egp
Parameter
Description
egp
Learned from an exterior gateway protocol.
igp
Learned from a local interior gateway protocol.
incomplete
Of unknown heritage, for example a static route.