cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
8324
Views
5
Helpful
7
Replies

SG 300 VLAN 1 : VLAN was not created by user error

Hello everybody.

I managed to create VLAN 30 (mgmt) and VLAN 888 (blackhole) on this SG 300 switch.

Now I've configured ports 1-6 untagged on VLAN 30 and left ports 7-8 untagged in VLAN 1.

Port 10 is my uplink to my router, which config looks like this:

interface gigabitethernet10

spanning-tree portfast

spanning-tree guard root

switchport trunk allowed vlan add 30

switchport trunk native vlan 888

If I connect a device into port 7 or 8, I get no IP address from the relevant DHCP server on my router. Thus, I thought I could add VLAN 1 to the trunk, but here's the surprise:

swi01-zg-#configure t

swi01-zg(config)#int gi10

swi01-zg(config-if)#switchport trunk allowed vlan add 1

VLAN 1 : VLAN was not created by user.

Am I doing something wrong here?

Any help will be appreciated.

Kind regards,

Flavio.

7 Replies 7

paolo bevilacqua
Hall of Fame
Hall of Fame

Wrong forum, post in "small business - switches". You can move your post using the actions panel on the right.

Moved the thread... grazie Paolo.

Now I hope to get some advice/help :-)

Kind regards,

F.

Hi Flavio,

try to use this instead:

swi01-zg(config-if)#switchport trunk allowed vlan 1

Best regards,

Jan

Hi Flavio, the vlan 1 is the default vlan (which was not created by a user).

You would need to use a default vlan tagged command.

switchport default-vlan tagged

Here would be an example

switchce82d3#show run int fa1

interface fastethernet1

switchport trunk allowed vlan add 30

switchport trunk native vlan 888

switchport default-vlan tagged

-Tom
Please mark answered for helpful posts

-Tom Please mark answered for helpful posts http://blogs.cisco.com/smallbusiness/

Hello Tom,

thanks for your suggestion, I'll be testing it in a couple of weeks as the hardware has already been shipped.

In the meantime I'd like to ask what difference the "default" VLAN makes with regard to the "native" VLAN? On Catalyst switches you can state "switchport trunk allowed vlan 1,30" and it works...

Kind regards,

F.

The native vlan is the untagged member of a vlan.

The default vlan can be considered the management vlan (in layer 2 environment). If there is no native vlan specifed then the default vlan takes the role of the native vlan.

-Tom
Please mark answered for helpful posts

-Tom Please mark answered for helpful posts http://blogs.cisco.com/smallbusiness/

Thanks Tom, Even 4 years Later you were right!  For anyone looking for the answer, stop here.

 

switchport default-vlan tagged

 

this is the command you are looking for.  Makes vlan1 tagged for that interface you want to use a different VLAN on.  comes in handy when configuring Access Points on an over-saturated Vlan 1 network where you have to keep the clients on Vlan 1 with the SSID, and the mangagement BVI interface on another vlan.

 

Can't wait to get all these SG-300s replaced... this is not normally required on any other switches I've worked with.