beautypg.com

7 match metric, 8 match origin, 9 match route-type – Accton Technology ES4626 User Manual

Page 371

background image

371

13.2.3.7 match metric

Command: match metric <metric-val >

no match metric [<metric-val >]

Function:

Match the metric value in the routing message. The “no match metric

[<metric-val >]

” deletes the configuration.

Parameter: <metric-val >

is the metric value, ranging between 0~4294967295.

Command Mode:

route-map mode

Usage Guide:

This command matches according to metric value in the 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 metric 60

13.2.3.8 match origin

Command: match origin

no match origin

Function:

Configure to matching with the origin of the BGP routing message. The “no

match origin

“ 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

13.2.3.9 match route-type

Command: match route-type external

no match route-type external []

Function:

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

match route-type external []

” deletes the configuration.

Parameter: type-1

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

match with the OSPF type 1 external route.

This manual is related to the following products: