EasyManua.ls Logo

H3C S7500E Series

H3C S7500E Series
1565 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Command Manual – IPv4 Routing
H3C S7500E Series Ethernet Switches Chapter 6 Routing Policy Configuration Commands
6-15
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
6.1.19 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-match ip-prefix, if-match ip
next-hop, if-match tag, route-policy, apply ip-address next-hop, apply cost, apply
local-preference, apply origin, 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

Table of Contents

Other manuals for H3C S7500E Series

Related product manuals