cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
429
Views
0
Helpful
3
Replies

VLANs in SG350X's config file....

BushTor1
Level 1
Level 1

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

3 Replies 3

balaji.bandi
Hall of Fame
Hall of Fame

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
!

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

Thanks a lot for the suggestion, will try it after hours and report back .....

BushTor1
Level 1
Level 1

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?