07-07-2019 09:47 AM
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.
07-07-2019 10:43 AM
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
07-08-2019 10:49 AM
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.
07-08-2019 11:03 AM
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
07-07-2019 04:20 PM
07-08-2019 11:02 AM
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.
07-08-2019 12:22 AM
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
07-08-2019 11:04 AM
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
07-08-2019 01:33 PM
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
07-08-2019 02:24 PM
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,
07-08-2019 03:17 PM
Hello
sh interface x/x switchport
ah interface x/x capabilities
07-09-2019 07:52 AM
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.
07-09-2019 07:53 AM
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.
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