1199

Examples # Define community-list 1, allowing routing information with community number 100 or 200 to pass. Then define a routing policy named test, whose node 10 is defined with an if-match clause to reference the community-list for matching.

<Sysname> system-view

[Sysname] ip community-list 1 permit 100 200

[Sysname] route-policy test permit node 10

[Sysname-route-policy] if-match community 1

if-match cost

Syntax if-match cost value

undo if-match cost

View Routing policy view

Parameters cost: Specifies the cost to match, ranging from 0 to 4294967295.

Description Use the if-match cost command to specify a cost for matching against the cost of a route.

Use the undo if-match cost command to remove the match criterion.

The match criterion is not configured by default.

This command is one of the if-match clauses of routing policy, used for matching routes with the specified route cost.

Related commands: if-match interface, if-match acl, if-matchip-prefix,if-match ip next-hop,if-match tag, route-policy,apply ip-addressnext-hop,apply cost, apply local-preference,apply origin and apply tag.

Examples # Create routing policy policy1 with node 10, matching mode as permit. Define an if-match clause to permit routing information with a cost of 8.

<Sysname> system-view

[Sysname] route-policy policy1 permit node 10

[Sysname-route-policy] if-match cost 8

if-match extcommunity

Syntax if-match extcommunity ext-comm-list-number&<1-16>

undo if-match extcommunity [ ext-comm-list-number&<1-16> ]

View Routing policy view

Parameters ext-comm-list-number: Extended community list number, in the range of 1 to 199.

Page 1199
Image 1199
3Com MSR 50, MSR 30 manual If-match cost, If-match extcommunity, Syntax if-match cost value Undo if-match cost, 1199