Defining Filters
  • 07 Apr 2022
  • 16 Minutes to read
  • Contributors
  • PDF

Defining Filters

  • PDF

Article summary

You can set up a specific filter (Layer-2, IPv4 or IPv6) for use with loopbacks, measuring bandwidth utilization per flow or traffic policies. By using such a filter, you can loop back traffic or set up a traffic policy based on specific characteristics such as Ethernet Header settings, VLAN settings and DSCP for Layer-2 filters, or based on IPv4/IPv6 Header settings, UDP/TCP settings and VLAN settings. You can also use the preconfigured Layer-2, IPv4 or IPv6 filters.


Note: The maximum number of traffic policies using a specific filter (Layer-2 filter, IPv4 or IPv6 filter) is limited by the type of unit you use. Refer to your unit’s datasheet for the maximum number of supported traffic policies.

Configuring a Layer-2 Filter

To set up a Layer-2 filter

  1. Access the page Traffic ▶ Filters ▶ L2 Filters.

    A summary of all Layer-2 filters that are currently set up is displayed. For more information on specific parameters, refer to the table at the end of this procedure.

    The total number of filters found in the system is given in the lower-left corner of the page, as well as the index values of the items currently displayed on-screen (for example, [1-25] of 54). Use the page navigation links in the lower-right corner of the page to move between the pages of results.


    Note: Commonly-used filters have been predefined for your convenience.

  2. Click Add to add a new filter or click the Filter Name of an existing Layer-2 filter to edit its settings.

  3. Check the appropriate check box to enable this field, complete the required fields, then click Add.


    Notes:

    For all fields, check the box to enable the field. If the check box is not selected, the value will be ignored.

    You can specify several VLAN fields for the first VLAN (VLAN 1) as well as for the second level VLAN (VLAN in VLAN).


For more information on specific parameters, refer to the following tables.

Layer-2 Filters (Traffic ▶ Filters ▶ L2 Filters)

ParameterDescription
L2 Filter nameA unique name to identify the filter

Ethernet Header Settings

ParameterDescription
MAC destination / maskThe destination MAC address and mask. Only the bits specified by the mask are used; the other bits are ignored.

Address Format: Six pairs of hexadecimal digits, separated by colons (xx:xx:xx:xx:xx:xx).

Remote Device MACEnable this box to automatically assign the remote device's own MAC address as the frames' destination address.

Using the remote device's MAC address means you do not have to create a filter per device when several devices share the same loopback.

MAC source / maskThe source MAC address and mask. Only the bits specified by the mask are used; the other bits are ignored.

Address Format: Six pairs of hexadecimal digits, separated by colons (xx:xx:xx:xx:xx:xx).

Encapsulated EthertypeProtocol may be selected or entered manually (hexadecimal):
  • IPv4 (0x0800)
  • X.25 Layer3 (0x0805)
  • ARP
  • (0x0806)
  • REVARP (0x8035)
  • IPX (0x8137)
  • SNMP (0x814C)
  • WCP (0x80FF)
  • IPv6 (0x86DD)
  • MAC Control (0x8808)
  • MAC Protocol (0x22E2)
  • PPP (0x880B)
  • MPLS (0x8847)
  • MPLS Multicast (0x8848)
  • PPPOE Discovery (0x8863)
  • PPPOE Session (0x8864)
  • VLAN (0x8100)
  • VLAN (0x88A8)
  • VLAN (0x9100)
  • LLDP (0x88CC)
  • 3GPP2 (0x88d2)
  • LOOP (0x9000)
VLAN Stack SizeEnable this box, then make a selection in the drop-down list to indicate the number of VLAN tags that packets must have in order to match this filter.

VLAN and VLAN-in-VLAN Settings

ParameterDescription
EthertypeThe VLAN Ethernet Type may be one of the following:
  • C-VLAN: Customer VLAN (typically the inner tag).
  • S-VLAN: Service VLAN (typically the outer tag).
  • T-VLAN: Tunnel VLAN (either the inner or outer tag).
CFI/DEIThe Canonical Format Indicator (CFI) or the Drop Eligibility Indicator (DEI). This value should always be set to zero for connections to Ethernet switches.

CFI is used to ensure compatibility between Ethernet type networks and Token Ring type networks. If a frame received at an Ethernet port has a CFI set to 1, the frame should not be forwarded "as-is" to an untagged port.

In the context of bandwidth regulation, DEI can be used to carry the frame color. When set to 0, the frame is green; when set to 1 the frame is yellow.

PriorityVLAN priority allows provisioning CoS prioritization using the standard 802.1Q priority tag. Interpreting the priorities is based on the carrier's equipment and administrative policies. The valid operator types are:
  • Greater than
  • Less than
  • Equal to
  • Range (inclusive range)
The possible values for each operator are: 0 to 7.

Note: You can set only one VLAN (VLAN or VLAN-in-VLAN) to a range; the other must be set to Equal to. For instance, if you select a range for the second VLAN (VLAN-in-VLAN), you must select Equal to for the first VLAN (VLAN).

VLAN IDThe VLAN ID used to filter traffic. The valid operator types are:
  • Greater than
  • Less than
  • Equal to
  • Range (inclusive range)

Note: You can set only one VLAN (VLAN or VLAN-in-VLAN) to a range; the other must be set to Equal to. For instance, if you select a range for the second VLAN (VLAN-in-VLAN), you must select Equal to for the first VLAN (VLAN).

DSCP/IP Precedence

ParameterDescription
DSCP/IP PrecedenceThe DSCP/IP precedence operator. The valid operator types are:
  • Greater than
  • Less than
  • Equal to
  • Range (inclusive range)

Note: You can set only one VLAN (VLAN or VLAN-in-VLAN) to a range; the other must be set to Equal to. For instance, if you select a range for the second VLAN (VLAN-in-VLAN), you must select Equal to for the first VLAN (VLAN).

Configuring an IPv4 Filter

To set up an IPv4 filter

  1. Access the page Traffic ▶ Filters ▶ IPv4 Filters.

    A summary of all IPv4 filters that have been set up is displayed. For more information on specific parameters, refer to the table at the end of this procedure.

    The total number of filters found in the system is given in the lower-left corner of the page, as well as the index values of the items currently displayed on screen (for example, [1-25] of 54). Use the page navigation links in the lower-right corner of the page to move between the pages of results.


    Note: Commonly-used filters have been predefined for your convenience.

  2. Click the Add button to add a new filter, or click the Filter Name of an existing IPv4 filter to edit its settings.

  3. Check the appropriate check box to enable this field, complete the required fields, then click Add.


    Notes:

    For all fields, check the box to enable the field. If the check box is not selected, the value will be ignored.

    You can specify several VLAN fields for the first VLAN (VLAN 1), as well as for the second-level VLAN (VLAN in VLAN).


For more information on specific parameters, refer to the following tables.

IPv4 Filters (Traffic ▶ Filters ▶ IPv4 Filters)

ParameterDescription
IPv4 Filter nameA unique name used to identify the filter

IPv4 Header Settings

ParameterDescription
IPv4 source / maskThe source address and mask. Only the bits specified by the mask are used; the other bits are ignored.

Note: Filtering source or destination IP addresses that are assigned by Dynamic Host Control Protocol (DHCP) can be problematic. It is recommended to only specify static or reserved IP addresses in a filter, otherwise the filter must be updated manually whenever the addresses change.

IPv4 destination / maskThe destination address and mask. Only the bits specified by the mask are used. The other bits are ignored.

Note: Filtering source or destination IP addresses that are assigned by Dynamic Host Control Protocol (DHCP) can be problematic. It is recommended to only specify static or reserved IP addresses in a filter, otherwise the filter must be updated manually whenever the addresses change.

TTLThe time-to-live value
ECNExplicit Congestion Notification. Specify either 0 or 3.
Header lengthThe header length, expressed in 32-bit words. Specify a value in the range of 5–15.
ProtocolEither select a protocol from the drop-down list or enter a port number (decimal value) manually.

Common protocols:

  • TCP (6): Used by HTTP, FTP, Telnet and SMTP.
  • UDP (17): Used by DNS, SNMP and RIP.
  • ICMP (1): Used by Ping.
Available protocols [protocol name (port number)]:
  • ICMP (1)
  • IGMP (2)
  • IP (4)
  • TCP (6)
  • EGP (8)
  • IGP (9)
  • UDP (17)
  • IPv6 (41
  • SDRP (42)
  • IPv6-Route (43)
  • IPv6-Frag (44)
  • IDRP (45)
  • RSVP (46)
  • GRE (47)
  • MHRP (48)
  • ESP (50)
  • AH (51)
  • MOBILE (55)
  • SKIP (57)
  • EIGRP (88)
  • OSPFIG (89)
  • IPComp (108)
  • VRRP (112)
MPLS Header PresenceSelect this box to take MPLS headers into account when filtering incoming packets.

If this box is enabled, you must also make a selection from the dropdown list to indicate whether or not these headers should be present:

  • True: Incoming packets must contain an MPLS header
  • False: Incoming packets must not contain an MPLS header
If this box is not enabled, the filter will capture both MPLS traffic and non-MPLS traffic.

Note: Applies to both the Ethertype 0x8847 (MPLS Unicast) and Ethertype 0x8848 (MPLS Multicast).

UDP/TCP Port Settings

ParameterDescription
Source PortEnable this box to specify the UDP or TCP port number (or range of port numbers) to be used by the IPv4 source port field.

Make a selection from the drop-down list, depending on how many source ports you want to specify:

  • Equal to: Enter a single port number in the adjacent field
  • Range: Enter the start and end values for the range of consecutive port numbers in the adjacent fields
This setting is valid only when the Protocol is set to TCP (6) or UDP (17).
Destination PortEnable this box to specify the UDP or TCP port number (or range of port numbers) to be used by the IPv4 destination port field.

Make a selection from the drop-down list, depending on how many source ports you want to specify:

  • Equal to: Enter a single port number in the adjacent field
  • Range: Enter the start and end values for the range of consecutive port numbers in the adjacent fields
This setting is valid only when the Protocol is set to TCP (6) or UDP (17).

ICMP Settings

ParameterDescription
ICMP TypeEnables the use of ICMP. You must specify the ICMP message type to be matched by this filter.

Note: These settings are only valid when the "Protocol" parameter is set to ICMP (1).

Some well-known ICMP types are:

  • Echo Reply (0)
  • Destination
  • Unreachable (3)
  • Redirect (5)
  • Echo (8)
  • Time Exceeded (11)

Other ICMP types: See www.iana.org/

ICMP CodeEnables the use of the ICMP code

Ethernet Header Settings

ParameterDescription
VLAN Stack SizeEnable this box, then make a selection in the drop-down list to indicate the number of VLAN tags that packets must have in order to match this filter.

VLAN and VLAN-in-VLAN Settings

ParameterDescription
EthertypeThe VLAN Ethernet Type may be one of the following:
  • C VLAN: Customer VLAN (typically the inner tag).
  • S-VLAN: Service VLAN (typically the outer tag).
  • T-VLAN: Tunnel VLAN (either the inner or outer tag).
  • Any: Choose this option so filters will allow frames with C-VLAN, S-VLAN or T-VLAN tags through.
CFI/DEIThe Canonical Format Indicator (CFI) or the Drop Eligibility Indicator (DEI). This value should always be set to zero for connections to Ethernet switches.

CFI is used to ensure compatibility between Ethernet type networks and Token Ring type networks. If a frame received at an Ethernet port has a CFI set to 1, the frame should not be forwarded "as-is" to an untagged port.

In the context of bandwidth regulation, DEI can be used to carry the frame color. When set to 0, the frame is green; when set to 1 the frame is yellow.

PriorityEnable this box to specify the priority.

VLAN priority allows provisioning CoS prioritization using the standard 802.1Q priority tag. Interpreting the priorities is based on the carrier's quipment and administrative policies. The valid operator types are:

  • Greater than
  • Less than
  • Equal to
  • Range (inclusive range)

The possible values for each operator are: 0 to 7.

Note: You can set only one VLAN (VLAN or VLAN-in-VLAN) to a range; the other must be set to Equal to. For instance, if you select a range for the second VLAN (VLAN-in-VLAN), you must select Equal to for the first VLAN (VLAN).

VLAN IDThe VLAN ID used to filter traffic. The valid operator types are: The valid operator types are:
  • Greater than
  • Less than
  • Equal to
  • Range (inclusive range)

The possible values for each operator are: 0 to 7.

Note: You can set only one VLAN (VLAN or VLAN-in-VLAN) to a range; the other must be set to Equal to. For instance, if you select a range for the second VLAN (VLAN-in-VLAN), you must select Equal to for the first VLAN (VLAN).

DSCP/IP Precedence

ParameterDescription
DSCP/IP precedenceThe DSCP/IP precedence operator. The valid operator types are: The valid operator types are: The valid operator types are:
  • Greater than
  • Less than
  • Equal to
  • Range (inclusive range)

Configuring an IPv6 Filter

To set up an IPv6 filter

  1. Access the page Traffic ▶ Filters ▶ IPv6 Filters.

    A summary of all IPv6 filters that have been set up is displayed. For more information on specific parameters, refer to the table at the end of this procedure.

    The total number of filters found in the system is given in the lower-left corner of the page, as well as the index values of the items currently displayed on-screen (for example, [1-25] of 54). Use the page navigation links in the lower-right corner of the page to move between the pages of results.

  2. Click the Add button to add a new filter, or click the Filter Name of an existing IPv6 filter to edit its settings.

  3. Check the appropriate check box to enable this field, complete the required fields, then click Add.


    Notes:

    For all fields, check the box to enable the field. If the check box is not selected, the value will be ignored.

    You can specify several VLAN fields for the first VLAN (VLAN 1), as well as for the second-level VLAN (VLAN in VLAN).


For more information on specific parameters, refer to the following tables.

IPv6 Filters (Traffic ▶ Filters ▶ IPv6 Filters)

ParameterDescription
IPv6 Filter nameA unique name used to identify the filter

IPv6 Header Settings

ParameterDescription
IPv6 source / maskThe source address and prefix. Only the bits specified by the prefix are used; the other bits are ignored.

Note: Filtering source or destination IP addresses that are assigned by Dynamic Host Control Protocol version 6 (DHCPv6) can be problematic. It is recommended to only specify static or reserved IP addresses in a filter, otherwise the filter must be updated manually whenever the addresses change.

IPv6 destination / prefixThe destination address and prefix. Only the bits specified by the prefix are used. The other bits are ignored.

Note: Filtering source or destination IP addresses that are assigned by Dynamic Host Control Protocol version 6 (DHCPv6) can be problematic. It is recommended to only specify static or reserved IP addresses in a filter, otherwise the filter must be updated manually whenever the addresses change.

Hop LimitThe current value of the hop limit

Valid values range from 0 to 255.

Note: This field is the IPv6 equivalent of the IPv4 field "Time to Live (TTL)".

Next HeaderSelect this box to filter on packets that contain a Next Header field that references the protocol indicated in the drop-down list to the right.

Notes:

The decimal value indicated to the right of the drop-down list is refreshed automatically after you make your selection. As an alternative, you can enter the value associated with the protocol instead of selecting it from the list. This field is the IPv6 equivalent of the IPv4 field "Protocol".

MPLS Header PresenceSelect this box to take MPLS headers into account when filtering incoming packets.

If this box is enabled, you must also make a selection from the dropdown list to indicate whether or not these headers should be present:

  • True: Incoming packets must contain an MPLS header
  • False: Incoming packets must not contain an MPLS header
If this box is not enabled, the filter will capture both MPLS traffic and non-MPLS traffic.

Note: Applies to both the Ethertype 0x8847 (MPLS Unicast) and Ethertype 0x8848 (MPLS Multicast).

UDP/TCP Port Settings

ParameterDescription
Source PortEnable this box to specify the UDP or TCP port number (or range of port numbers) to be used by the IPv6 source port field.

This setting is valid only when the Protocol is set to TCP (6) or UDP (17).

Destination PortEnable this box to specify the UDP or TCP port number (or range of port numbers) to be used by the IPv6 destination port field.

This setting is valid only when the Protocol is set to TCP (6) or UDP (17).

ICMPv6 Settings

ParameterDescription
ICMPv6 TypeEnables the use of ICMPv6. You must specify the ICMPv6 message type to be matched by this filter.

Note : These settings are only valid when the "Next Header" parameter is set to ICMPv6 (58).

Some well-known ICMPv6 types are:

    Echo
  • Request (128)
  • Echo Reply (129)
  • Destination Unreachable (1)
  • Redirect (137)
  • Neighbor Solicitation (135)
  • Neighbor Advertisement (136)

Other ICMP types: See www.iana.org/

ICMPv6 CodeEnables the use of the ICMPv6 code

Ethernet Header Settings

ParameterDescription
VLAN Stack SizeEnable this box, then make a selection in the drop-down list to indicate the number of VLAN tags that packets must have in order to match this filter.

VLAN and VLAN-in-VLAN Settings

ParameterDescription
EthertypeThe VLAN Ethernet Type may be one of the following:
  • C VLAN: Customer VLAN (typically the inner tag).
  • S-VLAN: Service VLAN (typically the outer tag).
  • T-VLAN: Tunnel VLAN (either the inner or outer tag).
CFI/DEIThe Canonical Format Indicator (CFI) or the Drop Eligibility Indicator (DEI). This value should always be set to zero for connections to Ethernet switches.

CFI is used to ensure compatibility between Ethernet type networks and Token Ring type networks. If a frame received at an Ethernet port has a CFI set to 1, the frame should not be forwarded "as-is" to an untagged port.

In the context of bandwidth regulation, DEI can be used to carry the frame color. When set to 0, the frame is green; when set to 1 the frame is yellow.

PriorityEnable this box to specify the priority.

VLAN priority allows provisioning CoS prioritization using the standard 802.1Q priority tag. Interpreting the priorities is based on the carrier's quipment and administrative policies. The valid operator types are:

  • Greater than
  • Less than
  • Equal to
  • Range (inclusive range)

The possible values for each operator are: 0 to 7.

Note: You can set only one VLAN (VLAN or VLAN-in-VLAN) to a range; the other must be set to Equal to. For instance, if you select a range for the second VLAN (VLAN-in-VLAN), you must select Equal to for the first VLAN (VLAN).

VLAN IDThe VLAN ID used to filter traffic. The valid operator types are: The valid operator types are:
  • Greater than
  • Less than
  • Equal to
  • Range (inclusive range)

The possible values for each operator are: 0 to 7.

Note: You can set only one VLAN (VLAN or VLAN-in-VLAN) to a range; the other must be set to Equal to. For instance, if you select a range for the second VLAN (VLAN-in-VLAN), you must select Equal to for the first VLAN (VLAN).

DSCP/IP Precedence

ParameterDescription
DSCP/IP precedenceThe DSCP/IP precedence operator. The valid operator types are: The valid operator types are: The valid operator types are:
  • Greater than
  • Less than
  • Equal to
  • Range (inclusive range)

© 2024 Cisco and/or its affiliates. All rights reserved.
 
For more information about trademarks, please visit: Cisco trademarks
For more information about legal terms, please visit: Cisco legal terms

For legal information about Accedian Skylight products, please visit: Accedian legal terms and tradmarks



Was this article helpful?

Changing your password will log you out immediately. Use the new password to log back in.
First name must have atleast 2 characters. Numbers and special characters are not allowed.
Last name must have atleast 1 characters. Numbers and special characters are not allowed.
Enter a valid email
Enter a valid password
Your profile has been successfully updated.