Basic Configuration

Entering CLI Configuration Mode

PicOS supports different CLI modes, which are indicated by different prompts. Some commands can only be run in certain modes.

  • Operation mode

When log in PicOS CLI, you are in the operation mode by default. You can execute some basic configurations in this mode, such as clear and show, etc. > indicates the operation mode, as shown in the figure below.

Figure 1. Prompt of Operation Mode

image-20240716-063709.png
  • Configuration mode

You can configure the switch function in this mode, such as interface, routing, etc. Run configure in the operation mode to enter the configuration mode, and run exit to return to the operation mode. # indicates the configuration mode, as shown in the figure below.

Figure 2. Prompt of Configuration Mode

image-20240716-063943.png
  • Linux shell mode

Run start shell sh in the operation mode to enter the Linux shell mode, and run exit to return to the operation mode. ~$ indicates the Linux shell mode, as shown in the figure below.

Figure 3.     Prompt of Linux Shell Mode

Configuring a Host Name

Overview

A host name distinguishes one device from another. The default host name is the system name PICOS. You can modify the host name as required.

Procedure

Step1        In the configuration mode, specify or modify a host name for the switch.

set system hostname <hostname>

set system hostname <hostname>

Step2        Commit the configuration.

commit

commit

Verifying the Configuration

After the configuration is completed, in the configuration mode, use run show system name command to view the new host name.

Other Configurations

To reset the hostname to default, use delete system hostname command.

Configuring the Management IP Address

Overview

To facilitate the device management and meet the requirement of separating the management traffic from the data traffic, the switch supports the in-band or out-of-band management interface with the factory default IP address 192.168.1.1/24. If the switch cannot obtain the IP address through DHCP, the factory default IP address is valid, and you can access it through PCs in the same network segment. Besides, you can manually configure the IP address as needed.

Procedure

Step1        In the configuration mode, specify the IP address for management interface.

set system management-ethernet eth0 ip-address {IPv4 | IPv6} <ip-address>

set l3-interface vlan-interface inband-mgmt address <ipv4-address | ipv6-address> prefix-length <length>

set system management-ethernet eth0 ip-address {IPv4 | IPv6} <ip-address>

set l3-interface vlan-interface inband-mgmt address <ipv4-address | ipv6-address> prefix-length <length>

Step2        Commit the configuration.

commit

commit

Verifying the Configuration

After the configuration is completed, in the configuration mode, use run show system management-ethernet command to view the MAC address, IP address, state and traffic statistics.

Other Configurations

To clear the configuration of management interface, use delete system management-ethernet eth0 ip-address command.

 

 

Copyright © 2024 Pica8 Inc. All Rights Reserved.