cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
13427
Views
0
Helpful
12
Replies

Changing the Trunk Mode to Access Mode on an Interface on Cisco Switch SG350

Hello,

 

I have a Cisco SG350 Switch and on two Interfaces: Gigabitethernet25 and Gigabitethernet26 i had ran the following configuration:

#switchport mode trunk

But now i want to change the configuration on these two Interfaces to:

#switchport mode access

#switchport access vlan 119

 

It is not letting me switch the mode from Trunk to Access as when i am typing #no switchport mode trunk then i am getting Error: Incomplete; unrecognized command. So, kindly recommend which command should i run to disable #switchport mode trunk and enable #switchport mode access on these two interfaces.

Looking forward to hear from you.

Regards,

Vik.

12 Replies 12

Giuseppe Larosa
Hall of Fame
Hall of Fame

Hello Vikram,

try to use directly the command

switchport mode access

swithport access vlan 119

 

in interface configuration mode, if SG350 behaves like an IOS based switch you don't need to disable mode trunk you can change the mode on the fly directly.

 

Hope to help

Giuseppe

 

Dear Giuseppe,

 

I have already tried to use directly the command:

switchport mode access

swithport access vlan 119

 

But when you do show run then it only shows:

switchport access vlan 119     but it doesnot show switchport mode access as i think the switchport mode trunk (which was done previously is still active) and when i type: no switchport mode trunk then it show unrecognized/incomplete command.

We have to make sure that switchport mode access shows up in the configuration.

So, kindly guide me accordingly.

Regards,

Vik.

 

When i type the command: #no switchport mode trunk then it gives me the error: "%Wrong number of parameters or invalid range, size or characters entered". as i am trying to remove the trunk that was created earlier.

 

Thanks,

Vik

Martin L
VIP
VIP
if "no" did not take just do switchport mode access, then sw access vlan x

and what type of a switch is SG350?

Hi MartinLo,

 

I have tried #switchport mode access, then #sw access vlan 119 but still in show run it only displays:

switchport access vlan 119 but it doesnot display #switchport mode access

 

When i type the command: #no switchport mode trunk then it gives me the error: "%Wrong number of parameters or invalid range, size or characters entered".

 

It is a Cisco SG350-28P 28-Port Gigabit PoE Managed Switch.

Herald Sison
Level 3
Level 3

you can simply type directly the command below:

#switchport mode access

#switchport access vlan 119

 

but if you want to erase the config before you replace it just like what i always do you can simply type the command

 

#no switchport mode trunk

 

then after that you can show run then see if the trunk is it still there

Dear Herald,

 

When i type the command: #no switchport mode trunk then it gives me the error: "%Wrong number of parameters or invalid range, size or characters entered".

 

Thanks,

Vik

Hello

Try defaulting the port and re-apply the config

 

conf t

default interface x/x

interface x/x

switchport host
switchport access vlan x
exit

 


Please rate and mark as an accepted solution if you have found any of the information provided useful.
This then could assist others on these forums to find a valuable answer and broadens the community’s global network.

Kind Regards
Paul

Hi Paul,

 

default interface x/x command does not work on a SG350-28P PoE Managed Switch.

 

I have already tried the above command.

 

Regards,

Hello

sh interface x/x switchport

ah interface x/x capabilities


Please rate and mark as an accepted solution if you have found any of the information provided useful.
This then could assist others on these forums to find a valuable answer and broadens the community’s global network.

Kind Regards
Paul

Dear Paul,

 

Both the commands:

sh interface x/x switchport

ah interface x/x capabilities

 

did not work on this Cisco SG350-28P PoE Managed Switch.

 

Regards,

Vik.

Dear Paul,

 

Both the commands:

sh interface x/x switchport

ah interface x/x capabilities

 

did not work on this Cisco SG350-28P PoE Managed Switch.

 

Regards,

Vik.

Review Cisco Networking products for a $25 gift card