The documentation set for this product strives to use bias-free language. For the purposes of this documentation set, bias-free is defined as language that does not imply discrimination based on age, disability, gender, racial identity, ethnic identity, sexual orientation, socioeconomic status, and intersectionality. Exceptions may be present in the documentation due to language that is hardcoded in the user interfaces of the product software, language used based on RFP documentation, or language that is used by a referenced third-party product. Learn more about how Cisco is using Inclusive Language.
This chapter describes the system management commands that begin with M.
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 }
NetFlow record configuration (config-flow-record)
|
|
This example shows how to configure the match data link attributes option in a flow record:
This example shows how to remove the data link match option from a flow record:
|
|
---|---|
Configures the match IP option for defining a NetFlow record map. |
|
Configures the match IPv4 option for defining a NetFlow record map. |
To configure the match IP option for defining a NetFlow record map, use the match ip command. To remove this option, use the no form of this command.
no match ip { protocol | tos }
NetFlow record configuration (config-flow-record)
|
|
This example shows how to configure the match IP option for defining a NetFlow record map:
This example shows how to remove the match option:
|
|
---|---|
To configure the match IPv4 option for defining a NetFlow record map, use the match ipv4 command. To remove this option, use the no form of this command.
match ipv4 { source | destination } address
no match ipv4 { source | destination } address
NetFlow record configuration (config-flow-record)
|
|
This example shows how to configure the match IPv4 option for defining a NetFlow record map:
This example shows how to remove the match IPv4 configuration:
|
|
---|---|
To configure the match transport option for defining a NetFlow record map, use the match transport command. To remove the match transport option, use the no form of this command.
match transport { destination-port | source-port }
no match transport { destination-port | source-port }
NetFlow record configuration (config-flow-record)
|
|
This example shows how to configure the match transport option for defining a NetFlow record map:
switch(config-flow-record)#
match transport source-port
This example shows how to remove the configuration:
|
|
---|---|
To specify the mode in a NetFlow sampler, use the mode command. To remove the mode, use the no form of this command.
no mode [ samples out-of packets ]
Number of packets in each sampling. The range is from 1 to 65536, and must be a power of 2. |
NetFlow sampler configuration (config-flow-sampler)
|
|
This example shows how to specify the mode in a NetFlow sampler:
switch(config)#
sampler Custom-NetFlow-Sampler-1
This example shows how to remove the mode configuration:
|
|
---|---|
To configure the Encapsulated Remote Switched Port Analyzer (ERSPAN) origin IP address, use the monitor espan origin ip-address command. To remove the ERSPAN origin IP address configuration, use the no form of this command.
monitor erspan origin ip-address ip-address [ global ]
no monitor erspan origin ip-address ip-address [ global ]
(Optional) Specifies the default virtual device context (VDC) configuration across all VDCs. |
|
|
When you change the origin IP address in the default VDC, it impacts all the sessions.
This example shows how to configure the ERSPAN origin IP address:
This example shows how to remove the ERSPAN IP address:
|
|
---|---|
To create a new Ethernet Switched Port Analyzer (SPAN) or an Encapsulated Remote Switched Port Analyzer (ERSPAN) session configuration for analyzing traffic between ports or add to an existing session configuration, use the monitor session command. To clear SPAN or ERSPAN sessions, use the no form of this command.
monitor session { session-number [ shut | type { local | erspan-destination | erspan-source | span-on-drop | span-on-drop-erspan | span-on-latency | span-on-latency-erspan } | all shut }
no monitor session { session-number | all } [ shut ]
To ensure that you are working with a completely new session, you can clear the desired session number or all SPAN sessions.
Note The limit on the number of egress (TX) sources in a monitor session has been lifted. Port-channel interfaces can be configured as egress sources.
After you create an ERSPAN session, you can describe the session and add interfaces and VLANs as sources and destinations.
This example shows how to create a SPAN session:
This example shows how to enter the monitor configuration mode for configuring SPAN session number 9 for analyzing traffic between ports:
This example shows how to configure any SPAN destination interfaces as Layer 2 SPAN monitor ports before activating the SPAN session:
This example shows how to configure a typical SPAN destination trunk interface:
This example shows how to create an ERSPAN source session:
This example shows how to create an ERSPAN destination session:
This example shows how to create a SPAN-on-Latency session:
This example shows how to create an ERSPAN SPAN-on-Latency session:
|
|
---|---|
Sets the maximum transmission value (MTU) for ERSPAN packets. |
|
To configure the maximum transmission unit (MTU) truncation size for packets in the specified Ethernet Switched Port Analyzer (SPAN) session, use the mtu command. To remove the MTU truncation size configuration, use the no form of this command.
SPAN session configuration mode (config-monitor)
ERSPAN source session configuration mode (config-erspan-src)
SPAN-on-Latency session configuration mode (config-span-on-latency)
SPAN-on-Latency ERSPAN session configuration mode (config-span-on-latency-erspan)
This example shows how to configure the MTU truncation size for packets in the specified SPAN session:
This example shows how to remove the MTU truncation size configuration for packets in the specified SPAN session:
|
|
---|---|
Places you in the monitor configuration mode for configuring a SPAN session. |
|