SonicOS 8 NSv Getting Started Guide for ESXi

Table of Contents

Configuring the WAN and LAN Interfaces Using the NSv CLI

You can use the command-line interface (CLI) to configure IP addresses and network settings for NSv Series interfaces, switch between static and DHCP addressing, and enable HTTPS management access on the NSv Series instance.

For example, depending on your network environment, you might need to configure a static IP address on the NSv Series X1 (WAN) interface. If you configure a static IP address, you must also enable HTTPS management to allow remote management access over the WAN.

The NSv Series X0 interface uses the IP address 192.168.168.168 by default. If your LAN uses a different IP address range, you might want to configure the NSv Series X0 interface with an IP address that belongs to your existing LAN network. This configuration allows you to manage the NSv Series instance from a computer on your LAN.

The NSv CLI allows you to log in to the NSv Management Console and use the CLI to configure these network settings.

To configure a WAN and LAN Interfaces using the NSv CLI

  1. Launch the NSv CLI. For more information, refer to Launching the NSv CLI from the ESXi VM Console or Launching the NSv CLI Using SSH.

  2. Click inside the console window.

    Press Ctrl + Alt to regain control of your mouse, or with the Web Console method simply move your mouse away from the console area.

  3. Log in using the administrator credentials (default: admin/password).

  4. Use the show status command at the admin prompt to view interface settings and other information.

    When ---MORE--- appears, press the Spacebar to display additional interfaces. This allows you to determine the IP address assigned to the X1 (WAN) interface, even if you did not map any interfaces during installation.

  5. The following command sequence uses example IP address settings from the 10.203.26.0 network. Replace these example settings with the appropriate IP address settings for your environment.

    configure t
    interface x1
    ip-assignment WAN static
    ip 10.203.26.228 netmask 255.255.255.0
    gateway 10.203.26.1
    exit
    management https
    management ping
    management ssh
    exit
    commit

    After you enter commit, the console displays Applying changes and other status information, and then returns to the config prompt. Enter exit to return to the admin command level and prompt.

  6. To configure the X1 (WAN) interface to use DHCP addressing, enter the following sequence of commands. These commands enable DHCP addressing and management access on the interface. The command prompt changes as you enter or exit different command levels.

    configure t
    interface x1
    ip-assignment WAN dhcp
    exit
    management https
    management ping
    management ssh
    exit
    commit

    After you enter commit, the console displays Applying changes and other status messages, and then returns to the configuration prompt. After a few seconds, the DHCP-assigned IP address is displayed. You can then use that IP address to access the SonicOS web management interface.

  7. You can use the show status command at the admin prompt to view the assigned IP address for the X1 (WAN) interface and other information.

  8. To change the X0 LAN static IP address, use the following commands:

    SonicOS HTTPS management is enabled by default on the X0 interface.

    For a static IP address in an example 10.10.10.0/24 LAN network, enter:

    configure t
    interface x0
    ip 10.10.10.100 netmask 255.255.255.0
    exit
    exit
    commit

    An alternative approach to changing the X0 IP address to 192.168.1.1 at the CLI follows:

    config(2CB8ED694DF8)# interface X0
    (edit-interface[X0])# ip-assignment LAN static
    (edit-LAN-static[X0])# ip 192.168.1.1 netmask 255.255.255.0
    (edit-LAN-static[X0])# commit
    % Applying changes...
    % Status returned processing command:
    commit
    % Changes made
  9. When IP address configuration and management settings are complete, type restart to reboot NSv Series with the new settings.

    Press Ctrl + Alt to regain control of your mouse.

    After configuring an IP address and enabling management, you can log in to SonicOS on your NSv Series instance from a browser, or ping the virtual machine from a command window or other application.