Fortinet black logo

Administration Guide

Connecting to the Command Line Interface

Copy Link
Copy Doc ID af12b5b0-1c45-11ea-9384-00505692583a:790003
Download PDF

Connecting to the Command Line Interface

The FortiSandbox CLI commands are intended to be used for initial device configuration and troubleshooting. The FortiSandbox device is primarily configured using the GUI. You can enable SSH and Telnet access on the port1 (administration) interface or any other administrative port set through the CLI command set admin-port and access the CLI through SSH or Telnet to troubleshoot the device including RAID related hard disk issues. You can also connect to the CLI through the console port.

To connect to the CLI through the console port:
  1. Connect the FortiSandbox unit console port to the management computer using the provided console cable.
  2. Start a terminal emulation program on the management computer.
  3. Use the following settings:

    Serial line to connect to

    COM1

    Speed (baud)

    9600

    Data bits

    8

    Stop bits

    1

    Parity

    None

    Flow Control

    None

  4. Press Open to connect to the FortiSandbox CLI. The login as page is displayed.
  5. Type a valid administrator name and press Enter.
  6. Type the password for this administrator and press Enter.

For example, to configure the IP address and gateway of the FortiSandbox device, use the following commands:

set port1-ip 192.168.0.10/24

set default-gw 192.168.0.1

For more information on FortiSandbox CLI commands, see the FortiSandbox CLI Reference Guide available in the Fortinet Document Library.

Connecting to the Command Line Interface

The FortiSandbox CLI commands are intended to be used for initial device configuration and troubleshooting. The FortiSandbox device is primarily configured using the GUI. You can enable SSH and Telnet access on the port1 (administration) interface or any other administrative port set through the CLI command set admin-port and access the CLI through SSH or Telnet to troubleshoot the device including RAID related hard disk issues. You can also connect to the CLI through the console port.

To connect to the CLI through the console port:
  1. Connect the FortiSandbox unit console port to the management computer using the provided console cable.
  2. Start a terminal emulation program on the management computer.
  3. Use the following settings:

    Serial line to connect to

    COM1

    Speed (baud)

    9600

    Data bits

    8

    Stop bits

    1

    Parity

    None

    Flow Control

    None

  4. Press Open to connect to the FortiSandbox CLI. The login as page is displayed.
  5. Type a valid administrator name and press Enter.
  6. Type the password for this administrator and press Enter.

For example, to configure the IP address and gateway of the FortiSandbox device, use the following commands:

set port1-ip 192.168.0.10/24

set default-gw 192.168.0.1

For more information on FortiSandbox CLI commands, see the FortiSandbox CLI Reference Guide available in the Fortinet Document Library.