How to set up a trunk port on Hirschmann switch?

Aug 14, 2025Leave a message

As a supplier of Hirschmann switches, I often encounter customers who are interested in setting up trunk ports on these high - quality networking devices. In this blog post, I will guide you through the process of setting up a trunk port on a Hirschmann switch, step by step.

Understanding Trunk Ports

Before we dive into the setup process, it's essential to understand what a trunk port is and why it's important. A trunk port is a port on a switch that is used to carry traffic from multiple VLANs (Virtual Local Area Networks) between switches or between a switch and a router. Trunk ports are typically used in enterprise networks to separate different types of traffic, such as voice, data, and video, and to ensure that each type of traffic is treated appropriately.

Prerequisites

To set up a trunk port on a Hirschmann switch, you will need the following:

  1. A Hirschmann switch. Some popular models include the Hirschmann RS20 - 2400T1T1SDAUHH, Hirschmann RSB20 - 0800T1T1SAAB, and Hirschmann GECKO 8TX/2SFP.
  2. A console cable to connect your computer to the switch's console port.
  3. Terminal emulation software, such as PuTTY, installed on your computer.
  4. Basic knowledge of VLANs and network configuration.

Step 1: Connect to the Switch

The first step is to connect your computer to the Hirschmann switch using a console cable. Plug one end of the console cable into the console port of the switch and the other end into the serial port or USB port of your computer.

Open the terminal emulation software on your computer and configure it to connect to the switch. Set the baud rate to 9600, data bits to 8, stop bits to 1, and parity to none. Then, establish a connection to the switch.

Step 2: Enter Privileged EXEC Mode

Once you are connected to the switch, you will see a command prompt. By default, you are in user EXEC mode. To enter privileged EXEC mode, type the following command and press Enter:

enable

You will be prompted to enter the enable password if one is set. If there is no password, you will directly enter privileged EXEC mode. The command prompt will change to indicate that you are in privileged EXEC mode.

Step 3: Enter Global Configuration Mode

From privileged EXEC mode, you need to enter global configuration mode to make changes to the switch's configuration. Type the following command and press Enter:

configure terminal

The command prompt will change again, indicating that you are in global configuration mode.

Step 4: Select the Interface

Now, you need to select the port that you want to configure as a trunk port. For example, if you want to configure port GigabitEthernet 1/0/1 as a trunk port, type the following command and press Enter:

interface GigabitEthernet 1/0/1

The command prompt will change to show that you are configuring the selected interface.

Step 5: Configure the Port as a Trunk Port

To configure the selected port as a trunk port, type the following command and press Enter:

switchport mode trunk

This command sets the port to operate in trunk mode, allowing it to carry traffic from multiple VLANs.

Step 6: Define Allowed VLANs

By default, a trunk port allows all VLANs to pass through. However, you may want to restrict the VLANs that are allowed on the trunk port for security or performance reasons. To define the allowed VLANs, use the following command:

switchport trunk allowed vlan [vlan - list]

Replace [vlan - list] with a comma - separated list of VLAN IDs that you want to allow on the trunk port. For example, if you want to allow only VLANs 10, 20, and 30, type:

switchport trunk allowed vlan 10,20,30

Step 7: Set the Native VLAN

The native VLAN is the VLAN to which untagged frames are assigned on a trunk port. By default, the native VLAN is VLAN 1. To change the native VLAN, use the following command:

switchport trunk native vlan [vlan - id]

Replace [vlan - id] with the ID of the VLAN that you want to set as the native VLAN. For example, if you want to set VLAN 2 as the native VLAN, type:

switchport trunk native vlan 2

Step 8: Save the Configuration

After you have completed the configuration of the trunk port, you need to save the configuration to make it permanent. Exit the interface configuration mode by typing exit and then exit global configuration mode by typing exit again.

To save the configuration, type the following command in privileged EXEC mode and press Enter:

write memory

This command saves the current running configuration to the startup configuration, which is loaded when the switch is restarted.

Step 9: Verify the Configuration

To verify that the trunk port has been configured correctly, you can use the following commands:

RSB20-0800T1T1SAABHHrsb20 hirschmann

show interfaces [interface - name] switchport

Replace [interface - name] with the name of the trunk port you configured. This command displays information about the port, including its mode (trunk or access), allowed VLANs, and native VLAN.

show interfaces trunk

This command displays a summary of all trunk ports on the switch, including the ports, allowed VLANs, and native VLANs.

Troubleshooting

If you encounter issues during the setup process, here are some common problems and solutions:

  • Trunk port not working: Check the physical connections to ensure that the cables are properly plugged in. Also, verify that the other end of the trunk link is configured correctly.
  • VLAN traffic not passing: Make sure that the VLANs are correctly defined on both ends of the trunk link and that the allowed VLANs are the same.
  • Configuration not saved: Double - check that you used the write memory command to save the configuration. If the problem persists, there may be an issue with the switch's flash memory.

Conclusion

Setting up a trunk port on a Hirschmann switch is a straightforward process once you understand the basic concepts and steps involved. By following the steps outlined in this blog post, you can configure a trunk port to carry traffic from multiple VLANs, improving the efficiency and flexibility of your network.

If you are interested in purchasing Hirschmann switches or need further assistance with network configuration, please feel free to contact us. Our team of experts is ready to help you find the best solutions for your networking needs.

References

  • Hirschmann Switch User Manuals
  • Cisco Networking Academy: Switching Concepts and Configuration