cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
3436
Views
0
Helpful
7
Replies

Port to Default Vlan 1 SG300

Daniel87
Level 1
Level 1

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.

 

 

7 Replies 7

luis_cordova
VIP Alumni
VIP Alumni

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

Hi luis_cordova,

first i musst set the port as a trunk port to run the command.
As a trunk port the command runs without any error, but the port isnt member of vlan 1.

i will mark the right answer when it works.

Thank y.

Deepak Kumar
VIP Alumni
VIP Alumni

Hi,

Run below commands as:

interface fas 0/1

switchport trunk allowed vlan add 1

switchport trunk native vlan 1

 

Regards,

Deepak Kumar

Regards,
Deepak Kumar,
Don't forget to vote and accept the solution if this comment will help you!

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.

 

 

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

Regards,
Deepak Kumar,
Don't forget to vote and accept the solution if this comment will help you!

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

 

 

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

 

Regards,
Deepak Kumar,
Don't forget to vote and accept the solution if this comment will help you!