Supported Platforms
Related Documentation
- EX Series
- show ethernet-switching statistics aging
- show ethernet-switching mac-learning-log
- show ethernet-switching table
- show ethernet-switching interfaces
- Example: Setting Up Basic Bridging and a VLAN for an EX Series Switch
- Example: Setting Up Bridging with Multiple VLANs for EX Series Switches
- QFabric System, QFX Series standalone switches
- show ethernet-switching statistics aging
- show ethernet-switching mac-learning-log
- show ethernet-switching table
- show ethernet-switching interfaces
- Example: Setting Up Basic Bridging and a VLAN on the QFX Series
- Example: Setting Up Bridging with Multiple VLANs
show ethernet-switching statistics mac-learning
Syntax
Release Information
Command introduced in Junos OS Release 9.4 for EX Series switches.
Command introduced in Junos OS Release 11.1 for the QFX Series.
Description
Display media access control (MAC) learning statistics.
Options
none | — | (Optional) Display MAC learning statistics for all interfaces. |
brief | detail | — | (Optional) Display the specified level of output. The default is brief. |
interface interface-name | — | (Optional) Display MAC learning statistics for the specified interface. |
Required Privilege Level
view
Related Documentation
- EX Series
- show ethernet-switching statistics aging
- show ethernet-switching mac-learning-log
- show ethernet-switching table
- show ethernet-switching interfaces
- Example: Setting Up Basic Bridging and a VLAN for an EX Series Switch
- Example: Setting Up Bridging with Multiple VLANs for EX Series Switches
- QFabric System, QFX Series standalone switches
- show ethernet-switching statistics aging
- show ethernet-switching mac-learning-log
- show ethernet-switching table
- show ethernet-switching interfaces
- Example: Setting Up Basic Bridging and a VLAN on the QFX Series
- Example: Setting Up Bridging with Multiple VLANs
List of Sample Output
show ethernet-switching statistics mac-learningshow ethernet-switching statistics mac-learning detail
show ethernet-switching statistics mac-learning interface ge-0/0/28 detail
show ethernet-switching statistics mac-learning interface
show ethernet-switching statistics mac-learning detail (QFX Series)
Output Fields
Table 1 lists the output fields for the show ethernet-switching statistics mac-learning command. Output fields are listed in the approximate order in which they appear.
Table 1: show ethernet-switching statistics mac-learning Output Fields
Field Name | Field Description | Level of Output |
---|---|---|
Interface | Name of the interface for which statistics are being reported. (Displayed in the output under the heading Interface.) | All levels |
Learning message from local packets | MAC learning message generated due to packets coming in on the management interface. (Displayed in the output under the heading Local pkts.) | All levels |
Learning message from transit packets | MAC learning message generated due to packets coming in on network interfaces. (Displayed in the output under the heading Transit pkts.) | All levels |
Learning message with error | MAC learning messages received with errors (Displayed under the heading Error):
| All levels |
Sample Output
show ethernet-switching statistics mac-learning
user@switch> show ethernet-switching statistics
mac-learning
Learning stats: 0 learn msg rcvd, 0 error Interface Local pkts Transit pkts Error ge-0/0/0.0 0 0 0 ge-0/0/1.0 0 0 0 ge-0/0/2.0 0 0 0 ge-0/0/3.0 0 0 0
show ethernet-switching statistics mac-learning detail
user@switch> show ethernet-switching statistics
mac-learning detail
Learning stats: 0 learn msg rcvd, 0 error Interface: ge-0/0/0.0 Learning message from local packets: 0 Learning message from transit packets: 1 Learning message with error: 0 Invalid VLAN: 0 Invalid MAC: 0 Security violation: 0 Interface down: 0 Incorrect membership: 0 Interface limit: 0 MAC move limit: 0 VLAN limit: 0 Invalid VLAN index: 0 Interface not learning: 0 No nexthop: 0 MAC learning disabled: 0 Others: 0 Interface: ge-0/0/1.0 Learning message from local packets: 0 Learning message from transit packets: 2 Learning message with error: 0 Invalid VLAN: 0 Invalid MAC: 0 Security violation: 0 Interface down: 0 Incorrect membership: 0 Interface limit: 0 MAC move limit: 0 VLAN limit: 0 Invalid VLAN index: 0 Interface not learning: 0 No nexthop: 0 MAC learning disabled: 0 Others: 0
show ethernet-switching statistics mac-learning interface ge-0/0/28 detail
user@switch> show ethernet-switching statistics
mac-learning interface ge-0/0/28 detail
Interface: ge-0/0/28.0 Learning message from local packets: 0 Learning message from transit packets: 5 Learning message with error: 0 Invalid VLAN: 0 Invalid MAC: 0 Security violation: 0 Interface down: 0 Incorrect membership: 0 Interface limit: 0 MAC move limit: 0 VLAN limit: 0 VLAN membership limit: 20 Invalid VLAN index: 0 Interface not learning: 0 No nexthop: 0 MAC learning disabled: 0 Others: 0
show ethernet-switching statistics mac-learning interface
user@switch> show ethernet-switching statistics
mac-learning interface ge-0/0/1
Interface Local pkts Transit pkts Error ge-0/0/1.0 0 1 1
show ethernet-switching statistics mac-learning detail (QFX Series)
user@switch> show ethernet-switching statistics
mac-learning detail
Learning stats: 0 learn msg rcvd, 0 error Interface: xe–0/0/0.0 Learning message from local packets: 0 Learning message from transit packets: 1 Learning message with error: 0 Invalid VLAN: 0 Invalid MAC: 0 Security violation: 0 Interface down: 0 Incorrect membership: 0 Interface limit: 0 MAC move limit: 0 VLAN limit: 0 Invalid VLAN index: 0 Interface not learning: 0 No nexthop: 0 MAC learning disabled: 0 Others: 0 Interface: xe–0/0/1.0 Learning message from local packets: 0 Learning message from transit packets: 2 Learning message with error: 0 Invalid VLAN: 0 Invalid MAC: 0 Security violation: 0 Interface down: 0 Incorrect membership: 0 Interface limit: 0 MAC move limit: 0 VLAN limit: 0 Invalid VLAN index: 0 Interface not learning: 0 No nexthop: 0 MAC learning disabled: 0 Others: 0
Published: 2014-07-23
Supported Platforms
Related Documentation
- EX Series
- show ethernet-switching statistics aging
- show ethernet-switching mac-learning-log
- show ethernet-switching table
- show ethernet-switching interfaces
- Example: Setting Up Basic Bridging and a VLAN for an EX Series Switch
- Example: Setting Up Bridging with Multiple VLANs for EX Series Switches
- QFabric System, QFX Series standalone switches
- show ethernet-switching statistics aging
- show ethernet-switching mac-learning-log
- show ethernet-switching table
- show ethernet-switching interfaces
- Example: Setting Up Basic Bridging and a VLAN on the QFX Series
- Example: Setting Up Bridging with Multiple VLANs