How to check whether mirroring is configured successfully on S series switches

12

For S series switches, you can use either of the following methods to check whether mirroring is configured successfully:
- Run the display interface brief command to check whether the observing port usage is increased.
- Check whether the monitoring and packet capture software (such as Wireshark) on the monitoring device directly connected to observing ports have successfully capture packets.

Other related questions:
How to define the S-series switch has mirrored successfully
For S series switches, there are usually two ways to determine whether a mirror is successful: - Run command display interface brief to check whether the port usage is significantly increased. - View the monitoring device which connect to observing-port , whether the capture-packet software capture package successfully(commonly used wireshark).

Checking the mirroring configuration on an S series switch
For an S series switch (except the S1700), you can run the following commands to check the mirroring configuration: - Run the display current-configuration command to check the mirroring configuration in the configuration file of the switch. - Run the display observe-port command to check the observing port configuration. - Run the display port-mirroring command to check the configuration of port mirroring, traffic mirroring, VLAN mirroring, and MAC address mirroring. - Check the MQC-based traffic mirroring configuration and its application. 1. Run the display traffic behavior user-defined [ behavior-name ] command to check the traffic behavior configuration. 2. Run the display traffic classifier user-defined [ classifier-name ] command to check the traffic classifier configuration. 3. Run the display traffic policy user-defined command to check the traffic policy configuration. 4. Run the display traffic policy user-defined policy-name [ classifier classifier-name ] command to check the traffic policy configuration. 5. Run the display traffic-policy applied-record [ policy-name ] command to check the application record of a specified traffic policy. - Check the ACL-based traffic mirroring application. Run the following commands to check statistics on the packets matching rules. Before running these commands, run the traffic-statistic command in the system view or the traffic-statistic command in the interface view to configure the ACL-based traffic statistics collection function. 1. display traffic-statistics interface inbound 2. display traffic-statistics [ vlan vlan-id | interface interface-type interface-number ] inbound 3. display traffic-statistics [ vlan vlan-id | interface interface-type interface-number ] inbound acl { bas-acl | adv-acl | user-acl | acl-name | l2-acl } [ rule rule-id ] 4. display traffic-statistics [ vlan vlan-id | interface interface-type interface-number ] inbound acl ipv6 { bas-acl | adv-acl | acl-name } [ rule rule-id ] 5. display traffic-statistics [ vlan vlan-id | interface interface-type interface-number ] inbound acl { acl-name | l2-acl } [ rule rule-id ] acl { bas-acl | adv-acl | acl-name } [ rule rule-id ]

What should I do if the configuration of an S series switch is lost after restart
If the configuration of an S series switch (except the S1700) is lost after restart, the possible reasons are as follows: the configuration fails to be saved or the specified startup file is incorrect. Handle the problem as follows:
1. If the configuration fails to be saved, run the following command to save the configuration:
<HUAWEI> save
The current configuration will be written to the device. Are you sure to continue?[Y/N]Y
Info: Please input the file name(*.cfg,*.zip)[vrpcfg.zip]:Y
When the configuration of a new switch is saved for the first time, the system asks you to enter the name of the configuration file to which the configuration is to be saved, which is vrpcfg.zip by default or a created file with name extension .zip or .cfg. If the configuration does not need to be saved to other files separately, press Enter. (Press Enter or enter the new configuration file name. Otherwise, the configuration cannot be written to the configuration file and the switch still restarts with no configuration.)
If the message Info: Save the configuration successfully. is displayed, the configuration is saved successfully. You are advised to run the display saved-configuration command to verify that the configuration is successfully written to the configuration file.
2. If the configuration file for the next startup is not specified or the name of the specified file is different from that of the saved configuration file, perform the following operations:
a. Check the configuration file.
<HUAWEI> dir /all
b. Check whether the name of the configuration file for the next startup (represented by the Next startup saved-configuration file field) is the same as that of the saved configuration file. If the field is empty or specifies another file name, run a command to specify the saved configuration file for the next startup.
<HUAWEI> display startup
c. Specify the configuration for the next startup. startup saved-configuration vrpcfg.zip
3. If DHCP-related configurations are lost after DHCP is configured and saved on a new switch that is started for the first time, the possible cause is as follows:
If a switch starts without any configuration, the switch automatically starts the auto-config process. This process triggers the DHCP function for the switch to automatically obtain an IP address and the configuration file from a DHCP on the network. When DHCP is manually configured, the auto-config process is automatically disabled, so the DHCP function is also automatically disabled. Therefore, DHCP-related commands are lost after the DHCP configuration is saved.

How can I check whether a loop exists on an S series switch
The simplest way to check the existence of a loop on an S series switch (except the S1700) is to check whether a MAC address flapping alarm exists on the switch. If the alarm exists, you can quickly locate the loop based on the information in the alarm. Run the display mac-address flapping record command to check whether MAC address flapping exists, or run the display trapbuffer command to check whether the alarm contains The mac-address has flap value or MAC move detected. For more information, visit Layer 2 Loop Troubleshooting.

Checking configurations of an S series switch
You can run the following commands to check configuratio of an S series switch (except the S1700): 1. Run the display current-configuration command to check the current valid configurations. This command does not display parameters that use default settings. 2. Run the display saved-configuration command to check the configuration file to be used for the next startup. 3. Run the display startup command to check the system software, backup system software, configuration file, license file, patch file, and voice file for the current and next startup.

If you have more questions, you can seek help from following ways:
To iKnow To Live Chat
Scroll to top