Cisco Nexus 7000 Series Configuration Manual page 414

Hide thumbs Also See for Nexus 7000 Series:
Table of Contents

Advertisement

Configuring Layer 2 NetFlow
• Switch ports in access mode
• Switch ports in trunk mode
• Layer 2 port channels
Note
You cannot apply Layer 2 NetFlow to VLANs, egress interfaces, or Layer 3 interfaces such as VLAN
interfaces.
Before You Begin
Make sure that you are in the correct VDC. To change the VDC, use the switchto vdc command.
Procedure
Step 1
Step 2
Step 3
Step 4
Step 5
Step 6
Cisco Nexus 7000 Series NX-OS System Management Configuration Guide
386
Command or Action
configure t
Example:
switch# configure terminal
Enter configuration commands, one per
line.
End with CNTL/Z.
flow record name
Example:
switch(config)# flow record L2_record
match datalink {mac source-address | mac
destination-address | ethertype | vlan}
Example:
switch(config-flow-record)# match
datalink ethertype
interface {ethernet slotport} | {port-channel
number}
Example:
switch(config-flow-record)# interface
Ethernet 6/3
switchport
Example:
switch(config-if)# switchport
mac packet-classify
Example:
switch(config-if)# mac packet-classify
Purpose
Enters global configuration mode.
Enters flow record configuration mode. For more
information about configuring flow records, see
the
"Creating a Flow
Record" section.
Specifies the Layer 2 attribute as a key.
Enters interface configuration mode. The interface
type can be a physical Ethernet port or a port
channel.
Changes the interface to a Layer 2 physical
interface. For information about configuring switch
ports, see the Cisco Nexus 7000 Series NX-OS
Layer 2 Switching Configuration Guide.
Forces MAC classification of packets.
For more information about using the mac
packet-classify command, see the Cisco Nexus
7000 Series NX-OS Security Configuration Guide.
You must use this command to capture
Note
flows.
Configuring NetFlow

Advertisement

Table of Contents
loading

Table of Contents