How to Change an Interface IP using CLI

Description

How to change an interface IP using Command Line Interface.

Resolution

Log into the appliance using a terminal software like puTTY

  1. Type: config (hit enter)

-----------config(C0EAE4009930)#

  1. Type: interface and name of the interface e.g. X3  (hit enter)
-----------config(C0EAE4009930)# interface X3
  1. Type: ip-assignment WAN static   (in our case the IP assignment should be static and the interface should be WAN ... hit enter)
----------(edit-WAN-static[X3])#
  1. Type: ip 60.60.60.60 netmask 255.255.255.0 (hit enter)
  2. Type: commit  (hit enter)
-----------% Applying changes...
-----------% Changes made.
type: exit  (hit enter)
type: exit  (hit enter)
type: exit  (hit enter)

Image

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?