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
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. |
Command Default
None
Command Modes
NetFlow record configuration (config-flow-record)
Command History
Release |
Modification |
---|---|
7.0(0)N1(1) |
This command was introduced. |
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)#