Join the Conversation

To sign in, use your existing MySonicWall account. To create a free MySonicWall account click "Register".

Disable port access via CLI

emmaemma Newbie ✭

When using Web Administration, I can browse to Switching → Port Settings and disable the port status. How do I do this via the CLI?

Model: SWS14-24
Firmware: v1.2.1.0-5

Category: Switches
Reply

Answers

  • Sanjay_PradhanSanjay_Pradhan SonicWall Employee

    @emma You want to disable/shutdown a port on the switch via CLI. Please follow the commands below.

    Login to the switch CLI via SSH

    #conf t

    (config)# interface gigabitethernet 0/1
    (config-if)# shutdown

    (config-if)#exit
    (config)# save

    #This will do the same, as what you do in GUI > Port Settings > Disable port status#

    To Enable the port, follow the commands:

    #conf t

    (config)# interface gigabitethernet 0/1

    (config-if)# no shutdown

    (config-if)#exit
    (config)# save

Sign In or Register to comment.