As a trusted supplier of Hirschmann networking products, I often receive inquiries about configuring the Hirschmann MACH104 switches. In this blog post, I'll guide you through the process of configuring the Hirschmann MACH104 step by step, sharing insights based on my experience in the field.
Understanding the Hirschmann MACH104
The Hirschmann MACH104 is a high - performance Ethernet switch designed for industrial applications. It offers a range of features such as high - speed ports, advanced security options, and reliable network connectivity. Before diving into the configuration process, it's essential to have a basic understanding of the switch's hardware and available interfaces.
The MACH104 comes with different port configurations, including copper and fiber ports, which can be used to connect various devices in an industrial network. For instance, the Hirschmann MACH104 - 20TX - FR model has 20 copper ports, suitable for connecting devices like industrial PCs, sensors, and other Ethernet - enabled equipment.
Prerequisites for Configuration
Before you start configuring the MACH104, make sure you have the following:
- Physical Connection: Connect the switch to a power source and establish a network connection between your management device (e.g., a laptop) and one of the switch's ports. You can use a straight - through Ethernet cable for this purpose.
- Management Software: You'll need a terminal emulation program such as PuTTY if you're using a Windows system or the built - in terminal on Linux or macOS. This software allows you to communicate with the switch via the console port or through a network connection.
- Login Credentials: The default username and password for the Hirschmann MACH104 are usually "admin" and "admin". However, it's recommended to change these credentials as soon as possible for security reasons.
Initial Configuration via the Console Port
- Connect to the Console Port: Use a console cable to connect your management device to the console port of the MACH104. Open your terminal emulation program and configure it to connect to the console port at a baud rate of 9600, 8 data bits, no parity, and 1 stop bit.
- Login to the Switch: Once the connection is established, you'll be prompted to enter the username and password. Enter the default credentials (admin/admin) and press Enter.
- Enter Configuration Mode: After logging in, you'll be in the user EXEC mode. To enter the global configuration mode, type "enable" to enter the privileged EXEC mode and then type "configure terminal". You'll see the prompt change to indicate that you're in the global configuration mode.
Basic Configuration Settings
Setting the Hostname
The hostname is a unique identifier for the switch. To set the hostname, use the following command in the global configuration mode:
hostname <your - desired - hostname>
For example, if you want to name your switch "IndustrialSwitch1", you would type:
hostname IndustrialSwitch1
Configuring the IP Address
If you want to manage the switch over the network, you need to configure an IP address for it. First, enter the interface configuration mode for the VLAN interface (usually VLAN 1).
interface vlan 1
Then, assign an IP address and subnet mask to the VLAN interface. For example:
ip address 192.168.1.10 255.255.255.0
This command assigns the IP address 192.168.1.10 with a subnet mask of 255.255.255.0 to the VLAN 1 interface.
Saving the Configuration
After making the necessary changes, you need to save the configuration to the non - volatile memory so that it persists after a reboot. Use the following command in the privileged EXEC mode:
write memory
Advanced Configuration Options
VLAN Configuration
VLANs (Virtual Local Area Networks) allow you to segment your network into logical groups. To create a new VLAN, use the following command in the global configuration mode:
vlan <vlan - id>
For example, to create VLAN 10:
vlan 10
Then, you can assign ports to the VLAN. For instance, to assign ports 1 - 5 to VLAN 10:


interface range fastethernet 0/1 - 5
switchport access vlan 10
Quality of Service (QoS) Configuration
QoS is important in industrial networks to ensure that critical traffic, such as real - time control data, gets priority over other types of traffic. You can configure QoS policies on the MACH104 by defining traffic classes and assigning priorities to them.
class - map match - any RealTimeTraffic
match protocol tcp
match protocol udp
policy - map RealTimePolicy
class RealTimeTraffic
bandwidth percent 70
interface fastethernet 0/1
service - policy output RealTimePolicy
This example configures a QoS policy that gives 70% of the bandwidth to TCP and UDP traffic on port 0/1.
Security Configuration
Password Protection
As mentioned earlier, it's crucial to change the default password. In the global configuration mode, use the following command to change the enable password:
enable secret <your - new - password>
You can also set a password for console access and Telnet/SSH access.
line console 0
password <your - console - password>
login
line vty 0 4
password <your - vty - password>
login
Port Security
Port security can be used to limit the number of MAC addresses that can connect to a port. For example, to allow only one MAC address to connect to port 0/1:
interface fastethernet 0/1
switchport port - security
switchport port - security maximum 1
switchport port - security mac - address sticky
Troubleshooting Common Configuration Issues
- Connectivity Problems: If you're having trouble connecting to the switch, check the physical connections, ensure that the IP address and subnet mask are correctly configured, and verify that there are no network devices blocking the connection.
- Configuration Errors: If a configuration command doesn't work as expected, double - check the syntax. You can use the "?" command in the CLI to get help on available commands and their syntax.
Other Hirschmann Products for Complementary Use
In addition to the MACH104, Hirschmann offers other products that can be used in conjunction with it to build a comprehensive industrial network. The Hirschmann RS20 - 0800M4M4SDAEHH is a rugged industrial router that can be used to connect the local network to a wide - area network (WAN). The Hirschmann SPIDER - SL - 20 - 04T1M29999SY9HHHH is another industrial switch with advanced features for harsh environments.
Conclusion
Configuring the Hirschmann MACH104 may seem complex at first, but by following the steps outlined in this blog post, you can successfully set up the switch to meet your industrial network requirements. Whether it's basic configuration settings, advanced features like VLAN and QoS, or security measures, the MACH104 offers a wide range of options to ensure a reliable and secure network.
If you're interested in purchasing the Hirschmann MACH104 or other Hirschmann networking products, or if you have any questions about configuration or network design, feel free to reach out. We're here to assist you in building the best industrial network solution for your business.
References
- Hirschmann MACH104 User Manual
- Hirschmann Industrial Networking Documentation
