05-27-2013 11:23 PM
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.
05-29-2013 04:46 AM
Wrong forum, post in "small business - switches". You can move your post using the actions panel on the right.
05-30-2013 03:43 AM
Moved the thread... grazie Paolo.
Now I hope to get some advice/help :-)
Kind regards,
F.
05-30-2013 04:25 AM
Hi Flavio,
try to use this instead:
swi01-zg(config-if)#switchport trunk allowed vlan 1
Best regards,
Jan
05-30-2013 10:47 AM
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
05-31-2013 02:14 AM
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.
05-31-2013 05:05 AM
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
10-17-2017 12:08 PM
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.
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