How to configure MPLS on Hirschmann Mach104?

Aug 13, 2025Leave a message

Hey there! I'm a supplier of Hirschmann Mach104 switches, and today I'm gonna walk you through how to configure MPLS (Multi-Protocol Label Switching) on these awesome devices. MPLS is a key technology in modern networks, offering high-speed data forwarding and efficient traffic management. Let's get started!

Prerequisites

Before we jump into the configuration, there are a few things you need to have in place. First off, you gotta make sure your Hirschmann Mach104 switch is up and running. Check that all the necessary cables are connected properly, and the power is on. You should also have access to the switch's command-line interface (CLI) via a console cable or SSH.

It's also a good idea to have a basic understanding of MPLS concepts. MPLS uses labels to forward packets instead of traditional IP routing, which can significantly speed up the forwarding process. If you're new to MPLS, I recommend doing a bit of reading up on it before you start the configuration.

Step 1: Enable MPLS Globally

The first step in configuring MPLS on your Hirschmann Mach104 is to enable it globally. To do this, log in to the switch's CLI and enter the following commands:

enable
configure terminal
mpls ldp

The enable command takes you to privileged EXEC mode, where you can access more advanced configuration options. The configure terminal command allows you to enter global configuration mode, where you can make changes that affect the entire switch. Finally, the mpls ldp command enables Label Distribution Protocol (LDP), which is used to distribute labels in an MPLS network.

Step 2: Configure MPLS Interfaces

Once you've enabled MPLS globally, you need to configure the interfaces that will participate in the MPLS network. You can do this by entering the following commands for each interface:

interface <interface-name>
mpls ip

Replace <interface-name> with the actual name of the interface you want to configure. The mpls ip command enables MPLS forwarding on the specified interface.

For example, if you want to enable MPLS on interface GigabitEthernet 0/1, you would enter the following commands:

interface GigabitEthernet 0/1
mpls ip

Step 3: Configure LDP Parameters

Next, you need to configure the LDP parameters for your MPLS network. This includes things like the LDP router ID and the LDP discovery scope. To configure the LDP router ID, enter the following command:

mpls ldp router-id <ip-address>

Replace <ip-address> with the IP address you want to use as the LDP router ID. The LDP router ID is used to uniquely identify the router in the MPLS network.

To configure the LDP discovery scope, enter the following command:

mpls ldp discovery transport-address <ip-address>

Replace <ip-address> with the IP address of the interface that will be used for LDP discovery. The LDP discovery scope determines which routers can discover each other in the MPLS network.

Step 4: Configure MPLS Forwarding

Once you've configured the LDP parameters, you need to configure MPLS forwarding on your Hirschmann Mach104. To do this, enter the following command:

ip route <destination-network> <subnet-mask> <next-hop> label-switch

Replace <destination-network> with the destination network you want to forward traffic to, <subnet-mask> with the subnet mask of the destination network, and <next-hop> with the IP address of the next-hop router. The label-switch keyword indicates that MPLS forwarding should be used for the specified route.

For example, if you want to forward traffic to network 192.168.1.0/24 via next-hop router 10.0.0.1, you would enter the following command:

ip route 192.168.1.0 255.255.255.0 10.0.0.1 label-switch

Step 5: Verify MPLS Configuration

After you've completed the configuration, it's important to verify that MPLS is working correctly on your Hirschmann Mach104. You can do this by using the following commands:

show mpls ldp neighbor
show mpls forwarding-table

The show mpls ldp neighbor command displays information about the LDP neighbors of your router. If MPLS is configured correctly, you should see a list of LDP neighbors and their status.

The show mpls forwarding-table command displays the MPLS forwarding table, which shows how packets are being forwarded in the MPLS network. If MPLS is working correctly, you should see entries in the forwarding table for the routes you configured.

Hirschmann OZD PROFI 12M G12 PROHirschmann OZD Profi 12M G12 PRO LABEL

Additional Considerations

When configuring MPLS on your Hirschmann Mach104, there are a few additional considerations you need to keep in mind.

  • Hardware Compatibility: Make sure your Hirschmann Mach104 switch has the necessary hardware support for MPLS. Some older models may not support MPLS, so check the product documentation to confirm.
  • Security: MPLS networks can be vulnerable to security threats, so it's important to implement appropriate security measures. This includes things like access control lists (ACLs) and authentication mechanisms.
  • Monitoring and Troubleshooting: Regularly monitor your MPLS network to ensure it's working correctly. Use tools like SNMP and syslog to collect and analyze network data. If you encounter any issues, use the troubleshooting commands provided by Hirschmann to diagnose and resolve them.

Related Hirschmann Products

If you're looking for additional Hirschmann products to complement your MPLS network, check out these great options:

  • Hirschmann M-SFP-LH+/LC: These small form-factor pluggable (SFP) modules are ideal for high-speed data transmission in MPLS networks.
  • Hirschmann OZD PROFI 12M G12 PRO: This industrial Ethernet switch offers advanced features and high reliability, making it a great choice for MPLS networks in industrial environments.
  • Hirschmann SPIDER 5TX: This compact and cost-effective Ethernet switch is perfect for small to medium-sized MPLS networks.

Conclusion

Configuring MPLS on your Hirschmann Mach104 switch may seem a bit daunting at first, but with the right knowledge and a step-by-step approach, it's definitely doable. By following the steps outlined in this blog post, you should be able to get your MPLS network up and running in no time.

If you have any questions or need further assistance with configuring MPLS on your Hirschmann Mach104, or if you're interested in purchasing Hirschmann products, don't hesitate to reach out. We're here to help you make the most of your network infrastructure.

References

  • Hirschmann Mach104 Product Documentation
  • MPLS: Multi-Protocol Label Switching by Andrew Greenberg and James H. Stewart