cc/td/doc/product/lan/cat6000/ios127xe
hometocprevnextglossaryfeedbacksearchhelp
PDF

Table of Contents

Configuring NetFlow Data Export

Configuring NetFlow Data Export

This chapter describes how to configure NetFlow Data Export (NDE) on the Catalyst 6000 family switches.


Note For more information on the syntax and usage for the commands used in this chapter, refer to the Catalyst 6000 Family IOS Command Reference publication.

This chapter consists of these sections:

Understanding How NDE Works

These sections describe how NDE works:

Overview of NDE and Integrated MLS Management

You can use NDE to monitor all IP Multilayer Switching (MLS) intersubnet traffic through the Multilayer Switch Feature Card (MSFC). NDE complements the embedded Remote Monitoring (RMON) capabilities on the switch that allow you to see all interface traffic.


Note NDE is not supported for IP multicast MLS or Internetwork Packet Exchange (IPX) MLS.

Note For information on configuring IP MLS, see
"Configuring IP Multilayer Switching."

Integrated MLS management includes products, management utilities, and partner applications designed to gather flow statistics, export the statistics, collect and perform data reduction on the exported statistics, and forward them to applications for traffic monitoring, planning, and accounting. Flow collectors, such as the Cisco SwitchProbe and NetFlow FlowCollector, gather and classify flows. This flow information is then aggregated and fed to applications such as TrafficDirector, NetSys, or NetFlow Analyzer.

MLS Data Collection

An external data collector gathers flow entries from the MLS cache of one or more switches or Cisco routers. The switch or router transmits data to the flow collector by grouping flow entries for expired flows from its MLS cache into a User Datagram Protocol (UDP) datagram, which consists of a header and a series of flow entries. See Figure 21-1.


Figure 21-1: Integrated MLS Management


Using NDE Filters

By default, all expired flows are exported until you specify a filter. After specifying a filter, only expired and purged flows matching the specified filter criteria are exported. Filter values are stored in NVRAM and are not cleared when NDE is disabled.


Note See the "Specifying NDE Flow Filters" section for detailed NDE filter configuration information.

Default NetFlow Data Export Configuration

Table 21-1 shows the default NDE configuration.


Table 21-1: Default NetFlow Data Export Configuration
Feature Default Value

NDE

Disabled

NDE data collector address and UDP port

None specified

NDE filters

None configured

Configuring NetFlow Data Export

These sections describe how to configure NDE:

Specifying a NetFlow Data Export Address

The MSFC and the PFC use the NDE IP address when sending MLS statistics to a data collection application. You must configure the IP address on the MSFC so the data collection application can aggregate export data from both the MSFC and the PFC for the same flow.

If you do not specify an NDE IP address for the MSFC, the MSFC automatically selects the IP address of one of its interfaces and uses that IP address as its NDE IP address and its MLS IP address.

If you manually specify an NDE IP address for the MSFC, the MSFC uses this IP address as its MLS IP address (as shown in the output of the show mls nde command), replacing the one that was automatically selected.

After specifying the NDE IP address for the MSFC, enter the show mls nde command and note the "source address." You must add this address to the included MLS router list on the switch.

Caution When you enable MLS on the Catalyst 6000 family switch, the MSFC automatically selects one of its interfaces as the NDE IP address. If you later enable NDE and you specify a different NDE IP address from the automatically selected address, you must include the new MLS IP address in the list of routers participating in MLS on the switch.

Enabling NetFlow Data Export

To enable NDE for the first time requires the following three steps:

    1. Configuring the NDE Internal IP Address

    2. Configuring the Export Flow Source Interface

    3. Configuring the Export Flow Destination

The collector address and UDP port number are saved in NVRAM and are preserved if NDE is disabled and reenabled or if the switch is power cycled.


Note If you are using the NetFlow FlowCollector application for data collection, verify that the UDP port number you specify is the same port number shown in the FlowCollector's nfconfig.file. This file is located at /opt/csconfc/config/nfconfig.file in the FlowCollector application.

Configuring the NDE Internal IP Address

To configure a NetFlow internal data export collector, perform this task:
Command Purpose
Router(config)# mls nde [ip-address]

Enable NDE and specify the NDE collector and UDP port.

This example shows how to enable NDE and specify the internal collector IP address:

Router(config)# mls nde 172.20.52.3
Router(config)#

Configuring the Export Flow Source Interface

To configure the NDE flow source interface, perform this task:
Command Purpose
Router(config)# ip flow-export source {interface-type number}

Select the NDE flow source interface.

This example shows how to configure the NDE flow source interface as Fast Ethernet interface 5/8:

Router(config)# ip flow-export source fastethernet 5/8
Router(config)#

Configuring the Export Flow Destination

To configure the destination IP address and UDP port to receive the NDE statistics, perform this task:
Command Purpose
Router(config)# ip flow-export destination ip_addres udp-port-number

Configure the NDE destination IP address and UDP port.

This example shows how to configure the NDE flow destination IP address and UDP port on the switch:

Router(config)# ip flow-export destination 172.20.52.37 200
Router(config)#

Displaying the NDE Address and Port Configuration

To display the NDE address and port configuration for the switch, perform these tasks:
Command Purpose
Router# show mls nde

Display the NDE export flow IP address and UDP port configuration.

Router# show ip flow export

Display the NDE export flow IP address and UDP port and the NDE source interface configuration.

This example shows how to display the NDE export flow source IP address and UDP port configuration of the switch:

Router# show mls nde
 Netflow Data Export enabled
 Netflow Data Export configured for port 0 on Host 0.0.0.0
 Source address: 172.20.52.3, port: 8
 Version: 0
 Include Filter is:
   destination: ip address 0.0.0.0, mask 0.0.0.0, port 35
   source: ip address 0.0.0.0, mask 0.0.0.0, port 0
 Exclude Filter is:
   destination: ip address 2.2.2.2, mask 255.255.255.0, port 23
   source: ip address 0.0.0.0, mask 0.0.0.0, port 0
 Total Netflow Data Export Packets are:
    0 packets, 0 no packets, 0 records
Router# 
 

This example shows how to display the NDE export flow IP address and UDP port and the NDE source interface configuration:

Router# show ip flow export
Flow export is enabled
  Exporting flows to 172.20.52.37 (200)
  Exporting using source interface FastEthernet5/8
  Version 1 flow records
  0 flows exported in 0 udp datagrams
  0 flows failed due to lack of export packet
  0 export packets were sent up to process level
  0 export packets were dropped due to no fib
  0 export packets were dropped due to adjacency issues
Router# 

Specifying NDE Flow Filters

This section describes how to configure NDE flow filters.

By default, all expired flows are exported until you specify a filter. After specifying a filter, only expired and purged flows matching the specified filter criteria are exported. Filter values are stored in NVRAM and are not cleared when NDE is disabled.

To display the configuration of the NDE flow filters you configure, use the show mls nde command described in the "Displaying the NDE Configuration" section.

Specifying a Port Flow Filter

To specify a destination or source port flow filter, perform this task:
Command Purpose
Router(config)# mls nde flow {exclude | include} {dest-port number | src-port number}

Specify a port filter for an NDE flow.

This example shows how to specify a port flow filter so that only expired flows to destination port 23 are exported (assuming the flow mask is set to ip-flow):

Router(config)# mls nde flow include dest-port 35
Router(config)#
 

Specifying a Host and Port Filter

To specify a host and TCP/UDP port flow filter, perform this task:
Command Purpose
Router(config)# mls nde flow {exclude | include} {destination ip_address mask | source ip_address mask {dest-port number | src-port number}}

Specify a host and port flow filter for an NDE flow.

This example shows how to specify a source host and destination TCP/UDP port flow filter so that only expired flows from host 171.69.194.140 to destination port 23 are exported (assuming the flow mask is set to ip-flow):

Router(config)# mls nde flow exclude destination 2.2.2.2 255.255.255.0 dest-port 23
 

Specifying a Host Flow Filter

To specify a destination or source host flow filter, perform this task
Command Purpose
Router(config)# mls nde flow {exclude | include} {destination ip_address mask | source ip_address mask | protocol {tcp {dest-port number | src-port number} | udp {dest-port number | src-port number}}

Specify a host flow filter for an NDE flow.

:

This example shows how to specify a host flow filter to include and export only destinations to host 172.20.52.37:

Router(config)# mls nde flow include destination 172.20.52.37 255.255.255.224
Router(config)# 

Specifying a Protocol Flow Filter

To specify a protocol flow filter, perform this task:
Command Purpose
Router(config)# mls nde flow {exclude | include} protocol {tcp {dest-port number | src-port number} | udp {dest-port number | src-port number}}

Specify a protocol flow filter for an NDE flow.

This example shows how to specify a TCP protocol flow filter so that only expired flows from destination port 35 are exported:

Router(config)# mls nde flow include protocol tcp dest-port 35
Router(config)#

Clearing an NDE Flow Filter

To clear the NDE flow filter and reset the filter to the default (all flows exported), perform this task:
Command Purpose
Router# clear mls nde flow {all | exclude | include}

Clear the NDE flow filter.

This example shows how to clear the NDE flow filter so that all flows are exported:

Router# clear mls nde flow all
Router# 
 

To display the status of the NDE flow filters, use the show mls nde command described in the "Displaying the NDE Configuration" section.

Disabling NetFlow Data Export


Note If NDE is enabled and you disable MLS, you lose the statistics for existing cache entries--- they are not exported.

To disable NDE, perform this task:
Command Purpose
Router# no mls nde {ip_address udp_port}

Disable NDE on the switch.

This example shows how to disable NDE on the switch and use the show mls nde command to confirm the NDE is disabled:

Router(config)# no mls nde 172.20.52.3 8
Router(config)# ^Z
Router#
*Nov  4 11:12:06: %SYS-5-CONFIG_I: Configured from console by vty2 (171.69.115.10)
Router# show mls nde
 Netflow Data Export is Disabled
 
Router#
 

Using the no mls nde command to disable NDE automatically deletes the IP flow export source interface and IP flow export destination IP address configured in the "Enabling NetFlow Data Export" section.

Displaying the NDE Configuration

To display the NDE configuration, perform this task:
Command Purpose
Router# show mls nde

Display the NDE configuration on the switch.

This example shows how to display the NDE configuration on the switch:

Router# show mls nde
 Netflow Data Export enabled
 Netflow Data Export configured for port 0 on Host 0.0.0.0
 Source address: 172.20.52.3, port: 8
 Version: 0
 Include Filter is:
   destination: ip address 0.0.0.0, mask 0.0.0.0, port 35
   source: ip address 0.0.0.0, mask 0.0.0.0, port 0
 Exclude Filter is:
   destination: ip address 2.2.2.2, mask 255.255.255.0, port 23
   source: ip address 0.0.0.0, mask 0.0.0.0, port 0
 Total Netflow Data Export Packets are:
    0 packets, 0 no packets, 0 records
Router# 
 


hometocprevnextglossaryfeedbacksearchhelp
Posted: Mon Jan 3 14:51:58 PST 2000
Copyright 1989-1999©Cisco Systems Inc.