How to disable and re-enable a firewall interface via CLI

Description

CLI commands to disable and re-enable a firewall interface

Cause

Sometimes it might be necessary to disable an interface via CLI when access via the Management Interface (GUI) is not possible.

Disable an interface:

  1. Connect via serial cable or via SSH, using a Terminal Programme, such as PuTTy
    NOTE: To connect via SSH, SSH Management must be enabled on the interface you connect to (i.e. X0)



  2. Log in using admin credentials

    Image

  3. switch to config mode by entering the following command

    config (press Enter)

    Image


  4. Enter the following command to disable the interface. 

    Shutdown [interface name] (press Enter)

    Image

  5. Type commit (press Enter)

    Image

  6. Exit config mode by typing end and then press Enter.

    Image

Enable an interface:

  1. Connect via serial cable or via SSH, using a Terminal Programme, such as PuTTy
  2. Log in using admin credentials
  3. switch to config mode by entering the following command

    config (press Enter)

  4. Type the following command to enable the interface

    no shutdown [interface name] (press Enter)

    Image

  5. commit (press Enter)
  6. Exit config mode by typing end and then press Enter.

 

 

Related Articles

  • SonicOS 8.1.0 FAQ
    Read More
  • SonicWall GEN8 TZs and GEN8 NSas Settings Migration
    Read More
  • Getting started with SonicWall firewalls
    Read More
not finding your answers?