How to configure loop protection on mach104 hirschmann?

Oct 09, 2025Leave a message

Hey there! As a supplier of Mach104 Hirschmann switches, I often get asked about how to configure loop protection on these devices. Loop protection is crucial in network settings as it helps prevent network loops, which can cause broadcast storms and bring your network to its knees. In this blog post, I'll walk you through the steps to configure loop protection on Mach104 Hirschmann switches.

Understanding Loop Protection

Before we dive into the configuration process, let's quickly go over what loop protection is and why it's important. A network loop occurs when there are multiple paths between network devices, creating a circular flow of data. This can lead to a broadcast storm, where network traffic multiplies exponentially, causing congestion and potentially crashing the network.

Loop protection mechanisms, such as Spanning Tree Protocol (STP), Rapid Spanning Tree Protocol (RSTP), and Multiple Spanning Tree Protocol (MSTP), are designed to detect and prevent network loops by blocking redundant paths. These protocols ensure that there is only one active path between any two network devices, while keeping the redundant paths in a standby state.

Prerequisites

Before you start configuring loop protection on your Mach104 Hirschmann switch, make sure you have the following:

  • A Mach104 Hirschmann switch with the latest firmware installed.
  • A console cable or a network connection to access the switch's command-line interface (CLI).
  • Basic knowledge of network concepts and the CLI commands used to configure network devices.

Configuring Loop Protection on Mach104 Hirschmann

Here are the steps to configure loop protection on your Mach104 Hirschmann switch:

Step 1: Access the Switch's CLI

To access the switch's CLI, you can use a console cable to connect your computer to the switch's console port, or you can use a network connection to access the switch via Telnet or SSH. Once you're connected, open a terminal emulator program, such as PuTTY, and enter the switch's IP address or hostname.

Step 2: Log in to the Switch

When prompted, enter the username and password to log in to the switch. If you're using the default credentials, the username is usually "admin" and the password is "admin".

Step 3: Enter Global Configuration Mode

Once you're logged in, enter global configuration mode by typing the following command:

enable
configure terminal

Step 4: Enable Loop Protection Protocol

Next, you need to enable the loop protection protocol of your choice. In this example, we'll use Rapid Spanning Tree Protocol (RSTP). To enable RSTP, type the following command:

Hirschmann SPIDER-SL-40-06T1O6O699SY9HHHHHirschmann MIPP/AD/1L3P

spanning-tree mode rapid-pvst

Step 5: Configure Loop Protection Parameters

After enabling the loop protection protocol, you can configure the loop protection parameters, such as the bridge priority, port priority, and path cost. These parameters determine which ports will be blocked and which ports will be used as the active paths.

To configure the bridge priority, type the following command:

spanning-tree vlan <vlan-id> priority <priority-value>

Replace <vlan-id> with the VLAN ID for which you want to configure the bridge priority, and <priority-value> with the desired priority value. The priority value can range from 0 to 61440, with a lower value indicating a higher priority.

To configure the port priority, type the following command:

interface <interface-name>
spanning-tree port-priority <priority-value>

Replace <interface-name> with the name of the interface for which you want to configure the port priority, and <priority-value> with the desired priority value. The priority value can range from 0 to 240, with a lower value indicating a higher priority.

To configure the path cost, type the following command:

interface <interface-name>
spanning-tree pathcost <cost-value>

Replace <interface-name> with the name of the interface for which you want to configure the path cost, and <cost-value> with the desired cost value. The cost value can range from 1 to 200000000, with a lower value indicating a higher priority.

Step 6: Save the Configuration

Once you've configured the loop protection parameters, save the configuration by typing the following command:

end
write memory

Verifying Loop Protection Configuration

After configuring loop protection on your Mach104 Hirschmann switch, you can verify the configuration by typing the following command:

show spanning-tree

This command will display the current state of the spanning tree protocol, including the root bridge, the designated ports, and the blocked ports.

Troubleshooting Loop Protection Issues

If you encounter any issues with loop protection on your Mach104 Hirschmann switch, here are some troubleshooting tips:

  • Check the switch's logs for any error messages related to loop protection.
  • Verify that the loop protection protocol is enabled and configured correctly.
  • Check the physical connections between the switch and other network devices to ensure that there are no loose or damaged cables.
  • Use a network analyzer to monitor the network traffic and identify any potential loop issues.

Conclusion

Configuring loop protection on your Mach104 Hirschmann switch is an important step in ensuring the stability and reliability of your network. By following the steps outlined in this blog post, you can easily configure loop protection using the Rapid Spanning Tree Protocol (RSTP) and verify the configuration to ensure that it's working correctly.

If you're interested in purchasing Mach104 Hirschmann switches or need further assistance with loop protection configuration, feel free to reach out to us for a procurement discussion. We offer a wide range of Hirschmann products, including the Hirschmann SPIDER-SL-40-06T1O6O699SY9HHHH, Hirschmann MIPP/AD/1L3P, and Hirschmann SPIDER-SL-20-04T1M49999TY9HHHH.

References

  • Hirschmann Mach104 Switch User Manual
  • Cisco Networking Academy: Spanning Tree Protocol (STP)