Configuring Layer 2 NetFlow
SUMMARY STEPS
1. configure terminal
2. flow record name
3. match datalink {dot1q |ethertype | mac | vlan}
4. end
5. show flow record [name ]
6. copy running-config startup-config
DETAILED STEPS
Command or Action
Step 1
configure terminal
Example:
Switch# configure terminal
Step 2
flow record name
Example:
Switch(config)# flow record L2_record
Switch(config-flow-record)#
Step 3
match datalink {dot1q |ethertype | mac | vlan}
Example:
Switch(config-flow-record)# match datalink ethertype
Step 4
end
Example:
Switch(config-flow-record)#
Step 5
show flow record [name ]
Example:
Switch# show flow record
Step 6
copy running-config startup-config
Example:
Switch# copy running-config
startup-config
Cisco Flexible NetFlow Configuration Guide, Cisco IOS XE Release 3SE (Catalyst 3850 Switches)
40
end
Configuring Flexible NetFlow
Purpose
Enters the global configuration mode.
Enters flow record configuration mode.
Specifies the Layer 2 attribute as a key.
Returns to privileged EXEC mode.
(Optional) Displays information about NetFlow
on an interface.
(Optional) Saves your entries in the configuration
file.
OL-28354-01