11-07-2014 03:25 PM - edited 03-07-2019 09:25 PM
dear all,
In my sg300 switch I configured the gi port as trunk:
switchport mode trunk
switchport trunk allowed vlan add 1
no spanning-tree portfast
no spanning-tree bpduguard
however the 'trunk allowed vla add 1' line generate error, i think because vlan 1 is the default, when i check the port it shows trunk, and it is operate well.
But wehen i show running-config it shows only this:
interface gigabitethernet1
no spanning-tree portfast
Why is the switchport mode trunk and the trunk allowed commands missing in the running-config? However I have another trunk port with allowed vlan 1,3, that is included partly in the running-config, but there is no switchport mode trunk
interface gigabitethernet52
no spanning-tree portfast
spanning-tree port-priority 16
switchport trunk allowed vlan add 3
Is the trunk the base config, so it is left by default?
thank you
Solved! Go to Solution.
11-10-2014 06:00 AM
Dynamic Desirable is the default.
Effectively the switch will negotiate with whatever the port is plugged into.
If the other side is a Trunk, it will form a Trunk
If the other side is an Access Port, they will both be an access port.
Vlan 1 is the Native and default vlan, therefore is always allowed on the Trunk, hence why it does not show up in the running config.
The running config will only show commands which are not the default.
I suspect whatever port interface gigabitethernet52 is plugged into on the other end, the config will be a Trunk because the default is to negotiate.
11-10-2014 06:00 AM
Dynamic Desirable is the default.
Effectively the switch will negotiate with whatever the port is plugged into.
If the other side is a Trunk, it will form a Trunk
If the other side is an Access Port, they will both be an access port.
Vlan 1 is the Native and default vlan, therefore is always allowed on the Trunk, hence why it does not show up in the running config.
The running config will only show commands which are not the default.
I suspect whatever port interface gigabitethernet52 is plugged into on the other end, the config will be a Trunk because the default is to negotiate.
11-10-2014 11:03 AM
Thank you for your answer, however I can't find any dtp or dynamic desirable commands in the switch sg330-52, neither in its manual. So I think the switch cannot be configured in that way. Or where can I find this command? At the interface's switchport section? In addition I issued the 'switchport mode trunk' on the trunk ports.
11-11-2014 08:04 AM
It would be great if you "copy and paste" here the errors that generate the commands that you introduce, sometimes they point to the solution.
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