5-8
to", and the meaning of
less-equal
is "less than or equal to". The range is
len
<=
greater-equal
<=
less-equal
<= 32. When only
greater-equal
is used, it denotes the prefix range [
greater-equal
, 32].
When only
less-equal
is used, it denotes the prefix range [
len
,
less-equal
]. When both
greater-equal
and
less-equal
are specified, the prefix range is [
less-equal
,
greater-equal
].
Description
Use the
ip ip-prefix
command to configure an IP-prefix list or one of its entries.
Use the
undo ip ip-prefix
command to delete an IP-prefix list or one of its entries.
By default, no IP-prefix list is configured.
An IP-prefix list is used for IP address filtering. An IP prefix list may contain several entries, and each
entry specifies one address prefix range. The inter-entry filtering relation is OR. That is, passing an
entry means filtering through this address prefix list. Not filtering through any entry means not filtering
through this IP-prefix.
The address prefix range may contain two parts, which are determined by
len
and [
greater-equal
,
less-equal
], respectively. If the prefix ranges of these two parts are both specified, the IP to be filtered
must match the prefix ranges of these two parts.
If you specify
network len
as 0.0.0.0 0, it matches the default route only.
To match all the routes, use 0.0.0.0 0
less-equal
32.
Examples
# Define an ip-prefix named
p1
to permit only the routes whose mask lengths are 17 or 18 on network
segment 10.0.192.0/8 to pass.
<Sysname> system-view
System View: return to User View with Ctrl+Z.
[Sysname] ip ip-prefix p1 permit 10.0.192.0 8 greater-equal 17 less-equal 18
route-policy
Syntax
route-policy
route-policy-name
{
permit
|
deny
}
node
node-number
undo route-policy
route-policy-name
[
permit
|
deny
|
node
node-number
]
View
System view
Parameters
route-policy-name
: Name of a routing policy, a string of 19 characters. This argument identifies a
routing policy uniquely.
permit
: Specifies the match mode of the defined routing policy node as
permit
. When a route entry
meets all the if-match clauses of the node, the entry is permitted to filter through the node and the apply
clause of the node will be performed. If a route entry does not meet the if-match clause of the node, the
next node of the route-policy will be tested.
deny
: Specifies the match mode of the defined Route-policy node as
deny
mode. When a route entry
meets all the if-match clauses of the node, the entry is prohibited from filtering through the node and the
next node will not be tested.
Summary of Contents for 5500-EI PWR
Page 43: ...2 6...
Page 76: ...1 17...
Page 228: ...ii stp transmit limit 1 44 vlan mapping modulo 1 45 vlan vpn tunnel 1 46...
Page 477: ...5 24 Sysname vlan 2 Sysname vlan2 service type multicast...
Page 503: ...2 3 System View return to User View with Ctrl Z Sysname dot1x url http 192 168 19 23...
Page 519: ...iii...
Page 597: ...2 2 security policy server 192 168 0 1 user name format without domain...
Page 648: ...1 9 Examples Clear static ARP entries Sysname reset arp static...
Page 663: ...4 3 Sysname resilient arp interface vlan interface 2...
Page 767: ...1 28 From 12 00 Jan 1 2008 to 12 00 Jun 1 2008...
Page 1111: ...ii xmodem get 3 18...
Page 1314: ...A 44 Z...