03-16-2019 04:34 PM
Hello,
i have a little problem maybe somone can help me.
i have set the last Vlan 1 defaul port to forbidden via web interface, so my switch sg300 is unreachable.
So i connect to the switch witch a console cable and would set one port to the default vlan.
i try so set the port with "switchport mode access" to an access port and then with "switchport access vlan1" to the default vlan, but this failed.
The port can be member of any other vlan i create but not to the default vlan.
Can somone help me how can i set the port as a vlan 1 member, so the switch is reachable over the web interface again?
thank y.
03-16-2019 06:16 PM
Hi @Daniel87 ,
The vlan 1 is the default vlan (which was not created by a user).
Try set the port with this command:
switchport default-vlan tagged
I hope that you find it useful
Remember to mark the correct answers as solved, since that helps other users with similar doubts
Regards
03-17-2019 04:11 AM
03-16-2019 11:14 PM
Hi,
Run below commands as:
interface fas 0/1
switchport trunk allowed vlan add 1
switchport trunk native vlan 1
Regards,
Deepak Kumar
03-17-2019 04:04 AM
Hallo Deepak Kumar,
i set the port sucessfully with "switchingport mode trunk" as a trunk port
with the command "switchport trunk allowed vlan add 1" it tells me
VLAN 1 : VLAN was not created by user.
The last command "switchport trunk native vlan 1" gives no error, but when i show the port status,
the port isnt member of vlan 1.
03-17-2019 05:02 AM
Hi,
Ohh, I forget that this is a small-business switch.
You can't make it as allowed VLAN 1 as:
XX_SW(config-if)#switchport trunk allowed vlan add
<2-4094> Specify which VLAN to add to the port.
So run a default command first as:
XX-SW(config-if)#switchport trunk allowed vlan add all
Regards,
Deepak Kumar
03-17-2019 04:18 PM - edited 03-17-2019 04:44 PM
Hi,
i try these command (port is in trunk mode).
"switchport trunk allowed vlan add all"
Message: "An interface cannot become a forbidden VLAN member."
So i think, okay then allow the forbidden Vlan with
"switchport forbidden vlan add 1"
the switch answerd "VLAN was not created by user."
Or is something wrong with the PVID?
here is a working port. (but wrong VLAN for my problem)
Port : gi6
Port Mode: Access
Gvrp Status: disabled
Ingress Filtering: true
Acceptable Frame Type: admitAll
Ingress UnTagged VLAN ( NATIVE ): 100
Port is member in:
Vlan Name Egress rule Added by
---- -------------------------------- ----------- ----------------
100 CP Untagged S
03-17-2019 10:24 PM
Hi,
After seen output which you had shared. I think this is happing due to PVID.
switchport mode general
no switchport general pvid
switchport general pvid 1
Regards,
Deepak Kumar
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