CodexBloom - Programming Q&A Platform

scenarios Configuring VLAN Trunking on Cisco 2960 Switch with Mixed Fiber and Copper Ports

👀 Views: 668 đŸ’Ŧ Answers: 1 📅 Created: 2025-06-01
cisco vlan switching networking plaintext

I've encountered a strange issue with I'm learning this framework and I tried several approaches but none seem to work. I'm having an scenario trying to configure VLAN trunking on a Cisco 2960 switch where I need to combine both fiber and copper ports. The goal is to allow multiple VLANs to pass through the trunk link, but it seems like I'm running into some unexpected behavior. I've configured the trunk port as follows: ```plaintext interface GigabitEthernet0/1 switchport mode trunk switchport trunk allowed vlan 10,20,30 ``` Then, for the fiber port (which connects to another switch), I set it up similarly: ```plaintext interface GigabitEthernet0/2 switchport mode trunk switchport trunk allowed vlan 10,20,30 ``` However, when I check the trunk status with the `show interfaces trunk` command, I see that VLANs 20 and 30 are not listed as allowed. The output shows: ```plaintext Port Mode Encapsulation Status Native vlan Gi0/1 on 802.1q trunking 1 Gi0/2 on 802.1q trunking 1 ``` I've tried reconfiguring the ports multiple times, and I even rebooted the switch to see if it was a temporary glitch. The VLANs are properly configured on the switch and I've confirmed that they exist using `show vlan`. Additionally, I checked the `running-config` to ensure there are no conflicting settings, but everything seems correct. Is there something specific I might be missing that prevents VLANs 20 and 30 from being recognized on the trunk? Could it be related to how the switch handles mixed media types? Any guidance would be greatly appreciated! For context: I'm using Plaintext on Linux. What am I doing wrong? Any ideas what could be causing this? I'm coming from a different tech stack and learning Plaintext. Am I missing something obvious?