The Adtran NetVanta Router supports NetFlow v9. For more information, please refer to the Adtran Web Site.
Only enable egress flows (i.e. no ingress) on Adtran routers.
More information can be found on page 27 of the Adtran Configuration Guide.
Read the NetFlow from a Checkpoint Firewall blog on Systrax.com to get NetFlow setup instructions for the Checkpoint Firewall.
Take a look at the blog from Systrax for information on how to enable NetFlow on your Cisco ASA gear.
Enable Cisco Express Forwarding:
router(config)# ip cef
In the configuration terminal on the router, issue the following to start NetFlow Export.
It is necessary to enable NetFlow on all interfaces through which traffic you are interested in will flow. Now, verify that the router is generating flow stats - try 'show ip cache flow'. Note that for routers with distributed switching (GSR's, 75XX's) the Rendezvous Point CLI will only show flows that made it up to the RP. To see flows on the individual linecards use the 'attach' or 'if-con' command and issue the 'show ip cache flow' on each LC.
Enable export of these flows with the global commands. 'ip flow-export source' can be set to any interface, but one which is the least likely to enter a 'down' state is preferable. Netflow will not be exported if the specified source is down. For this reason, we suggest the Loopback interface, or a stable Ethernet interface:
router(config)# ip flow-export version 5
router(config)# ip flow-export destination <ip-address> <port>
router(config)# ip flow-export source FastEthernet0
Use the IP address of your NetFlow Collector and configured listening port.
If your router uses BGP protocol, you can configure AS to be included in exports with command:
router(config)# ip flow-export version 5 [peer-as | origin-as]
The following commands break up flows into shorter segments.
router(config)# ip flow-cache timeout active 1
router(config)# ip flow-cache timeout inactive 15
Use the commands below to enable NetFlow on each physical interface (i.e. not VLANs and Tunnels, as they are auto included) you are interested in collecting a flow from. This will normally be an Ethernet or WAN interface. You may also need to set the speed of the interface in kilobits per second. It is especially important to set the speed for frame relay or ATM virtual circuits.
interface <interface>
ip route-cache flow
bandwidth
Now write your configuration with the 'write' or 'copy run start' commands. When in enabled mode, you can see current NetFlow configuration and state with the following commands:
router# show ip flow export
router# show ip cache flow
router# show ip cache verbose flow
Configure the switch the same as an IOS device, but instead of the command
ip route-cache flow
...use the command
ip route-cache flow infer-fields
This series requires a Supervisor Engine IV with a NetFlow Services daughter card to support NDE.
Router side:
Enter the following global commands.
Ip flow-export source <int-name>
Ip flow-export version 5
Ip flow-export destination <ip-address> <port>
Ip flow-cache timeout active 1
Enter the following command on each physical interface. You will need to log into each interface one at a time.
Ip route-cache flow
Switch side:
Set mls nde <ip-address> <port>
Set mls nde version 5
Set mls flow full
Set mls agingtime long 128
Set mls agingtime 64
Set mls bridged-flow-statistics enable
Set mls nde enable
Enter the following global commands (all commands are entered in the router <enable> config t option).
Ip flow-export source <int-name>
Ip flow-export version 5
Ip flow-export destination <ip-address> <port>
Ip flow-cache timeout active 1
Mls nde sender version 5
Mls flow ip interface-full
Mls nde interface
Mls aging long 64
Mls aging normal 64
Enter the following command on each physical interface. You will need to log into each interface one at a time.
Ip route-cache flow
Bandwidth needs to be set explicitly at the VLAN:
ip route-cache flow infer-fields
ip flow ingress infer-fields
Please refer to the NetFlow Configuration Examples on Catalyst 3750 with a 3KX module.
Please refer to the NetFlow Configuration Examples on Catalyst 4500 Series.
Read the blog on exporting NetFlow-Lite from the Cisco 4948E switch.
Review Cisco's Catalyst 6500/6000 Switches NetFlow Configuration and Troubleshooting guide or the Configuring NetFlow on the MSFC guide.
These and other related commands can be found in the Cisco 7600 Series Cisco IOS Software Configuration Guide.
Read the How to configure a Cisco Nexus 1000V to export NetFlow v9 blog on NetworkWorld.com to get NetFlow setup instructions for the Cisco Nexus Series 1000.
Read the How to configure a Cisco Nexus 7000 to export NetFlow v9 blog on BradReese.com to get NetFlow setup instructions for the Cisco Nexus Series 7000 with the NX-OS.
DFE and S series netflow commands
set netflow export-interval 1
set netflow export-destination <IP Address> 2055
Enable NetFlow on each type of interface on the switch. For example:
set netflow port fe.*.* enable
set netflow port ge.*.* enable
set netflow port tg.*.* enable
set netflow port lag.*.* enable
set netflow cache enable
set netflow export-version 9
set netflow template refresh-rate 50 timeout 1
NOTE: There is no performance impact to the switch because the flow creation and accounting is a native function of the ASIC. For more information, please refer to our "How to Enable NetFlow on an Enterasys SSR" guide.
Review the Enabling NetFlow on Virtual Switches technical note.
To enable the flow statistics feature on a switch, use the following command:
enable flowstats
The flow statistics feature is disabled by default.
To disable the flow statistics feature on a switch, use the following command:
disable flowstats
To enable the flow statistics function on the specified port, use the following command:
enable flowstats ports <portlist>
The flow statistics function is disabled by default.
To disable the flow statistics function on the specified port, use the following command:
disable flowstats ports <portlist>
A single port can distribute statistics across multiple groups of flow-collector devices. This NetFlow distribution capability makes it possible to create a collection architecture that scales to accommodate high volumes of exported data. It also offers a health-checking function that improves the reliability of the collection architecture by ensuring that only responsive flow-collector devices are included in active export distribution lists. The distribution algorithm also ensures that all the ingress flow records for a given flow are exported to the same collector.
NetFlow distribution is enabled by configuring export distribution groups that identify the addresses of multiple flow-collector devices. You can configure up to 32 export distribution groups on a BlackDiamond 6800 series switch, and each group can contain as many as eight flow-collector devices.
To configure the export groups and flow-collector devices to which NetFlow datagrams are exported, use the following command:
config flowstats export <group#> [add | delete] [<ipaddress> | <hostname>] port <udp_port>
The group# parameter is an integer in the range from 1 through 32 that identifies the specific group for which the destination is being configured.
You can use the add and delete keywords to add or delete flow-collector destinations.
To export NetFlow datagrams to a group, you must configure at least one flow-collector destination. By default, no flow-collector destinations are configured. To configure a flow-collector destination, use either an IP address and UDP port number pair or a hostname and UDP port number pair to identify the flow-collector device to which NetFlow export datagrams are to be transmitted. You can configure up to eight flow-collector destinations for each group. When multiple flow-collectors are configured as members of the same group, the exported NetFlow datagrams are distributed across the available destinations.
To configure the IP address that is to be used as the source IP address for NetFlow datagrams to be exported, use the following command:
config flowstats source <ipaddress>
By default, flow records are exported with the VLAN interface address that has a route to the configured flow-collector device. Depending on how it is configured, a flow-collector device can use the source IP address of received NetFlow datagrams to identify the switch that sent the information.
The following command example specifies that the IP address 192.168.100.1 is to be used as the source IP address for exported NetFlow datagrams.
config flowstats source 192.168.100.1
Flow records are exported on an age basis. If the age of the flow record is greater than the configured time-out, the record is exported.
To configure the time-out value for flow records on the specified port, use the following command:
config flowstats timeout <minutes> ports [<portlist> | any]
The time-out value is the number of minutes to use in deciding when to export flow records. The default time-out is 5 minutes.
The following command example specifies a 10-minute time-out for exported NetFlow datagrams on port 1 of the Ethernet module installed in slot 8 of the BlackDiamond switch.
config flowstats timeout 10 ports 8:1
To reset the flow statistics configuration parameters for a specified Ethernet port to their default values, use the following command:
unconfig flowstats ports <portlist>
To display status information for the flow statistics function, use the following command:
show flowstats {detail | group <group#> | ports <portlist>}
where:
| detail | Use this optional keyword to display detailed NetFlow configuration information. |
| group# | Use this optional parameter with the group keyword to display status information for a specific export group. |
| portlist | Use this optional parameter to specify one or more ports or slots and ports for which status information is to be displayed. |
If you enter the show flowstats command with none of the optional keywords or parameters, the command displays a summary of status information for all ports.
The summary status display for a port shows the values for all flow statistics configuration parameters for the port.
The summary status display for an export group includes the following information:
The detailed status display for an export group includes the summary information, plus the following management information:
For more information, please refer to Extreme Networks documentation and support at http://www.extremenetworks.com
Read the Fatpipe Warp NetFlow Support blog on Systrax.com to get NetFlow setup instructions.
Juniper supports flow exports by sampling packet headers with the routing engine and aggregating them into flows. Packet sampling is acheived by defining a firewall filter to accept and sample all traffic, applying that rule to an interface, and then configuring the sampling forwarding option.
interfaces {
ge-0/1/0 {
unit 0 {
family inet {
filter {
input all;
output all;
}
address <network>/<mask> (<- This is in binary notation)
}
}
}
}
firewall {
filter all {
term all {
then {
sample;
accept;
}
}
}
}
forwarding-options {
sampling {
input {
family inet {
rate 100;
}
}
output {
cflowd {
port <port>;
version <version_number>;
}
}
}
}
For more information on configuring Juniper routers, refer to: http://www.juniper.net.
Below are examples of how to enable Traffic-Flow on a router.
[admin@MikroTik] ip traffic-flow> set enabled=yes [admin@MikroTik] ip traffic-flow> print enabled: yes interfaces: all cache-entries: 1k active-flow-timeout: 30m inactive-flow-timeout: 15s [admin@MikroTik] ip traffic-flow>
[admin@MikroTik] ip traffic-flow target>
add address=192.168.0.2:2055 \ \... version=9 [admin@MikroTik] ip traffic-flow target> print Flags: X - disabled # ADDRESS VERSION 0 192.168.0.2:2055 9 [admin@MikroTik] ip traffic-flow target>
Review the Exporting NetFlow data with softflowd documentation from pfSense.
(config)# ip flow-export destination <ip-addr> interface <int #>
(config)# ip flow-export enable
This blog on how to configure softflowd explains the process.
Watch the video, it explains the NetFlow piece starting at ~10.20.
Learn how to enable NetFlow on vSphereConfiguration
system {
accounting {
interface <ifname> { # multi-value
sampling-rate <u32> # sample 1 in N packets, default
}
syslog-facility facility
netflow {
version <1|5|9> # default 5
engine-id <u32> # 0-255
server <ipv4> { # multi-value
port <u32> #
}
timeout {
expiry-interval <u32> # default 60
flow-generic <u32> # default 3600
icmp <u32> # default 300
max-active-life <u32> # default 604800
tcp-fin <u32> # default 300
tcp-generic <u32> # default 3600
tcp-rst <u32> # default 120
udp <u32> # default 300
}
}
sflow {
agentid <u32>
server <ipv4> { # multi-value
port <u32> # default 6343
}
}
}
Enter your Scrutinizer server information:
sflow receiver 1 name
Receiver Name can be set to any one-word string you want (e.g. Scrutinizer). Port should be set to 2055 by default. Packet-size should be set to 1400, version should be 5, and timeout should be 0.
Next, configure a sampler on all desired interfaces:
sflow sampler 1
So, if you wanted to configure ports 18 and 35 to sample for a switch with a single blade and 48 ports, you would enter:
sflow sampler 1 1/18 receiver 1 rate 1 sample-hdr-size 128
sflow sampler 1 1/35 receiver 1 rate 1 sample-hdr-size 128
Finally, configure one poller to get sFlow counters:
sflow poller 1
Write configuration to switch:
write memory
Review the following sFlow setup guides depending on which series router you have:
For information on enabling sFlow on supported D-Link switches, please review the sFlow section of the DGS-36XX User Manual V2.00, as well as our D-Link sFlow Configuration Guide.
sFlow is only supported on Enterasys B3/C3/G3 series switches running firmware 6.3.1 or above. For information on enabling sFlow on these supported Enterasys® switches, please review the sFlow section of the Enterasys® SecureStack™ Configuration Guide, beginning on page 28-4.
Example Configuration for B5/C5 SecureStack™ hardware
The general procedure for configuring sFlow includes:
1. Configure your sFlow Collector information to be used by the sFlow Agent on the switch. Up to eight Collectors can be configured. The information is stored in the sFlowReceiverTable.
2. Enable and configure sFlow packet flow sampling instances on each port.
3. Enable and configure sFlow counter sampling poller instances on each port.
The following is an example of the commands used to configure sFlow:
# configure sFlow Collector 1
# accept defaults for datagram size and port
set sflow receiver 1 owner enterasys timeout 180000
set sflow receiver 1 ip 192.168.16.91
#
#configure packet sampling instances on ports 1 through 12
#assign to sFlow Collector 1
set sflow port ge.1.1-12 sampler 1
set sflow port ge.1.1-12 sampler maxheadersize 256
set sflow port ge.1.1-12 sampler rate 2048
#
#configure counter poller instances on ports 1 through 12
#assign to sFlow Collector 1
set sflow port ge.1.1-12 poller 1
set sflow port ge.1.1-12 poller interval 20
View the PDF Guide, which references the commands to configure sFlow on Extreme Switches.
For more Extreme commands, view the ExtremeWare Command Reference Guide.
The following commands configure a Force10 switch/router with IP address 1.1.2.2 to sample at 1-in-512 and send the sFlow packets to Scrutinizer with IP address 1.1.1.1 over UDP port 6343:
Force10(conf)#sflow collector 1.1.1.1 agent-addr 1.1.2.2
Force10(conf)#sflow sample-rate 512
Force10(conf)#sflow enable
sFlow must then be enabled on every interface that should be sampled:
Force10(conf-if-gi-0/0)#sflow enable
To list the configuration settings use the command:
Force10#show sflow
sFlow services are enabled
Global default sampling rate: 512
Global default counter polling interval: 20
Global extended information enabled: none
1 collectors configured
Collector IP addr: 1.1.1.1, Agent IP addr: 1.1.2.2, UDP port: 6343
20088 UDP packets exported
0 UDP packets dropped
3940 sFlow samples collected
0 sFlow samples dropped due to sub-sampling
Linecard 0 Port set 0 H/W sampling rate 512
Gi 0/0: configured rate 512, actual rate 512, sub-sampling rate 1
Read the Would you like to have some traffic visibility on your Fortinet Firewall? blog on Systrax.com to get NetFlow setup instructions for the Fortinet Firewall.
There are only 3 commands to enable sFlow on Foundry gear.
For more Foundry commands, view the Foundry Command Reference Guide.
View the 02-IP Services Volume(V1.05) Command Manual, which details the commands to configure sFlow on H3C MSR Series Routers.
View the 13-Network Management and Monitoring Command Reference, which shows how to setup sFlow on H3C S12500 Series Routers.
View the PDF Guide, which references the commands to configure sFlow on H3C supported equipment.
IMPORTANT:
2800 Series must be running Software Revision I.08.105 and Firmware (ROM) version I.08.07
5300 Series must be running Software Revision E.10.37 or higher
For information on enabling sFlow on 2800 or 5300 series HP Procurve Switches, download this ZIP file and review the PDF inside for further instructions.
HP has added support for configuring sFlow directly on the CLI.
From config mode:
sflow <1-3> destination sflow 1 destination 192.168.1.1 6343sflow <1-3> sampling N sflow 1 sampling all 100sflow <1-3> polling N sflow 1 polling all 60write memFor information on enabling sFlow on supported HP Procurves, view the ProCurve Networking FAQ.
For instructions on how to enable sFlow on supported Juniper routers and switches, please review Configuring sFlow Technology for Network Monitoring (CLI Procedure).
The following configuration enables sFlow monitoring of all interfaces on a Juniper EX3200 switch, sampling packets at 1-in-500, polling counters every 30 seconds and sending the sFlow to an analyzer (10.0.0.50) on UDP port 6343 (the default sFlow port).
protocols {
sflow {
polling-interval 30;
sample-rate 500;
collector 10.0.0.50 {
udp-port 6343;
}
interfaces ge-0/0/0.0;
interfaces ge-0/0/1.0;
interfaces ge-0/0/2.0;
interfaces ge-0/0/3.0;
interfaces ge-0/0/4.0;
interfaces ge-0/0/5.0;
interfaces ge-0/0/6.0;
interfaces ge-0/0/7.0;
interfaces ge-0/0/8.0;
interfaces ge-0/0/9.0;
interfaces ge-0/0/10.0;
interfaces ge-0/0/11.0;
interfaces ge-0/0/12.0;
interfaces ge-0/0/13.0;
interfaces ge-0/0/14.0;
interfaces ge-0/0/15.0;
interfaces ge-0/0/16.0;
interfaces ge-0/0/17.0;
interfaces ge-0/0/18.0;
interfaces ge-0/0/19.0;
interfaces ge-0/0/20.0;
interfaces ge-0/0/21.0;
interfaces ge-0/0/22.0;
interfaces ge-0/0/23.0;
}
}
Visit blog.sFlow.com for more information on configuring sFlow on Juniper switches.
NetFlow (AKA NetStream) is supported on the 5000 & 6000 routers via software upgrade and on the 8800 Switch via an NMM module.
To configure NetStream on a 3Com 5012 router, use the following sample configuration:
ip netstream export source interface <Interface>
ip netstream export host <IP address> <port number>
Then activate NetStream on each specific interface you want to obtain statistics from. For example, on the Serial0/0 interface, use the following command.
interface s0/0
ip netstream inbound
This will export inbound NetStream traffic statistics related to the Serial0/0 interface of the 3com router to the workstation running Scrutinizer.
You can configure IPFIX on your Citrix NetScaler device using this setup guide.
IPFIX support is available on the BlackDiamond 8900 G96Tc, G48T-xl, G48X-xl, and 10G8X-xl modules and Summit X460 and X480 switches.
To configure whether to meter on ingress and/or egress ports, use the following command: configure ip-fix ports <port_list> [ingress | egress | ingress-and-egress] (The default is ingress.)
To configure whether to meter all, dropped only, or non-dropped only records, use the following command: configure ip-fix ports <port_list> record [all | dropped-only | non-dropped] (The default is all)
Chapter 5 of the EXOS Concepts Guide discusses the options available for configuring IPFIX.
Chapter 6 of the Command Reference Guide has a listing (and description) of all of the available commands for enabling and configuring IPFIX.
You can also reference the Extreme Enabling IPFIX Configuration Guide
To configure inline flow monitoring, include the inline-jflow statement at the [edit forwarding-options sampling instance instance-name family inet output] hierarchy level.
Inline sampling exclusively supports a new format called version-ipfix that uses UDP as the transport protocol. When you configure inline sampling, you must include the version-ipfix statement at the [edit forwarding-options sampling instance instance-name family inet output flow-server address] hierarchy level and also at the [edit services flow-monitoring] hierarchy level.
The following operational commands include new inline fpc keywords to display inline configuration information: show services accounting errors, show services accounting flow, and show services accounting status.
To learn more click here for a listing (and description) of all features that have been added to JUNOS Release 10.2.
This Configuration Guide shows how to enable IPFIX using Java Device Manager (JDM) or with the Command Line Interface. (See Chapter 4).
NOTE: The 5500 series only supports IP packet sampling resulting in lower than actual utilization trends.
Utilization can be understated on Nortel IPFIX capable equipment. To fix this issue, review the hash overflow document.
This blog on how to configure nProbe NetFlow / IPFIX explains the process.
The how to configure SonicWALL IPFIX with Extensions video explains the entire process with screen captures of the results in Scrutinizer.
The current supported models are TZ210, NSA240, 2400, 3500, 4500, 5000, NSA E-5500, 6500, 7500, 8500 running 5.8.0.1 or later.
Read the SonicWALL documentation on NetFlow and IPFIX support.
Click here to learn how to verify that NetFlow is coming into Scrutinizer!
MIB Links
Download the CISCO-NETFLOW-MIB Version 2
Download the CISCO-NETFLOW-MIB Version 1
For more information and a list of dependencies for the CISCO-NETFLOW-MIB, use the Cisco SNMP Object Navigator.
Learn more about configuring NetFlow on your router or switch at the Cisco website.