policy route route-map <map-name> rule <rule-num> match origin
Defines a match condition for a route map based on the route's origin.
If no origin match condition is specified, packets are not filtered by BGP origin code.
- map-name
- The name of a defined route map.
- rule-num
- The number of a defined route map rule.
- egp
- Matches routes whose origin is an Exterior Gateway Protocol.
- igp
- Matches routes whose origin is an Interior Gateway Protocol.
- incomplete
- Matches routes whose BGP origin code is incomplete.
Configuration mode
policy {
route-map map-name {
rule rule-num {
match {
origin {
origin-code [egp|igp|incomplete]
}
}
}
}
}
Use the set form of this command to define a match condition for a route map policy based BGP origin.
Packets are matched based on whether the BGP origin code in the route matches that specified by this command. Depending on the action defined for the rule using policy route route-map <map-name> rule <rule-num> action, matched packets are either permitted or denied. Based on the forwarding information specified by the set statements in the route map rule, permitted packets are forwarded to their various destinations.
If more than one match condition is defined in a route map rule, the packet must match all conditions to count as a match. If no match condition is defined for the route map rule, all packets are considered to match the rule.
Use the delete form of this command to remove the origin match condition.
Use the show form of this command to display origin match condition configuration.