4.8. Filter Command Reference

4.8.1. Command Hierarchies

4.8.1.1. Configuration Commands

4.8.1.1.1. IP Filter Policy Commands

config
— filter
ip-filter filter-id [use-ipv6-resource] [create]
— no ip-filter filter-id
default-action {drop | forward}
description description-string
filter-name filter-name
renum old-entry-id new-entry-id
scope {exclusive | template}
— no scope
entry entry-id [time-range time-range-name] [create]
— no entry entry-id
action
— no action
drop
description description-string
match [protocol protocol-id]
— no match
dscp dscp-name
— no dscp
dst-ip {ip-address/mask | ip-address ipv4-address-mask}
— no dst-ip
dst-port {eq} dst-port-number
— no dst-port
fragment {true | false}
— no fragment
icmp-code icmp-code
— no icmp-code
icmp-type icmp-type
— no icmp-type
option-present {true | false}
src-ip {ip-address/mask | ip-address ipv4-address-mask}
— no src-ip
src-port {{eq} src-port-number
— no src-port
tcp-ack {true | false}
— no tcp-ack
tcp-syn {true | false}
— no tcp-syn

4.8.1.1.2. IPv6 Filter Policy Commands

config
— filter
ipv6-filter ipv6-filter-id [ipv6-128bit-address | ipv6-64bit-address] [create]
— no ipv6-filter ipv6-filter-id
default-action {drop | forward}
description description-string
filter-name filter-name
entry entry-id [time-range time-range-name] [create]
— no entry entry-id
action
— no action
drop
description description-string
match [next-header next-header]
— no match
dscp dscp-name
— no dscp
dst-ip {ipv6-address/prefix-length}
— no dst-ip
dst-port {eq} dst-port-number
— no dst-port
icmp-code icmp-code
— no icmp-code
icmp-type icmp-type
— no icmp-type
dst-ip {ipv6-address/prefix-length}
— no dst-ip
src-port {eq} src-port-number
src-port range start end}
— no src-port
src-ip {ipv6-address/prefix-length}
— no src-ip
tcp-ack {true | false}
— no tcp-ack
tcp-syn {true | false}
— no tcp-syn
renum old-entry-id new-entry-id
scope {exclusive | template}
— no scope

4.8.1.1.3. MAC Filter Policy Commands

config
— filter
mac-filter filter-id [create]
— no mac-filter filter-id
default-action {drop | forward}
description description-string
entry entry-id [time-range time-range-name]
— no entry entry-id
description description-string
action [drop]
action forward
— no action
match
— no match
dot1p dot1p-value [dot1p-mask]
— no dot1p
dst-mac ieee-address [ieee-address-mask]
— no dst-mac
etype 0x0600..0xffff
— no etype
src-mac ieee-address [ieee-address-mask]
— no src-mac
filter-name filter-name
renum old-entry-id new-entry-id
scope {exclusive | template}
— no scope
type filter-type

4.8.1.1.4. Generic Filter Commands

config
— filter
copy ip-filter | ipv6-filter| mac-filter src-filter-id [src-entry src-entry-id] to dst-filter-id [dst-entry dst-entry-id] [overwrite]

4.8.1.2. Show Commands

show
— filter
ip [ip-filter-id [entry entry-id] [association | counters]]
ipv6 [ipv6-filter-id [entry entry-id] [association | counters]]
mac {mac-filter-id [entry entry-id] [association | counters]}

4.8.1.3. Clear Commands

clear
— filter
ip filter-id [entry entry-id] [ingress | egress]
ipv6 filter-id [entry entry-id] [ingress | egress]
mac filter-id [entry entry-id] [ingress | egress]

4.8.1.4. Monitor Commands

monitor
— filter
ip ip-filter-id entry entry-id [interval seconds] [repeat repeat] [absolute | rate]
ipv6 ipv6-filter-id entry entry-id [interval seconds] [repeat repeat] [absolute | rate]
mac mac-filter-id entry entry-id [interval seconds] [repeat repeat] [absolute | rate]

4.8.2. Command Descriptions

4.8.2.1. Configuration Commands

4.8.2.1.1. Generic Commands

description

Syntax 
description string
no description
Context 
config>filter>ip-filter
config>filter>ip-filter>entry
config>filter>ipv6-filter
config>filter>ipv6-filter>entry
config>filter>mac-filter
config>filter>mac-filter>entry
Supported Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

This command creates a text description for a configuration context to help identify the content in the configuration file.

The no form of this command removes any description string from the context.

Parameters 
string—
Specifies the description character string. Allowed values are any string up to 80 characters composed of printable, 7-bit ASCII characters. If the string contains special characters (#, $, spaces, etc.), the entire string must be enclosed within double quotes.

4.8.2.1.2. Global Filter Commands

ip-filter

Syntax 
[no] ip-filter filter-id [use-ipv6-resource] [create]
Context 
config>filter
Supported Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

This command enables context to configure an IP filter policy.

IP-filter policies specify either a forward or a drop action for packets based on the specified match criteria.

The IP filter policy, sometimes referred to as an access control list (ACL), is a template that can be applied to multiple services or multiple network ports as long as the scope of the policy is template.

Any changes made to the existing policy, using any of the subcommands, will be applied immediately to all services where this policy is applied. For this reason, when many changes are required on an ip-filter policy, Nokia recommends that the policy be copied to a work area. That work-in-progress policy can be modified until complete and then written over the original filter policy. Use the config filter copy command to maintain policies in this manner.

By default, when an IPv4 filter policy is associated with a service entity (For example: SAP), the software attempts to allocate resources for the filter policy entries from the IPv4 resource pool. If resources unavailable in the pool, then the software fails to associate and display an error. If the user knows that resources are free in the IPv6 resource pool, then the use-ipv6-resource parameter is used to allow the user to share the entries in the resource chunks allocated for use by IPv6 128-bit resource pool, if available. If this parameter is specified then the resource for this filter policy is always allocated from the IPv6 128-bit filter resource pool.

Note:

By default, IPv4 filters are created using IPv4 resources, assuming an unspecified use-ipv6-resource. If such filters are to be created using IPv6 resources, the use-ipv6-resource option needs to be specified. Ahead of the application of such a filter, the user should ensure the number of policies in the newly created policy is within the limit of available resources in the IPv6 128-bit resource pool, by considering the output of the tools>dump>system-resources command.

The no form of this command deletes the IP filter policy. A filter policy cannot be deleted until it is removed from all SAPs or network ports where it is applied.

Parameters 
filter-id—
Specifies the IP filter policy ID number.
Values—
1 to 65535

 

create—
Specifies that when the context is created, one can navigate into the context without the create keyword. This keyword is required when first creating the configuration context.
use-ipv6-resource—
Specifies that the hardware resources for the entries in this filter policy must be allocated from the IPv6 filter resource pool, if available.

ipv6-filter

Syntax 
[no] ipv6-filter ipv6-filter-id [ipv6-128bit-address | ipv6-64bit-address] [create]
Context 
config>filter
Supported Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

This command enables the context to create IPv6 filter policy. During the 'create', the user must specify if IPv6 addresses, both source and destination IPv6 addresses, specified in the match criteria uses complete 128-bits or uses only the upper 64 bits of the IPv6 addresses.

The no form of this command deletes the IPv6 filter policy. A filter policy cannot be deleted until it is removed from all SAPs or network ports where it is applied     

Default 

128-bit addresses

Parameters 
ipv6-filter-id—
Specifies the IPv6 filter policy ID number.
Values—
1 to 65535

 

ipv6-128bit-address—
Specifies that if the user intends to use complete 128-bit addresses, then the user requires the ipv6-128bit-address CLI parameter with the create command. When this policy is associated with a SAP, software allocates resources for the filter entries from the IPv6 128-bit resource pool for the SAP.
ipv6-64bit-address—
Specifies that if the user intends to use upper most significant bit (MSB) 64-bit addresses, then the user requires the ipv6-64bit-address CLI parameter with the create command. When this policy is associated with a SAP, the software allocates resources for the filter entries from the IPv6 64-bit resource pool for the SAP. All the IP packet fields are not available for match are when using 64-bit addresses. For more information, see Configuration Notes, to know the packet header fields available for match when using this option.
create—
Specifies that when the context is created, one can navigate into the context without the create keyword. This keyword is required when first creating the configuration context.

mac-filter

Syntax 
[no] mac-filter filter-id [create]
Context 
config>filter
Supported Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

This command enables the context for a MAC filter policy.

The mac-filter policy specifies either a forward or a drop action for packets based on the specified match criteria.

The mac-filter policy, sometimes referred to as an access control list, is a template that can be applied to multiple services as long as the scope of the policy is template.

Note:

It is not possible to apply a MAC filter policy to a network port network IP interface.

Any changes made to the existing policy, using any of the subcommands, will be applied immediately to all services where this policy is applied. For this reason, when many changes are required on a mac-filter policy, Nokia recommends that the policy be copied to a work area. That work-in-progress policy can be modified until complete and then written over the original filter policy. Use the config filter copy command to maintain policies in this manner.

The no form of this command deletes the mac-filter policy. A filter policy cannot be deleted until it is removed from all SAP where it is applied.

Parameters 
filter-id—
Specifies the MAC filter policy ID number.
Values—
1 to 65535

 

create—
Specifies that when the context is created, one can navigate into the context without the create keyword. This keyword is required when first creating the configuration context.

4.8.2.1.3. Filter Policy Commands

default-action

Syntax 
default-action {drop | forward}
Context 
config>filter>ip-filter
config>filter>ipv6-filter
config>filter>mac-filter
Supported Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

This command specifies the action to be applied to packets when the packets do not match the specified criteria in all of the IP filter entries of the filter.

When multiple default-action commands are entered, the last command will overwrite the previous command.

Default 

drop

Parameters 
drop—
Specifies that all packets will be dropped unless there is a specific filter entry which causes the packet to be forwarded.
forward—
Specifies that all packets will be forwarded unless there is a specific filter entry which causes the packet to be dropped.

scope

Syntax 
scope {exclusive | template}
no scope
Context 
config>filter>ip-filter
config>filter>ipv6-filter
config>filter>mac-filter
Supported Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

This command configures the filter policy scope as exclusive or template. If the scope of the policy is template and is applied to one or more services or network interfaces, the scope cannot be changed.

The no form of this command reverts the scope of the policy to the default.

Default 

template

Parameters 
exclusive—
Specifies that the policy can only be applied to a single entity (SAP or network IP interface). Attempting to assign the policy to a second entity will result in an error message. If the policy is removed from the entity, it will become available for assignment to another entity.
template—
Specifies that the policy can be applied to multiple SAPs or network IP interfaces.

4.8.2.1.4. General Filter Entry Commands

entry

Syntax 
entry entry-id [time-range time-range-name] [create]
no entry entry-id
Context 
config>filter>ip-filter
config>filter>ipv6-filter
config>filter>mac-filter
Supported Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

This command creates or edits an IP or MAC filter entry. Multiple entries can be created using unique entry-id numbers within the filter. The implementation exits the filter on the first match found and executes the actions in accordance with the accompanying action command. For this reason, entries must be sequenced correctly from most to least explicit.

An entry may not have any match criteria defined (in which case, everything matches) but must have the action command for it to be considered complete. Entries without the action command will be considered incomplete and therefore will be rendered inactive.

The no form of this command removes the specified entry from the IP or MAC filter. Entries removed from the IP or MAC filter are immediately removed from all services or network ports where that filter is applied.

Parameters 
entry-id—
Specifies a match criteria and the corresponding action. Nokia recommends that multiple entries be specified entry-ids in staggered increments. This allows users to insert a new entry in an existing policy without requiring renumbering of all the existing entries.
Values—
1 to 65535

 

time-range time-range-name
Specifies the time range name to be associated with this filter entry up to 32 characters. The time-range name must already exist in the config>cron context.
create—
Specifies that when the context is created, one can navigate into the context without the create keyword. This keyword is required when first creating the configuration context.

4.8.2.1.5. IP Filter Entry Commands

action

Syntax 
action
no action
Context 
config>filter>ip-filter>entry
config>filter>ipv6-filter>entry
Supported Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

This command enables the context to configure the action taken when a packet meets filtering criteria.

The no form of this command removes the currently configured action.

Default 

no action

drop

Syntax 
drop
Context 
config>filter>ip-filter>entry>action
config>filter>ipv6-filter>entry>action
Supported Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

This command configures the filter action to drop packets matching the filter entry.

forward

Syntax 
forward
Context 
config>filter>ip-filter>entry>action
config>filter>ipv6-filter>entry>action
Supported Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

This command configures the filter action to forward packets matching the filter entry.

match

Syntax 
match [protocol] [protocol-id]
no match
Context 
config>filter>ip-filter>entry
config>filter>ipv6-filter>entry
Supported Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

This command enables the context to enter match criteria for the filter entry. When the match criteria have been satisfied the action associated with the match criteria is executed.

If more than one match criteria (within one match statement) are configured, then all criteria must be satisfied (AND function) before the action associated with the match is executed.

A match context may consist of multiple match criteria, but multiple match statements cannot be entered per entry.

The no form of this command removes the match criteria for the entry-id.

Parameters 
protocol-id—
Specifies the decimal value representing the IP protocol to be used as an IP filter match criterion. Well known protocol numbers include ICMP(1), TCP(6), UDP(17) (see Table 43).The values can be expressed in decimal, hexadecimal, or binary.
Values—
0 to 255
Table 43:  IP Protocol IDs and Descriptions 

Protocol

Protocol ID

Description

icmp

1

Internet Control Message

igmp

2

Internet Group Management

ip

4

IP in IP (encapsulation)

tcp

6

Transmission Control

egp

8

Exterior Gateway Protocol

igp

9

Any private interior gateway (used by Cisco for IGRP)

udp

17

User Datagram

rdp

27

Reliable Data Protocol

idrp

45

Inter-Domain Routing Protocol

rsvp

46

Reservation Protocol

iso-ip

80

ISO Internet Protocol

eigrp

88

EIGRP

ospf-igp

89

OSPFIGP

ether-ip

97

Ethernet-within-IP Encapsulation

encap

98

Encapsulation Header

pnni

102

PNNI over IP

pim

103

Protocol Independent Multicast

vrrp

112

Virtual Router Redundancy Protocol

l2tp

115

Layer Two Tunneling Protocol

stp

118

Spanning Tree Protocol

ptp

123

Performance Transparency Protocol

isis

124

ISIS over IPv4

crtp

126

Combat Radio Transport Protocol

crudp

127

Combat Radio User Datagram

 

4.8.2.1.6. MAC Filter Entry Commands

action

Syntax 
action drop
action forward
no action
Context 
config>filter>mac-filter>entry
Supported Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

This command configures the action for a MAC filter entry. The action keyword must be entered for the entry to be active. Any filter entry without the action keyword will be considered incomplete and will be inactive.

If neither drop nor forward is specified, this is considered a No-Op filter entry used to explicitly set a filter entry inactive without modifying match criteria or removing the entry.

Multiple action statements entered will overwrite previous actions parameters when defined. To remove a parameter, use the no form of the action command with the specified parameter.

The no form of this command removes the specified action statement. The filter entry is considered incomplete and therefore rendered inactive without the action command.

Parameters 
drop —
Specifies that packets matching the entry criteria will be dropped.
forward —
Specifies that packets matching the entry criteria will be forwarded.

If neither drop nor forward is specified, the filter action is no-op and the filter entry is inactive.

match

Syntax 
match [frame-type keyword]
no match
Context 
config>filter>mac-filter>entry
Supported Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

This command enables the context to configure match criteria for the filter entry and specifies an Ethernet frame type for the entry. When the match criteria have been satisfied the action associated with the match criteria is executed.

If more than one match criteria (within one match statement) are configured then all criteria must be satisfied (AND function) before the action associated with the match will be executed.

A match context may consist of multiple match criteria, but multiple match statements cannot be entered per entry.

The no form of this command removes the match criteria for the entry-id.

Parameters 
frame-type keyword
Specifies an Ethernet frame type to be used for the MAC filter match criteria.
Default—
ethernet_II

4.8.2.1.7. IP Filter Match Criteria

dscp

Syntax 
dscp dscp-name
no dscp
Context 
config>filter>ip-filter>entry>match
config>filter>ipv6-filter>entry>match
Supported Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

This command configures a DiffServ Code Point (DSCP) name to be used as an IP filter match criterion.

The no form of this command removes the DSCP match criterion.

Default 

no dscp

Parameters 
dscp-name—
Specifies a dscp name that has been previously mapped to a value using the dscp-name command. The DiffServ code point may only be specified by its name.
Values—
be | cp1 | cp2 | cp3 | cp4 | cp5 | cp6 | cp7 | cs1 | cp9 | af11 | cp11 | af12 | cp13 | af13 | cp15 | cs2 | cp17 | af21 | cp19 | af22 | cp21 | af23 | cp23 | cs3 | cp25 | af31 | cp27 | af32 | cp29 | af33 | cp31 | cs4 | cp33 | af41 | cp35 | af42 | cp37 | af43 | cp39 | cs5 | cp41 | cp42 | cp43 | cp44 | cp45 | ef | cp47 | nc1 | cp49 | cp50 | cp51 | cp52 | cp53 | cp54 | cp55 | nc2 | cp57 | cp58 | cp59 | cp60 | cp61 | cp62 | cp63

 

dst-ip

Syntax 
dst-ip {ip-address/mask | ip-address ipv4-address-mask}
no dst-ip
Context 
config>filter>ip-filter>entry>match
Supported Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

This command configures a destination IPv4 address range to be used as an IP filter match criterion.

To match on the destination IPv4 address, specify the address and its associated mask, e.g. 10.1.0.0/16. The conventional notation of 10.1.0.0 255.255.0.0 may also be used.

The no form of this command removes the destination IPv4 address match criterion.

Default 

none

Parameters 
ip-address—
Specifies the IPv4 prefix for the IP match criterion in dotted decimal notation.
Values—
a.b.c.d

 

mask—
Specifies the subnet mask length expressed as a decimal integer.
Values—
0 to 32

 

ipv4-address-mask—
Specifies any mask expressed in dotted quad notation.
Values—
0 to 255

 

dst-ip

Syntax 
dst-ip {ipv6-address/prefix-length}
no dst-ip
Context 
config>filter>ipv6-filter>entry>match
Supported Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

This command configures a destination IPv6 address range to be used as an IP filter match criterion.

To match on the destination IPv6 address, specify the address and its associated mask.

The no form of this command removes the destination IPv6 address match criterion.

Default 

none

Parameters 
ipv6-address—
Specifies the IPv6 prefix for the IP match criterion in hex digits.
Values—
x:x:x:x:x:x:x:x (eight 16-bit pieces)
x:x:x:x:x:x:d.d.d.d
x - 0 to FFFF (hexadecimal)
d - 0 to 255 (decimal)

 

prefix-length—
Specifies the IPv6 prefix length for the IPv6 address as a decimal integer.
Values—
1 to 128

 

dst-port

Syntax 
dst-port {eq} dst-port-number
no dst-port
Context 
config>filter>ip-filter>entry>match
config>filter>ipv6-filter>entry>match
Supported Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

This command configures a destination TCP or UDP port number for an IP filter match criterion. An entry containing L4 match criteria will not match non-initial (2nd, 3rd, etc) fragments of a fragmented packet since only the first fragment contains the L4 information.

The no form of this command removes the destination port match criterion.

Parameters 
eq—
Specifies the operator to use relative to dst-port-number for specifying the port number match criteria. The eq keyword specifies that dst-port-number must be an exact match.
dst-port-number—
Specifies the destination port number to be used as a match criteria expressed as a decimal integer.
Values—
1 to 65535

 

fragment

Syntax 
fragment {true | false}
no fragment
Context 
config>filter>ip-filter>entry>match
Supported Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

This command configures fragmented or non-fragmented IP packets as an IP filter match criterion. An entry containing L4 match criteria will not match non-initial (2nd, 3rd, etc) fragments of a fragmented packet since only the first fragment contains the L4 information.

The no form of this command removes the match criterion.

Default 

no fragment

Parameters 
true—
Specifies a match on all fragmented IP packets. A match will occur for all packets that have either the MF (more fragment) bit set or have the Fragment Offset field of the IP header set to a non-zero value.
false—
Specifies a match on all non-fragmented IP packets. Non-fragmented IP packets are packets that have the MF bit set to zero and have the Fragment Offset field also set to zero.

icmp-code

Syntax 
icmp-code icmp-code
no icmp-code
Context 
config>filter>ip-filter>entry>match
config>filter>ipv6-filter>entry>match
Supported Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

This command configures matching on ICMP code field in the ICMP header of an IP packet as a filter match criterion. An entry containing L4 match criteria will not match non-initial (2nd, 3rd, etc) fragments of a fragmented packet since only the first fragment contains the L4 information.

This option is only meaningful if the protocol match criteria specifies ICMP (1).

The no form of this command removes the criterion from the match entry.

Default 

no icmp-code

Parameters 
icmp-code—
Specifies the ICMP code values that must be present to match.
Values—
0 to 255

 

icmp-type

Syntax 
icmp-type icmp-type
no icmp-type
Context 
config>filter>ip-filter>entry>match
config>filter>ipv6-filter>entry>match
Supported Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

This command configures matching on the ICMP type field in the ICMP header of an IP or packet as a filter match criterion. An entry containing L4 match criteria will not match non-initial (2nd, 3rd, etc) fragments of a fragmented packet since only the first fragment contains the L4 information.

This option is only meaningful if the protocol match criteria specifies ICMP (1).

The no form of this command removes the criterion from the match entry.

Default 

no icmp-type

Parameters 
icmp-type—
Specifies the ICMP type values that must be present to match.
Values—
0 to 25A

 

option-present

Syntax 
option-present {true | false}
no option-present
Context 
config>filter>ip-filter>entry>match
Supported Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

This command configures matching packets that contain the option field or have an option field of zero in the IP header as an IP filter match criterion.

The no form of this command removes the checking of the option field in the IP header as a match criterion.

Parameters 
true—
Specifies matching on all IP packets that contain the option field in the header. A match will occur for all packets that have the option field present. An option field of zero is considered as no option present.
false—
Specifies matching on IP packets that do not have any option field present in the IP header. (an option field of zero). An option field of zero is considered as no option present.

src-ip

Syntax 
src-ip {ip-address/mask | ip-address ipv4-address-mask}
no src-ip
Context 
config>filter>ip-filter>entry>match
Supported Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

This command configures a source IPv4 address range to be used as an IP filter match criterion.

To match on the source IPv4 address, specify the address and its associated mask, for example, 10.1.0.0/16. The conventional notation of 10.1.0.0 255.255.0.0 may also be used.

The no form of this command removes the source IPv4 address match criterion.

Default 

no src-ip

Parameters 
ip-address—
Specifies the IPv4 prefix for the IP match criterion in dotted decimal notation.
Values—
a.b.c.d

 

mask—
Specifies the subnet mask length, expressed as a decimal integer.
Values—
0 to 32

 

ipv4-address-mask—
Specifies any mask, expressed in dotted quad notation.
Values—
0 to 255

 

src-ip

Syntax 
src-ip {ipv6-address/prefix-length}
no src-ip
Context 
config>filter>ipv6-filter>entry>match
Supported Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

This command configures a source IPv6 address range to be used as an IP filter match criterion.

To match on the source IPv6 address, specify the address and its associated mask.

If the filter is created to match 64-bit address, the IPv6 address specified for the match must contain only the first 64-bits (that is, the first four 16-bit groups of the IPv6 address).

The no form of this command removes the source IPv6 address match criterion.

Default 

no src-ip

Parameters 
ipv6-address—
Specifies the IPv6 prefix for the IP match criterion in hex digits.
Values—
x:x:x:x:x:x:x:x (eight 16-bit pieces)
x:x:x:x:x:x:d.d.d.d
x - 0 to FFFF (hexadecimal)
d - 0 to 255 (decimal)

 

prefix-length—
Specifies the IPv6 prefix length for the IPv6 address as a decimal integer.
Values—
1 to 128

 

src-port

Syntax 
src-port {eq} src-port-number
no src-port
Context 
config>filter>ip-filter>entry>match
config>filter>ipv6-filter>entry>match
Supported Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

This command configures a source TCP or UDP port number for an IP filter match criterion. An entry containing L4 match criteria will not match non-initial (2nd, 3rd, etc) fragments of a fragmented packet since only the first fragment contains the L4 information.

The no form of this command removes the source port match criterion.

Default 

no src-port

Parameters 
eq—
Specifies the operator to use relative to src-port-number for specifying the port number match criteria. The eq keyword specifies that src-port-number must be an exact match.
src-port-number—
Specifies the source port number to be used as a match criteria expressed as a decimal integer.
Values—
0 to 65535

 

tcp-ack

Syntax 
tcp-ack {true | false}
no tcp-ack
Context 
config>filter>ip-filter>entry>match
config>filter>ipv6-filter>entry>match
Supported Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

This command configures matching on the ACK bit being set or reset in the control bits of the TCP header of an IP packet as an IP filter match criterion. An entry containing L4 match criteria will not match non-initial (2nd, 3rd, etc) fragments of a fragmented packet since only the first fragment contains the L4 information.

The no form of this command removes the criterion from the match entry.

Default 

no tcp-ack

Parameters 
true—
Specifies matching on IP packets that have the ACK bit set in the control bits of the TCP header of an IP packet.
false—
Specifies matching on IP packets that do not have the ACK bit set in the control bits of the TCP header of the IP packet.

tcp-syn

Syntax 
tcp-syn {true | false}
no tcp-syn
Context 
config>filter>ip-filter>entry>match
config>filter>ipv6-filter>entry>match
Supported Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

This command configures matching on the SYN bit being set or reset in the control bits of the TCP header of an IP packet as an IP filter match criterion. An entry containing L4 match criteria will not match non-initial (2nd, 3rd, etc) fragments of a fragmented packet since only the first fragment contains the L4 information.

The SYN bit is normally set when the source of the packet needs to initiate a TCP session with the specified destination IP address.

The no form of this command removes the criterion from the match entry.

Default 

no tcp-syn

Parameters 
true—
Specifies matching on IP packets that have the SYN bit set in the control bits of the TCP header.
false—
Specifies matching on IP packets that do not have the SYN bit set in the control bits of the TCP header.

4.8.2.1.8. MAC Filter Match Criteria

dot1p

Syntax 
dot1p ip-value [mask]
no dot1p
Context 
config>filter>mac-filter>entry>match
Supported Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

This command configures an IEEE 802.1p value or range to be used as a MAC filter match criterion.

When a frame is missing the 802.1p bits, specifying an dot1p match criterion will fail for the frame and result in a non-match for the MAC filter entry.

The no form of this command removes the criterion from the match entry.

The MAC filter applied on the SAP egress can match the details of the packet-on-the-wire. For example, a QinQ packet came in on a null SAP and egressing on a dot1p-encapsulated port, the packet-on-the-wire will have three tags. Now, the etype=0x8100 and dot1p will equal the outer VLAN tag dot1p. This Etype and dot1p can be configured on the egress filter to match this packet.

Default 

no dot1p

Parameters 
ip-value—
Specifies the IEEE 802.1p value, in decimal notayion
Values—
0 to 7

 

mask—
Specifies a 3-bit mask.

This 3-bit mask can be specified using the following formats:

Format Style

Format Syntax

Example

Decimal

D

4

Hexadecimal

0xH

0x4

Binary

0bBBB

0b100

To select a range from 4 up to 7 specify p-value of 4 and a mask of 0b100 for value and mask.

Values—
1 to 7

 

Default—
7

dst-mac

Syntax 
dst-mac ieee-address [mask]
no dst-mac
Context 
config>filter>mac-filter>entry>match
Supported Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

Configures a destination MAC address or range to be used as a MAC filter match criterion.

The no form of this command removes the destination mac address as the match criterion.

Default 

no dst-mac

Parameters 
ieee-address—
Specifies the MAC address to be used as a match criterion.
Values—
HH:HH:HH:HH:HH:HH or HH-HH-HH-HH-HH-HH where H is a hexadecimal digit

 

mask—
Specifies a 48-bit mask to match a range of MAC address values.

This 48-bit mask can be configured using the following formats:

Format Style

Format Syntax

Example

Decimal

DDDDDDDDDDDDDD

281474959933440

Hexadecimal

0xHHHHHHHHHHHH

0xFFFFFF000000

Binary

0bBBBBBBB...B

0b11110000...B

To configure so that all packets with a source MAC OUI value of 00-03-FA are subject to a match condition, then the entry should be specified as: 0003FA000000 0xFFFFFF000000

Values—
HH:HH:HH:HH:HH:HH or HH-HH-HH-HH-HH-HH where H is a hexadecimal digit

 

Default—
0xFFFFFFFFFFFF (exact match)

etype

Syntax 
etype ethernet-type
no etype
Context 
config>filter>mac-filter>entry>match
Supported Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

This command configures an Ethernet type II Ethertype value for use as a MAC filter match criterion.

The Ethernet type field is a two-byte field used to identify the protocol carried by the Ethernet frame. For example, 0800 is used to identify the IPv4 packets.

The Ethernet type field is used by the Ethernet version-II frames. IEEE 802.3 Ethernet frames do not use the type field. Table 42 describes fields that are exclusive based on the frame format.

The data plane processes a maximum of two VLAN tags in a received packet. The Ethertype used in the MAC matching criteria for ACLs is the Ethertype that is found in the packet after processing single-tagged frames, double-tagged frames, and no-tag frames

The packet is considered to have no tags if at least one of the following criteria is true.

  1. The packet is a null-tagged frame
  2. The packet is a priority-tagged frame
  3. The outermost Ethertype does not match the default Ethertype (0x8100)
  4. The outermost Ethertype does not match the configured dot1q-etype on Dot1q encapsulated ports
  5. The outermost Ethertype does not match the configured qinq-etype on QinQ encapsulated ports

The packet is considered to have a single tag if at least one of the following criteria is true.

  1. The outermost Ethertype matches the default Ethertype (0x8100)
  2. The outermost Ethertype matches the configured dot1q-etype on Dot1q encapsulated ports
  3. The outermost Ethertype matches the configured qinq-etype on QinQ encapsulated ports

The packet is considered to have double tags if at least one of the following criteria is true.

  1. The outermost Ethertype matches the default Ethernet type (0x8100)
  2. The configured dot1q-etype on Dot1q encapsulated ports and the immediately following Ethertype match the default Ethertype (0x8100)
  3. The configured qinq-etype on QinQ encapsulated ports and the immediately following Ethertype match the default Ethertype (0x8100)

The no form of this command removes the previously entered etype field as the match criteria.

Default 

no etype

Parameters 
ethernet-type—
Specifies the Ethernet type II frame Ethertype value to be used as a match criterion, expressed in hexadecimal.
Values—
0x0600 to 0xFFFF

 

src-mac

Syntax 
src-mac ieee-address [ieee-address-mask]
no src-mac
Context 
config>filter>mac-filter>entry
Supported Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

This command configures a source MAC address or range to be used as a MAC filter match criterion.

The no form of this command removes the source mac as the match criteria.

Default 

no src-mac

Parameters 
ieee-address—
Specifies the 48-bit IEEE mac address to be used as a match criterion.
Values—
HH:HH:HH:HH:HH:HH or HH-HH-HH-HH-HH-HH where H is a hexadecimal digit

 

ieee-address-mask—
Specifies a 48-bit mask.

This 48-bit mask can be configured using the following formats:

Format Style

Format Syntax

Example

Decimal

DDDDDDDDDDDDDD

281474959933440

Hexadecimal

0xHHHHHHHHHHHH

0x0FFFFF000000

Binary

0bBBBBBBB...B

0b11110000...B

To configure so that all packets with a source MAC OUI value of 00-03-FA are subject to a match condition, the entry should be specified as: 003FA000000 0xFFFFFF000000

Values—
0x00000000000000 to 0xFFFFFFFFFFFF

 

Default—
0xFFFFFFFFFFFF (exact match)

4.8.2.1.9. Policy and Entry Maintenance Commands

copy

Syntax 
copy {ip-filter | ipv6-filter | mac-filter} source-filter-id dest-filter-id dest-filter-id [overwrite]
Context 
config>filter
Supported Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

This command copies existing filter list entries for a specific filter ID to another filter ID. The copy command is a configuration level maintenance tool to create new filters using existing filters. It also allows bulk modifications to an existing policy with the use of the overwrite keyword. If overwrite is not specified, an error occurs if the destination policy ID exists.

Parameters 
ip-filter—
Specifies that the source-filter-id and the dest-filter-id are IP filter IDs.
ipv6-filter—
Specifies that the source-filter-id and the dest-filter-id are IPv6 filter IDs.
mac-filter—
Specifies that the source-filter-id and the dest-filter-id are MAC filter IDs.
source-filter-id—
Specifies the source-filter-id, which identifies the source filter policy from which the copy command will attempt to copy. The filter policy must exist within the context of the preceding keyword (ip-filter or mac-filter).
dest-filter-id—
Specifies the destination filter policy where the copy command attempts to copy. If the overwrite keyword does not follow, the filter policy ID cannot already exist within the system for the filter type the copy command is issued for. If the overwrite keyword is present, the destination policy ID may or may not exist.
overwrite—
Specifies that the destination filter ID may exist. If it does, the existing destination filter ID will be overwritten with the contents of the source filter ID. If the destination filter ID exists, either overwrite must be specified or an error message is returned. If overwrite is specified, the function of copying from source to destination occurs in a “break before make” manner, so must be handled with care.

filter-name

Syntax 
filter-name filter-name
Context 
config>filter>ip-filter
config>filter>ipv6-filter
config>filter>mac-filter
Supported Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

This command configures filter-name attribute of a specific filter. filter-name, when configured, can be used instead of filter ID to reference the specific policy in the CLI.

Default 

no filter-name

Parameters 
filter-name—
Specifies a string of up to 64 characters uniquely identifying this filter policy.

renum

Syntax 
renum old-entry-id new-entry-id
Context 
config>filter>ip-filter
config>filter>ipv6-filter
config>filter>mac-filter
Supported Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

This command renumbers existing MAC or IP filter entries to properly sequence filter entries. This may be required in some cases since the OS exits when the first match is found and executes the actions according to the accompanying action command. This requires that entries be sequenced correctly from most to least explicit.

Parameters 
old-entry-id—
Specifies the entry number of an existing entry.
Values—
1 to 65535

 

new-entry-id—
Specifies the new entry-number to be assigned to the old entry.
Values—
1 to 65535

 

type

Syntax 
type filter-type
Context 
config>filter>mac-filter
Supported Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

This command configures the type of mac-filter as normal, ISID or VID types.

Default 

normal

Parameters 
filter-type—
Specifies which type of entries this MAC filter can contain.
Values—
normal — Regular match criteria are allowed; ISID or VID filter match criteria not allowed.
isid — Only ISID match criteria are allowed.
vid — Only VID match criteria are allowed on ethernet_II frame types.

 

4.8.2.2. Show Commands

download-failed

Syntax 
download-failed
Context 
show>filter
Supported Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

This command displays all filter entries for which the download has failed.

Output 

The following output is an example of failed download information, and Table 44 describes the output fields.

Sample Output
A:ALA-48# show filter download-failed
============================================
Filter entries for which download failed
============================================
Filter-type    Filter-Id      Filter-Entry
--------------------------------------------
ip             1              10
============================================
A:ALA-48#
Table 44:  Output Fields: Filter Download-failed 

Label

Description

Filter-type

Displays the filter type

Filter-ID

Displays the ID of the filter

Filter-Entry

Displays the entry number of the filter

ip

Syntax 
ip ip-filter-id [association | counters]
ip ip-filter-id entry entry-id [counters]
Context 
show>filter
Supported Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

This command displays IP filter information.

Parameters 
ip-filter-id—
Displays detailed information for the specified filter ID and its filter entries.
Values—
1 to 65535

 

entry entry-id
Displays information about the specified filter entry ID for the specified filter ID only.
Values—
1 to 65535

 

associations—
Displays information about where the filter policy ID is applied to the detailed filter policy ID output.
counters—
Displays counter information for the specified filter ID. Egress counters count the packets without Layer 2 encapsulation. Ingress counters count the packets with Layer 2 encapsulation.
type entry-type
Displays information about the specified filter ID for the specified entry-type only
Output 

The following outputs are examples of IP filter information, and the associated tables describe the output fields.

  1. IP Filter with Filter ID Specified: Sample Output, Table 46
  2. IP Filter with Time-range Specified: Sample Output
  3. IP Filter Associations: Sample Output, Table 47
  4. IP Filter Counters: Table 48
Sample Output
A:ALA-49# show filter ip
===============================================================================
IP Filters
===============================================================================
Filter-Id Scope    Applied Description
-------------------------------------------------------------------------------
1         Template Yes
3         Template Yes
6         Template Yes
10        Template No
11        Template No
-------------------------------------------------------------------------------
Num IP filters: 5
===============================================================================
A:ALA-49#
 
*A:Dut-C>config>filter# show filter ip 
===============================================================================
IP Filters                                                       Total:     2
===============================================================================
Filter-Id   Scope    Applied Description
-------------------------------------------------------------------------------
10001       Template Yes     
fSpec-1     Template Yes     BGP FlowSpec filter for the Base router
-------------------------------------------------------------------------------
Num IP filters: 2
===============================================================================
*A:Dut-C>config>filter# 
Table 45:  Output Fields: Filter IP 

Label

Description

Filter Id

The IP filter ID.

Scope

Template

The filter policy is of type template.

Exclusive

The filter policy is of type exclusive.

Applied

No

The filter policy ID has not been applied.

Yes

The filter policy ID has been applied.

Description

The IP filter policy description.

Sample Output
A:ALA-49>config>filter# show filter ip 3
===============================================================================
IP Filter
===============================================================================
Filter Id    : 3                                Applied        : Yes
Scope        : Template                         Def. Action    : Drop
Entries      : 1
-------------------------------------------------------------------------------
Filter Match Criteria : IP
-------------------------------------------------------------------------------
Entry        : 10
Src. IP      : 10.1.1.1/24                      Src. Port      : None
Dest. IP     : 0.0.0.0/0                        Dest. Port     : None
Protocol     : 2                                Dscp           : Undefined
ICMP Type    : Undefined                        ICMP Code      : Undefined
TCP-syn      : Off                              TCP-ack        : Off
Match action : Drop
Ing. Matches : 0                                Egr. Matches   : 0
===============================================================================
A:ALA-49>config>filter# 
 
*A:Dut-C>config>filter# show filter ip fSpec-1 associations 
===============================================================================
IP Filter
===============================================================================
Filter Id    : fSpec-1                          Applied        : Yes
Scope        : Template                         Def. Action    : Forward
Radius Ins Pt: n/a                              
CrCtl. Ins Pt: n/a                              
Entries      : 2 (insert By Bgp)
Description  : BGP FlowSpec filter for the Base router
-------------------------------------------------------------------------------
Filter Association : IP
-------------------------------------------------------------------------------
Service Id   : 1                                Type           : IES
- SAP    1/1/3:1.1   (merged in ip-fltr 10001) 
===============================================================================
*A:Dut-C>config>filter# 
 
 
*A:Dut-C>config>filter# show filter ip 10001 
===============================================================================
IP Filter
===============================================================================
Filter Id    : 10001                            Applied        : Yes
Scope        : Template                         Def. Action    : Drop
Radius Ins Pt: n/a                              
CrCtl. Ins Pt: n/a                              
Entries      : 1                                
BGP Entries  : 2                                
Description  : (Not Specified)
-------------------------------------------------------------------------------
Filter Match Criteria : IP
-------------------------------------------------------------------------------
Entry        : 1  
Description  : (Not Specified)
Log Id       : n/a                              
Src. IP      : 0.0.0.0/0                        Src. Port      : None
Dest. IP     : 0.0.0.0/0                        Dest. Port     : None
Protocol     : 6                                Dscp           : Undefined
ICMP Type    : Undefined                        ICMP Code      : Undefined
Fragment     : Off                              Option-present : Off
Sampling     : Off                              Int. Sampling  : On
IP-Option    : 0/0                              Multiple Option: Off
TCP-syn      : Off                              TCP-ack        : Off
Match action : Forward                          
Next Hop     : Not Specified                    
Ing. Matches : 0 pkts
Egr. Matches : 0 pkts
 
Entry        : fSpec-1-32767  - inserted by BGP FLowSpec
Description  : (Not Specified)
Log Id       : n/a                              
Src. IP      : 0.0.0.0/0                        Src. Port      : None
Dest. IP     : 0.0.0.0/0                        Dest. Port     : None
Protocol     : 6                                Dscp           : Undefined
ICMP Type    : Undefined                        ICMP Code      : Undefined
Fragment     : Off                              Option-present : Off
Sampling     : Off                              Int. Sampling  : On
IP-Option    : 0/0                              Multiple Option: Off
TCP-syn      : Off                              TCP-ack        : Off
Match action : Drop                             
Ing. Matches : 0 pkts
Egr. Matches : 0 pkts
 
Entry        : fSpec-1-49151  - inserted by BGP FLowSpec
Description  : (Not Specified)
Log Id       : n/a                              
Src. IP      : 0.0.0.0/0                        Src. Port      : None
Dest. IP     : 0.0.0.0/0                        Dest. Port     : None
Protocol     : 17                               Dscp           : Undefined
ICMP Type    : Undefined                        ICMP Code      : Undefined
Fragment     : Off                              Option-present : Off
Sampling     : Off                              Int. Sampling  : On
IP-Option    : 0/0                              Multiple Option: Off
TCP-syn      : Off                              TCP-ack        : Off
Match action : Drop                             
Ing. Matches : 0 pkts
Egr. Matches : 0 pkts
 
===============================================================================
*A:Dut-C>config>filter#
Table 46:  Output Fields: Filter with Filter ID Specified 

Label

Description

Filter Id

The IP filter policy ID.

Scope

Template — The filter policy is of type template.

Exclusive — The filter policy is of type exclusive.

Entries

The number of entries configured in this filter ID.

Description

The IP filter policy description.

Applied

No — The filter policy ID has not been applied.

Yes — The filter policy ID has been applied.

Def. Action

Forward — The default action for the filter ID for packets that do not match the filter entries is to forward.

Drop — The default action for the filter ID for packets that do not match the filter entries is to drop.

Filter Match Criteria

IP — Indicates the filter is an IP filter policy.

Entry

The filter ID filter entry ID. If the filter entry ID indicates the entry is (Inactive), then the filter entry is incomplete as no action has been specified.

ICMP Type

The ICMP type match criterion. Undefined indicates no ICMP type specified.

Fragment

False — Configures a match on all non-fragmented IP packets.

True — Configures a match on all fragmented IP packets.

Off — Fragments are not a matching criteria. All fragments and non-fragments implicitly match.

TCP-syn

False — Configures a match on packets with the SYN flag set to false.

True — Configured a match on packets with the SYN flag set to true.

Off — The state of the TCP SYN flag is not considered as part of the match criteria.

Match action

Default — The filter does not have an explicit forward or drop match action specified. If the filter entry ID indicates the entry is Inactive, the filter entry is incomplete, no action was specified.

Drop — Drop packets matching the filter entry.

Forward — The explicit action to perform is forwarding of the packet.

Ing. Matches

The number of ingress filter matches or hits for the filter entry.

Src. Port

The source TCP or UDP port number.

Dest. Port

The destination TCP or UDP port number.

Dscp

The DiffServ Code Point (DSCP) name.

ICMP Code

The ICMP code field in the ICMP header of an IP packet.

Option-present

Off — Specifies not to search for packets that contain the option field or have an option field of zero.

On — Matches packets that contain the option field or have an option field of zero be used as IP filter match criteria.

TCP-ack

False — Configures a match on packets with the ACK flag set to false.

True — Configures a match on packets with the ACK flag set to true.

Off — The state of the TCP ACK flag is not considered as part of the match criteria. as part of the match criteria.

Egr. Matches

The number of egress filter matches or hits for the filter entry.

Sample Output
A:ALA-49# show filter ip  10
===============================================================================
IP Filter
===============================================================================
Filter Id    : 10                               Applied        : No
Scope        : Template                         Def. Action    : Drop
Entries      : 2
-------------------------------------------------------------------------------
Filter Match Criteria : IP
-------------------------------------------------------------------------------
Entry        : 1010
time-range   : day                              Cur. Status    : Inactive
Src. IP      : 0.0.0.0/0                        Src. Port      : None
Dest. IP     : 10.10.100.1/24                   Dest. Port     : None
Protocol     : Undefined                        Dscp           : Undefined
ICMP Type    : Undefined                        ICMP Code      : Undefined
Fragment     : Off                              Option-present : Off
TCP-syn      : Off                              TCP-ack        : Off
Match action : Forward
Ing. Matches : 0                                Egr. Matches   : 0
 
Entry        : 1020
time-range   : night                            Cur. Status    : Active
Src. IP      : 0.0.0.0/0                        Src. Port      : None
Dest. IP     : 10.10.1.1/16                     Dest. Port     : None
Protocol     : Undefined                        Dscp           : Undefined
ICMP Type    : Undefined                        ICMP Code      : Undefined
Fragment     : Off                              Option-present : Off
TCP-syn      : Off                              TCP-ack        : Off
Match action : Forward
Ing. Matches : 0                                Egr. Matches   : 0
=============================================================================== 
A:ALA-49#
Sample Output
A:ALA-49# show filter ip 1 associations
===============================================================================
IP Filter
===============================================================================
Filter Id    : 1                                Applied        : Yes
Scope        : Template                         Def. Action    : Drop
Entries      : 1
-------------------------------------------------------------------------------
Filter Association : IP
-------------------------------------------------------------------------------
Service Id   : 1001                             Type           : VPLS
 - SAP    1/1/1:1001   (Ingress)
Service Id   : 2000                             Type           : Epipe
 - SAP    1/1/1:2000   (Ingress)
===============================================================================
A:ALA-49#
A:ALA-49# show filter ip 160 associations
===============================================================================
IP Filter
===============================================================================
Filter Id    : 160                              Applied        : No
Scope        : Template                         Def. Action    : Drop
Entries      : 0
-------------------------------------------------------------------------------
Filter Association : IP
-------------------------------------------------------------------------------
Tod-suite "english_suite"
 - ingress, time-range "day" (priority 5)
=============================================================================== 
A:ALA-49#
Table 47:  Output Fields: Filter IP Associations 

Label

Description

Filter Id

The IP filter policy ID.

Scope

Template — The filter policy is of type Template.

Exclusive — The filter policy is of type Exclusive.

Entries

The number of entries configured in this filter ID.

Applied

Yes — The filter policy ID has been applied.

No — The filter policy ID has not been applied.

Def. Action

Forward — The default action for the filter ID for packets that do not match the filter entries is to forward.

Drop — The default action for the filter ID for packets that do not match the filter entries is to drop.

Service Id

The service ID on which the filter policy ID is applied.

SAP

The Service Access Point on which the filter policy ID is applied.

(Ingress)

The filter policy ID is applied as an ingress filter policy on the interface.

(Egress)

The filter policy ID is applied as an egress filter policy on the interface.

Type

The type of service of the service ID.

Show Filter Counters
Table 48:  Output Fields: Filter Counters 

Label

Description

IP Filter Filter Id

The IP filter policy ID.

Scope

Template — The filter policy is of type Template.

Exclusive — The filter policy is of type Exclusive.

Applied

No — The filter policy ID has not been applied.

Yes — The filter policy ID has been applied.

Def. Action

Forward — The default action for the filter ID for packets that do not match the filter entries is to forward.

Drop — The default action for the filter ID for packets that do not match the filter entries is to drop.

Filter Match Criteria

IP — Indicates the filter is an IP filter policy.

Entry

The filter ID filter entry ID. If the filter entry ID indicates the entry is Inactive, then the filter entry is incomplete as no action has been specified.

Ing. Matches

The number of ingress filter matches or hits for the filter entry.

Ingress counters count the packets with Layer 2 encapsulation.

Egr. Matches

The number of egress filter matches or hits for the filter entry.

Egress counters count the packets without Layer 2 encapsulation.

ipv6

Syntax 
ipv6 {ipv6-filter-id [entry entry-id] [association | counters]}
Context 
show>filter
Supported Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

This command displays IPv6 filter information.

Parameters 
ipv6-filter-id—
Displays detailed information for the specified IPv6 filter ID and filter entries.
Values—
1 to 65535

 

entry entry-id—
Displays information about the specified IPv6 filter entry ID for the specified filter ID.
Values—
1 to 9999

 

associations—
Displays information about where the IPv6 filter policy ID is applied to the detailed filter policy ID output.
counters—
Displays counter information for the specified IPv6 filter ID.

Egress counters count the packets without Layer 2 encapsulation. Ingress counters count the packets with Layer 2 encapsulation.

Output 

The following outputs are examples of IP filter information, and the associated tables describe the output fields.

Sample Output
*A:7210SAS>show>filter# ipv6
 
===============================================================================
IPv6 Filters                                                       Total:     1
===============================================================================
Filter-Id Scope    Applied Description
-------------------------------------------------------------------------------
1         Template Yes
-------------------------------------------------------------------------------
Num IPv6 filters: 1
===============================================================================
*A:7210SAS>show>filter#
Table 49:  Output Fields: IP Filter (no filter-id specified) 

Label

Description

Filter Id

The IP filter ID.

Scope Template

The filter policy is of type template.

Exclusive

The filter policy is of type exclusive.

Applied

No — The filter policy ID has not been applied.

Yes — The filter policy ID has been applied.

Description

The IP filter policy description.

Sample Output for IPv6 Filter with Filter ID Specified
*A:7210SAS>show>filter# ipv6 1
 
===============================================================================
IPv6 Filter
===============================================================================
Filter Id    : 1                                Applied        : Yes
Scope        : Template                         Def. Action    : Drop
Entries      : 2
Description  : (Not Specified)
-------------------------------------------------------------------------------
Filter Match Criteria : IPv6
-------------------------------------------------------------------------------
Entry        : 1
Description  : Test
Src. IP      : 2001:db8::1/128                  Src. Port      : None
Dest. IP     : 2001:db8::/0                     Dest. Port     : None
Next Header  : Undefined                        Dscp           : Undefined
ICMP Type    : Undefined                        ICMP Code      : Undefined
TCP-syn      : Off                              TCP-ack        : Off
Match action : Forward
Ing. Matches : 0 pkts
Egr. Matches : 0 pkts
 
Entry        : 2
Description  : (Not Specified)
Src. IP      : ::/0                             Src. Port      : None
Dest. IP     : 1:2::1AFC/128                    Dest. Port     : None
Next Header  : Undefined                        Dscp           : Undefined
ICMP Type    : Undefined                        ICMP Code      : Undefined
TCP-syn      : Off                              TCP-ack        : Off
Match action : Drop
Ing. Matches : 819 pkts
Egr. Matches : 0 pkts
 
===============================================================================
*A:7210SAS>show>filter#
Table 50:  Output Fields: Filter (with filter-id specified) 

Label

Description

Filter Id

The IP filter policy ID.

Scope

Template — The filter policy is of type template.

Exclusive — The filter policy is of type exclusive.

Entries

The number of entries configured in this filter ID.

Description

The IP filter policy description.

Applied

No — The filter policy ID has not been applied.

Yes — The filter policy ID has been applied.

Def. Action

Forward — The default action for the filter ID for packets that do not match the filter entries is to forward.

Drop — The default action for the filter ID for packets that do not match the filter entries is to drop.

Filter Match Criteria

IP — Indicates the filter is an IP filter policy.

Entry

The filter ID filter entry ID. If the filter entry ID indicates the entry is (Inactive), then the filter entry is incomplete as no action has been specified.

Src. IP

The source IP address and mask match criterion. 0.0.0.0/0 indicates no criterion specified for the filter entry.

Dest. IP

The destination IP address and mask match criterion. 0.0.0.0/0 indicates no criterion specified for the filter entry.

ICMP Type

The ICMP type match criterion. Undefined indicates no ICMP type specified.

IP-Option

Specifies matching packets with a specific IP option or a range of IP options in the IP header for IP filter match criteria.

TCP-syn

False — Configures a match on packets with the SYN flag set to false.

True — Configured a match on packets with the SYN flag set to true.

Off — The state of the TCP SYN flag is not considered as part of the match criteria.

Match action

Default — The filter does not have an explicit forward or drop match action specified. If the filter entry ID indicates the entry is (Inactive), then the filter entry is incomplete as no action has been specified.

Drop — Drop packets matching the filter entry.

Forward — The explicit action to perform is forwarding of the packet. If the action is Forward, then, if configured, the next-hop information should be displayed, including Nexthop: <IP address>, Indirect: <IP address> or Interface: <IP interface name>.

Ing. Matches

The number of ingress filter matches or hits for the filter entry.

Src. Port

The source TCP or UDP port number or port range.

Dest. Port

The destination TCP or UDP port number or port range.

Dscp

The DiffServ Code Point (DSCP) name.

ICMP Code

The ICMP code field in the ICMP header of an IP packet.

TCP-ack

False — Configures a match on packets with the ACK flag set to false.

True — Configured a match on packets with the ACK flag set to true.

Off — The state of the TCP ACK flag is not considered as part of the match criteria

Ing. Matches

The number of ingress filter matches or hits for the filter entry.

Egr. Matches

The number of egress filter matches or hits for the filter entry.

Sample Output for IPv6 Filter Associations
*A:7210SAS>show>filter# ipv6 1 associations
 
===============================================================================
IPv6 Filter
===============================================================================
Filter Id    : 1                                Applied        : Yes
Scope        : Template                         Def. Action    : Drop
Entries      : 2
Description  : (Not Specified)
-------------------------------------------------------------------------------
Filter Association : IPv6
-------------------------------------------------------------------------------
Service Id   : 1                                Type           : Epipe
 - SAP    1/1/1:1   (Ingress)
Service Id   : 2                                Type           : VPLS
 - SAP    1/1/1:2   (Ingress)
 - SAP    1/1/1:3   (Ingress)
===============================================================================
*A:7210SAS>show>filter#
Table 51:  Output Fields: Filter Associations 

Label

Description

Filter Id

The IPv6 filter policy ID.

Scope

Template — The filter policy is of type Template.

Exclusive — The filter policy is of type Exclusive.

Entries

The number of entries configured in this filter ID.

Applied

No — The filter policy ID has not been applied.

Yes — The filter policy ID has been applied.

Def. Action

Forward — The default action for the filter ID for packets that do not match the filter entries is to forward.

Drop — The default action for the filter ID for packets that do not match the filter entries is to drop.

Description

The IP filter policy description.

Service Id

The service ID on which the filter policy ID has been applied.

SAP

The Service Access Point on which the filter policy ID is applied.

Ingress — The filter policy ID is applied as an ingress filter policy on the interface.

Egress — The filter policy ID is applied as an egress filter policy on the interface.

Type

The type of service of the service ID.

Sample Output for IPv6 Filter Counters
*A:7210SAS>show>filter# ipv6 1 counters
 
===============================================================================
IPv6 Filter
===============================================================================
Filter Id    : 1                                Applied        : Yes
Scope        : Template                         Def. Action    : Drop
Entries      : 2
Description  : (Not Specified)
-------------------------------------------------------------------------------
Filter Match Criteria : IPv6
-------------------------------------------------------------------------------
Entry        : 1
Ing. Matches : 0 pkts
Egr. Matches : 0 pkts
 
Entry        : 2
Ing. Matches : 819 pkts
Egr. Matches : 0 pkts
 
===============================================================================
*A:7210SAS>show>filter#
Table 52:  Output Fields: Filter Counters 

Label

Description

Filter Id

The IPv6 filter policy ID.

Scope

Template — The filter policy is of type Template.

Exclusive — The filter policy is of type Exclusive.

Entries

The number of entries configured in this filter ID.

Applied

No — The filter policy ID has not been applied.

Yes — The filter policy ID has been applied.

Def. Action

Forward — The default action for the filter ID for packets that do not match the filter entries is to forward.

Drop — The default action for the filter ID for packets that do not match the filter entries is to drop.

Description

The IP filter policy description.

Entry

The filter ID filter entry ID. If the filter entry ID indicates the entry is (Inactive), then the filter entry is incomplete as no action has been specified.

Ing. Matches

The number of ingress filter matches or hits for the filter entry.

Egr. Matches

The number of egress filter matches or hits for the filter entry.

Egress counters count the packets without Layer 2 encapsulation. Ingress counters count the packets with Layer 2 encapsulation.

mac

Syntax 
mac [mac-filter-id [associations | counters] [entry entry-id]]
Context 
show>filter
Supported Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

This command displays MAC filter information.

Parameters 
mac-filter-id—
Displays detailed information for the specified filter ID and its filter entries.
Values—
1 to 65535

 

associations—
Displays information about where the filter policy ID is applied to the detailed filter policy ID output.
counters—
Displays counter information for the specified filter ID.
entry entry-id
Displays information about the specified filter entry ID for the specified filter ID only.
Values—
1 to 65535

 

Output 

The following outputs are examples of MAC filter information, and the associated tables describe the output fields.

Sample Output
===============================================================================
Mac Filter
===============================================================================
Filter Id   : 8                                Applied         : Yes
Scope       : Template                         Def. Action     : Forward
Entries     : 2
Description : Description for Mac Filter Policy id # 8
-------------------------------------------------------------------------------
Filter Match Criteria : Mac
-------------------------------------------------------------------------------
Entry       : 8                                FrameType       : Ethernet
Ing. Matches: 80 pkts 
Egr. Matches: 62 pkts 
  
Entry       : 10                               FrameType       : Ethernet
Ing. Matches: 80 pkts
Egr. Matches: 80 pkts
Sample Detailed Output
===============================================================================
Mac Filter : 200
===============================================================================
Filter Id     : 200                             Applied          : No
Scope         : Exclusive                       D. Action        : Drop
Description : Forward SERVER sourced packets
-------------------------------------------------------------------------------
Filter Match Criteria : Mac
-------------------------------------------------------------------------------
Entry         : 200                            FrameType        : 802.2SNAP
Description   : Not Available
Src Mac       : 00:00:5a:00:00:00 ff:ff:ff:00:00:00
Dest Mac      : 00:00:00:00:00:00 00:00:00:00:00:00
Dot1p         : Undefined                      Ethertype         : 802.2SNAP
Match action  : Forward
Ing. Matches  : 0                              Egr. Matches      : 0
Entry         : 300 (Inactive)                 FrameType         : Ethernet
Description   : Not Available
Src Mac       : 00:00:00:00:00:00 00:00:00:00:00:00
Dest Mac      : 00:00:00:00:00:00 00:00:00:00:00:00
Dot1p         : Undefined                       Ethertype         : Ethernet
Match action  : Default
Ing. Matches  : 0                               Egr. Matches      : 0
===============================================================================
Table 53:  Output Fields: Filter MAC 

Label

Description

MAC Filter

Filter Id

The MAC filter policy ID.

Scope

Template — The filter policy is of type Template.

Exclusive — The filter policy is of type Exclusive.

Description

The IP filter policy description.

Applied

No — The filter policy ID has not been applied.

Yes — The filter policy ID has been applied.

Def. Action

Forward — The default action for the filter ID for packets that do not match the filter entries is to forward.

Drop — The default action for the filter ID for packets that do not match the filter entries is to drop.

Filter Match Criteria

MAC — Indicates that the filter is an MAC filter policy.

Entry

The filter ID filter entry ID. If the filter entry ID indicates the entry is (Inactive), then the filter entry is incomplete as no action has been specified.

Description

The filter entry description.

FrameType

Ethernet — The entry ID match frame type is Ethernet IEEE 802.3.

Ethernet II — The entry ID match frame type is Ethernet Type II

Src MAC

The source MAC address and mask match criterion. When both the MAC address and mask are all zeros, no criterion specified for the filter entry.

Dest MAC

The destination MAC address and mask match criterion. When both the MAC address and mask are all zeros, no criterion specified for the filter entry.

Dot1p

The IEEE 802.1p value for the match criteria. Undefined indicates no value is specified.

Ethertype

The Ethertype value match criterion.

Match action

Default — The filter does not have an explicit forward or drop match action specified. If the filter entry ID indicates the entry is Inactive, the filter entry is incomplete, no action was specified.

Drop — Packets matching the filter entry criteria are dropped.

Forward — Packets matching the filter entry criteria are forwarded.

Ing. Matches

The number of ingress filter matches or hits for the filter entry.

Egr. Matches

The number of egress filter matches or hits for the filter entry.

Sample Output for MAC Filter Associations
A:ALA-49# show filter mac 3 associations
===============================================================================
Mac Filter
===============================================================================
Filter ID  : 3                             Applied       : Yes
Scope      : Template                      Def. Action   : Drop
Entries    : 1
-------------------------------------------------------------------------------
Filter Association : Mac
-------------------------------------------------------------------------------
Service Id  : 1001                          Type         : VPLS
- SAP   1/1/1:1001  (Egress)
===============================================================================
A:ALA-49#
Table 54:  Output Fields: Filter MAC Associations 

Label

Description

Filter Association

Mac — The filter associations displayed are for a MAC filter policy ID.

Service Id

The service ID on which the filter policy ID is applied.

SAP

The Service Access Point on which the filter policy ID is applied.

Type

The type of service of the Service ID.

(Ingress)

The filter policy ID is applied as an ingress filter policy on the interface.

(Egress)

The filter policy ID is applied as an egress filter policy on the interface.

Sample Output for MAC Filter Counters
A:ALA-49# show filter mac 8 counters
Table 55:  Output Fields: Filter MAC Counters 

Label

Description

Mac Filter

Filter Id

The MAC filter policy ID.

Scope

Template — The filter policy is of type Template.

Exclusive — The filter policy is of type Exclusive.

Description

The MAC filter policy description.

Applied

No — The filter policy ID has not been applied.

Yes — The filter policy ID has been applied.

Def. Action

Forward — The default action for the filter ID for packets that do not match the filter entries is to forward.

Drop — The default action for the filter ID for packets that do not match the filter entries is to drop.

Filter Match Criteria

Mac — Indicates that the filter is an MAC filter policy.

Entry

The filter ID filter entry ID. If the filter entry ID indicates the entry is (Inactive), then the filter entry is incomplete as no action has been specified.

FrameType

Ethernet II — The entry ID match frame type is Ethernet Type II.

Ing. Matches

The number of ingress filter matches or hits for the filter entry.

Egr. Matches

The number of egress filter matches or hits for the filter entry.

4.8.2.3. Clear Commands

ip

Syntax 
ip ip-filter-id [entry entry-id] [ingress | egress]
Context 
clear>filter
Supported Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

This command clears the counters associated with the IP filter policy.

By default, all counters associated with the filter policy entries are reset. The scope of which counters are cleared can be narrowed using the command line parameters.

Parameters 
ip-filter-id—
Specifies the IP filter policy ID.
Values—
1 to 65535

 

entry-id—
Specifies that only the counters associated with the specified filter policy entry will be cleared.
Values—
1 to 65535

 

ingress—
Specifies to only clear the ingress counters.
egress—
Specifies to only clear the egress counters.

ipv6

Syntax 
ipv6 ip-filter-id [entry entry-id] [ingress | egress]
Context 
clear>filter
Supported Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

This command clears the counters associated with the IPv6 filter policy.

By default, all counters associated with the filter policy entries are reset. The scope of which counters are cleared can be narrowed using the command line parameters.

Parameters 
ip-filter-id —
Specifies the IP filter policy ID.
Values—
1 to 65535

 

entry-id—
Specifies that only the counters associated with the specified filter policy entry will be cleared.
Values—
1 to 65535

 

ingress —
Specifies to only clear the ingress counters.
egress —
Specifies to only clear the egress counters.

mac

Syntax 
mac mac-filter-id [entry entry-id] [ingress | egress]
Context 
clear>filter
Supported Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

This command clears the counters associated with the MAC filter policy.

By default, all counters associated with the filter policy entries are reset. The scope of which counters are cleared can be narrowed using the command line parameters.

Parameters 
mac-filter-id—
Specifies the MAC filter policy ID.
Values—
1 to 65535

 

entry-id—
Specifies that only the counters associated with the specified filter policy entry will be cleared.
Values—
1 to 65535

 

ingress—
Specifies to only clear the ingress counters.
egress—
Specifies to only clear the egress counters.

4.8.2.4. Monitor Commands

ip

Syntax 
ip ip-filter-id entry entry-id [interval seconds] [repeat repeat] [absolute | rate]
Context 
monitor>filter
Supported Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

This command monitors the counters associated with the IP filter policy.

Parameters 
ip-filter-id—
Specifies the IP filter policy ID.
Values—
1 to 65535

 

entry-id—
Specifies that only the counters associated with the specified filter policy entry will be monitored.
Values—
1 to 65535

 

interval—
Specifies the interval for each display, in seconds.
Values—
3 to 60

 

Default—
10 seconds
repeat repeat
Specifies how many times the command is repeated.
Values—
1 to 999

 

Default—
10
absolute—
Displays raw statistics without processing. No calculations are performed on the delta or rate statistics.
rate—
Displays the rate-per-second for each statistic instead of the delta.

ipv6

Syntax 
ipv6 ip-filter-id entry entry-id [interval seconds] [repeat repeat] [absolute | rate]
Context 
monitor>filter
Supported Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

This command monitors the counters associated with the IPv6 filter policy.

Parameters 
ip-filter-id—
Specifies the IP filter policy ID.
Values—
1 to 65535

 

entry-id—
Specifies that only the counters associated with the specified filter policy entry will be monitored.
Values—
1 to 65535

 

interval seconds—
Specifies the interval for each display, in seconds.
Values—
3 to 60

 

Default—
10
repeat repeat
Specifies how many times the command is repeated.
Values—
1 to 999

 

Default—
10
absolute—
Displays raw statistics without processing. No calculations are performed on the delta or rate statistics.
rate—
Displays the rate-per-second for each statistic instead of the delta.

mac

Syntax 
mac mac-filter-id entry entry-id [interval seconds] [repeat repeat] [absolute | rate]
Context 
monitor>filter
Supported Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

This command monitors the counters associated with the MAC filter policy.

Parameters 
mac mac-filter-id—
Specifies the MAC filter policy ID.
Values—
1 to 65535

 

entry entry-id—
Specifies that only the counters associated with the specified filter policy entry will be cleared.
Values—
1 to 65535

 

interval seconds—
Specifies the interval for each display, in seconds.
Values—
3 to 60

 

Default—
5
repeat repeat
Specifies how many times the command is repeated.
Values—
1 to 999

 

Default—
10
absolute—
Displays raw statistics without processing. No calculations are performed on the delta or rate statistics.
rate—
Displays the rate-per-second for each statistic instead of the delta.