3com 5500-ei pwr Guia De Referência
5-7
Parameters
value
: Tag value, in the range of 0 to 4294967295.
Description
Use the if-match tag command to configure the tag matching rule for routing information.
Use the undo if-match tag command to remove the matching rule.
By default, no the tag matching rule for routing information is defined.
Related commands: if-match interface, if-match acl, if-match ip-prefix, if-match ip next-hop,
if-match cost
, route-policy, apply cost, apply tag.
Examples
# Define an if-match clause to match OSPF routes having the tag value 8.
<Sysname> system-view
System View: return to User View with Ctrl+Z.
[Sysname] route-policy policy permit node 1
%New sequence of this list
[Sysname-route-policy] if-match tag 8
ip ip-prefix
Syntax
ip ip-prefix
ip-prefix-name [ index index-number ] { permit | deny } network len [ greater-equal
greater-equal
| less-equal less-equal ] *
undo ip ip-prefix
ip-prefix-name [ index index-number | permit | deny ]
View
System view
Parameters
ip-prefix-name:
Name of an IP-prefix, a string of up to 19 characters. It identifies an address prefix list
uniquely.
index-number
: Identifier of an entry in the IP address prefix list, in the range 1 to 2047. The entry with a
smaller index-number will be tested first.
permit
: Specifies the match mode of the defined IP-prefix entries as permit mode. If the permit mode is
specified and the IP address to be filtered is in the ip-prefix range specified by the entry, the entry is
filtered through and the next entry is not tested. If the IP address to be filtered is not in the ip-prefix
range specified by the entry, the next entry is tested
filtered through and the next entry is not tested. If the IP address to be filtered is not in the ip-prefix
range specified by the entry, the next entry is tested
deny
: Specifies the match mode of the defined IP-prefix entries as deny mode. If the deny mode is
specified and the IP address to be filtered is in the ip-prefix range specified by the entry, the entry is not
filtered through and the next entry is not tested; otherwise, the next entry is tested.
filtered through and the next entry is not tested; otherwise, the next entry is tested.
network
: IP address prefix (IP address), in dotted decimal notation.
len
: IP address prefix length (mask length), in the range of 0 to 32.
greater-equal, less-equal
: Address prefix range [greater-equal, less-equal] to be matched after the
address prefix network len has been matched. The meaning of greater-equal is "greater than or equal