M Commands
match datalink
262
Cisco Nexus 7000 Series NX-OS System Management Command Reference
OL-25806-03
match datalink
To configure the match data link (or Layer 2) attributes option in a flow record, use the match datalink
command. To remove the data link configuration, use the no form of this command.
match datalink {mac source-address | mac destination-address | ethertype | vlan}
no match datalink {mac source-address | mac destination-address | ethertype | vlan}
Syntax Description
Defaults None
Command Modes NetFlow record configuration (config-flow-record)
Supported User Roles network-admin
vdc-admin
Command History
Usage Guidelines This command does not require a license.
Examples This example shows how to configure the match data link attributes option in a flow record:
switch(config)# flow record NetFlow1
switch(config-flow-record)# match datalink mac source-address
switch(config-flow-record)#
This example shows how to remove the data link match option from a flow record:
switch(config-flow-record)# no match datalink mac source-address
switch(config-flow-record)#
mac Specifies the MAC address.
source-address Specifies the source MAC address.
destination-address Specifies the destination MAC address.
ethertype Specifies the EtherType.
vlan Specifies the VLAN ID.
Release Modification
4.1 This command was introduced.