11 match origin, 12 match route-type, Match origin – PLANET XGS3-24040 User Manual

Page 389: Match route, Type

Advertising
background image


29-102

29.11 match origin

Command:

match origin <egp | igp | incomplete >

no match origin <egp | igp | incomplete >

Function:

Configure to matching with the origin of the BGP routing message. The “no match origin <egp |

igp | incomplete >“deletes the configuration.

Parameter:

egp means the route is learnt from the external gateway protocols, igp means the route is learnt

from the internal gateway protocols, incomplete means the route origin is uncertain.

Command Mode:

route-map mode

Usage Guide:

This command matches according to origin message in the BGP route. If the matching succeeded,

then the “permit” or “deny” action in the route-map is performed.

Example:

Switch#config terminal

Switch(config)#route-map r1 permit 5

Switch(config-route-map)#match origin egp

29.12 match route-type

Command:

match route-type external <type-1 | type-2 >

no match route-type external [<type-1 | type-2 >]

Function:

Configure to matching with the route type of OSPF routing message. The “no match route-type

external [<type-1 | type-2 >]” deletes the configuration.

Parameter:

type-1 means match with the OSPF type 1 external route, type-2 means match with the OSPF type

2 external route.

Command Mode:

route-map mode

Usage Guide:

This command matches according to the type of OSPF routes (OSPF AS-external LSA type is

either type 1 or type 2). If the matching succeeded, then the “permit” or “deny” action in the

route-map is performed.

Example:

Switch#config terminal

Advertising