跳转到内容
Ask AI

Device Initialization Configuration

此内容尚不支持你的语言。

By default, both serial console-based login and SSH-based login are supported on AsterNOS appliances.

The first time you log in to the switch, you need to log in from the Console port (hereinafter referred to as the serial port), and you can log in to the switch via SSH after configuring the management port IP. Local login through the serial port is the most basic way to log in to the device, and it is also the basis for configuration through other login methods.

Among them, CX102S devices generally use the service port of ethernet1 as the management port because they do not have a dedicated management port.

This series of switches utilize RJ-45 connectors for serial console connections. The distribution of serial console ports varies among different models. Generally, they can be found on the front panel of the device, while some might be located on the rear panel, often marked with the label “CON”.

After the device is powered on, connect the switch’s serial console port to a server or PC. It’s important to ensure that the communication parameter settings of the user terminal match the default configuration of the switch’s serial console to establish communication. The default values for each parameter are as shown in the table below:

ParameterDefault Value
Baud Rate115200
Flow Control MethodNo flow control
Verification MethodNo verification
Data Bits8
Stop Bits1
  1. Initial Login via Console Port: Connect to the device through the Console port. After pressing Enter, a login prompt will appear.
Welcome to minicom 2.7 OPTIONS: I18n
Compiled on Nov 15 2018, 20:18:47.
Port /dev/ttyUSB1, 11:24:17
Debian GNU/Linux 9 sonic ttyS0
sonic login:
  1. Log in to the device using the default username and password
sonic login: admin
Password:
Last login: Thu Nov 3 17:17:59 UTC 2016 from 192.168.0.79 on pts/0
Linux sonic 5.10.34-asternos #5 SMP PREEMPT Thu Jul 14 08:20:14 EDT 2022 aarch64
_ _ _ _ ___ ____
/ \ ___ | |_ ___ _ __ | \ | | / _ \ / ___|
/ _ \ / __|| __| / _ \| '__|| \| || | | |___ \
/ ___ \ __ \| |_ | __/| | | |\ || |_| | ___) |
/_/ _\|___/ __| ___||_| |_| _| ___/ |____/
------- Asterfusion Network Operating System -------
Help: http://www.asterfusion.com/
Last login: Wed Jun 23 06:44:22 2021 from 192.168.10.198
...Entering cli view, please wait...
sonic#
  1. Configure the management network port IP address
sonic# configure
sonic(config)# interface mgmt 0
sonic(config-mgmt- 0)# ip address 30.1.1.2/24 gw 30.1.1.1
sonic(config-mgmt- 0)# vrf mgmt
  1. Save Configuration
sonic# write
save running-config ...
Existing files will be overwritten, continue? [y/N]: y
Running command: /usr/local/bin/sonic-cfggen -d --print-data > /etc/sonic/config_db.json