11-10-2021 11:50 PM
Hi,
Below I paste a few excerpts from the backed up SG350X's config file:
First I have defined a few VLANs and they show up in the config file like this:
interface vlan 92
name StaffNet92
!
interface vlan 93
name TestNet93
!
interface vlan 94
name ResidentsNet94
!
This following uplink port should allow TAGGED VLANs from all these:
interface TenGigabitEthernet1/0/1
switchport mode trunk
switchport trunk allowed vlan 92-94
!
... and this works fine!
Port 23 should UNTAG VLAN 93:
interface GigabitEthernet1/0/23
switchport access vlan 93
!
... and this works fine too!
Port 24 should UNTAG VLAN 92 AND allow TAGGED VLANs 92-94:
interface GigabitEthernet1/0/24
switchport access vlan 92
switchport trunk allowed vlan 92-94
!
... and it allows the tagged VLANs but it does NOT untag VLAN 92.
How do I modify interface GigabitEthernet1/0/24's properties in the config file so it both untags VLANs 92 while allowing tagged VLANs 92-94?
Thanks a lot for comments on this.
regards Tor
11-11-2021 12:00 AM
Not sure SG series this command (i do not remember try this, if i understood your requirement correctly)
interface GigabitEthernet1/0/24
switchport trunk native vlan 92
switchport trunk allowed vlan 92-94
!
11-11-2021 12:10 AM
Thanks a lot for the suggestion, will try it after hours and report back .....
11-11-2021 02:46 AM
When I modified the startup configuration file to this according to your suggestion:
interface GigabitEthernet1/0/24
switchport trunk native vlan 93
switchport trunk allowed vlan 92-94
!
... then I saved the file, loaded the file as Startup Configuration and rebooted the switch.
Then I opened the webinterface at VLAN Management / Port VLAN Membership and the actual port had changed to this:
Mode: Access, Admin VLAN: 1U and Operational VLAN 1U.
So obviously it had misinterpreted the "switchport trunk native vlan 93" line to cause 'Make VLAN 93 Untagged at this port'. According to the webinterface the port now had only VLAN 1 untagged and none VLANs tagged...
Any other suggestions on how to mix one untagged and several tagged VLANs per port using the configuration file?
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide