![]() |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Flexible Netflow Layer 2 Fields
![]() |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Contents
Flexible Netflow--Layer 2 FieldsLast Updated: November 16, 2012
The Flexible Netflow Layer 2 Fields feature enables collecting statistics for Layer 2 fields such as MAC addresses and virtual LAN (VLAN) IDs from traffic. Finding Feature InformationYour software release may not support all the features documented in this module. For the latest caveats and feature information, see Bug Search Tool and the release notes for your platform and software release. To find information about the features documented in this module, and to see a list of the releases in which each feature is supported, see the feature information table at the end of this module. Use Cisco Feature Navigator to find information about platform support and Cisco software image support. To access Cisco Feature Navigator, go to www.cisco.com/go/cfn. An account on Cisco.com is not required. Information About Flexible Netflow Layer 2 FieldsFlexible Netflow--Layer 2 Fields OverviewThe Flexible Netflow--Layer 2 Fields feature enables collecting statistics for Layer 2 fields such as MAC addresses and virtual LAN (VLAN) IDs from traffic. How to Configure Flexible Netflow Layer 2 FieldsConfiguring a Customized Flow RecordPerform this task to configure a customized flow record. Customized flow records are used to analyze traffic data for a specific purpose. A customized flow record must have at least one match criterion for use as the key field and typically has at least one collect criterion for use as a nonkey field. There are hundreds of possible permutations of customized flow records. This task shows the steps that are used to create one of the possible permutations. Modify the steps in this task as appropriate to create a customized flow record for your requirements. DETAILED STEPS Creating a Customized Flow MonitorPerform this required task to create a customized flow monitor. Each flow monitor has a separate cache assigned to it. Each flow monitor requires a record to define the contents and layout of its cache entries. An advanced user can create a customized format using the flow record command. Before You Begin
SUMMARY STEPS
If you want to use a customized record instead of using one of the Flexible NetFlow predefined records, you must create the customized record before you can perform this task. If you want to add a flow exporter to the flow monitor for data export, you must create the exporter before you can complete this task.
DETAILED STEPS
Applying a Flow Monitor to an InterfaceBefore it can be activated, a flow monitor must be applied to at least one interface. Perform this required task to activate a flow monitor. DETAILED STEPS
Configuration Examples for Flexible Netflow Layer 2 FieldsExample: Configuring Flexible NetFlow for Monitoring MAC and VLAN StatisticsThe following example shows how to configure Flexible NetFlow for monitoring MAC and VLAN statistics. This sample starts in global configuration mode: ! flow record LAYER-2-FIELDS-1 match ipv4 source address match ipv4 destination address match datalink dot1q vlan output match datalink mac source address input match datalink mac source address output match datalink mac destination address input match flow direction ! exit ! ! flow monitor FLOW-MONITOR-4 record LAYER-2-FIELDS-1 exit ! ip cef ! interface GigabitEthernet0/0/1 ip address 172.16.6.2 255.255.255.0 ip flow monitor FLOW-MONITOR-1 input ! Additional ReferencesRelated DocumentsMIBsTechnical Assistance
Feature Information for Flexible NetFlow--Layer 2 FieldsThe following table provides release information about the feature or features described in this module. This table lists only the software release that introduced support for a given feature in a given software release train. Unless noted otherwise, subsequent releases of that software release train also support that feature. Use Cisco Feature Navigator to find information about platform support and Cisco software image support. To access Cisco Feature Navigator, go to www.cisco.com/go/cfn. An account on Cisco.com is not required.
Cisco and the Cisco logo are trademarks or registered trademarks of Cisco and/or its affiliates in the U.S. and other countries. To view a list of Cisco trademarks, go to this URL: www.cisco.com/go/trademarks. Third-party trademarks mentioned are the property of their respective owners. The use of the word partner does not imply a partnership relationship between Cisco and any other company. (1110R) Any Internet Protocol (IP) addresses and phone numbers used in this document are not intended to be actual addresses and phone numbers. Any examples, command display output, network topology diagrams, and other figures included in the document are shown for illustrative purposes only. Any use of actual IP addresses or phone numbers in illustrative content is unintentional and coincidental. © 2009-2012 Cisco Systems, Inc. All rights reserved.
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|