Dell EMC Networking S 系列:基本交換器管理組態 - SONIC 4.0

Summary: 如何設定 SONIC 4.0 交換器管理的基礎知識。

This article applies to This article does not apply to This article is not tied to any specific product. Not all product versions are identified in this article.

Instructions

指示
注意:這些步驟假設您的交換器是從原廠預設設定開始設定。

設定管理介面網路連線的指示:  
  1. 開啟 S 系列交換器的主控台或管理 IP。 
  2. 使用預設登入資料登入具備權限的 exec 模式:admin\YourPaSsWoRd
Debian GNU/Linux 9 sonic ttyS0

sonic login: admin
Password:
Last login: Mon Jul 18 22:08:17 UTC 2022 on ttyS0
Linux sonic 4.9.0-11-2-amd64 #1 SMP Debian 4.9.189-3+deb9u2 (2019-11-11) x86_64
You are on
  ____   ___  _   _ _  ____
 / ___| / _ \| \ | (_)/ ___|
 \___ \| | | |  \| | | |
  ___) | |_| | |\  | | |___
 |____/ \___/|_| \_|_|\____|

-- Software for Open Networking in the Cloud --
  1. 以下列命令啟動 SONIC CLI:sonic-cli
admin@sonic:~$ sonic-cli
sonic#
  1. 若要修改交換器組態,請執行 configure terminal 命令,然後按下 Enter 鍵。
sonic# configure terminal
sonic(config)#
  1. 顯示管理介面的執行組態:  show running-configuration interface management 0
sonic# show running-configuration interface Management 0
!
interface Management 0
 description Management0
 mtu 1500
 autoneg on
 speed 1000
sonic#
  1. 若要修改交換器組態,請執行 configure terminal 命令,然後按下 Enter 鍵。
sonic# configure terminal
sonic(config)#
  1. 若要設定管理介面:Interface Management 0 命令
sonic(config)# interface Management 0
sonic(conf-if-eth0)#
  1. 在管理介面上設定靜態 IP 位址和預設閘道:IP address 1.1.1.2/24 gwaddr 1.1.1.1
sonic(conf-if-eth0)# ip address 1.1.1.2/24 gwaddr 1.1.1.1
sonic(conf-if-eth0)#
  1. 從組態模式退出至 exec 模式:end
sonic(conf-if-eth0)# end
sonic#
  1. 在 exec 模式中,確認管理介面組態正確:show running-configuration interface Management 0
sonic# show running-configuration interface Management 0
!
interface Management 0
 description Management0
 mtu 1500
 autoneg on
 speed 1000
 ip address 1.1.1.2/24 gwaddr 1.1.1.1
sonic#
  1. 使用下列命令將執行中的組態儲存至啟動組態:write memory
sonic# write memory
sonic#
注意:一旦將靜態 IP 位址新增至 Management 0 介面,就會自動停用 DHCP。如果移除靜態 IP 位址,便會自動重新啟用 DHCP。

設定管理員層級使用者的指示:  
  1. 開啟 S 系列交換器的主控台或管理 IP。 
  2. 使用預設登入資料登入具備權限的 exec 模式:admin\YourPaSsWoRd
Debian GNU/Linux 9 sonic ttyS0

sonic login: admin
Password:
Last login: Mon Jul 18 22:08:17 UTC 2022 on ttyS0
Linux sonic 4.9.0-11-2-amd64 #1 SMP Debian 4.9.189-3+deb9u2 (2019-11-11) x86_64
You are on
  ____   ___  _   _ _  ____
 / ___| / _ \| \ | (_)/ ___|
 \___ \| | | |  \| | | |
  ___) | |_| | |\  | | |___
 |____/ \___/|_| \_|_|\____|

-- Software for Open Networking in the Cloud --
  1. 以下列命令啟動 SONIC CLI:sonic-cli
admin@sonic:~$ sonic-cli
sonic#
  1. 若要修改交換器組態,請執行 configure terminal 命令,然後按下 Enter 鍵。
sonic# configure terminal
sonic(config)#
  1. 設定具有 sysadmin 權限的「test」使用者和密碼:username test password P@ssw0rd!123 role admin
sonic(config)# username test password P@ssw0rd!123 role admin
sonic(config)#
  1. 從組態模式退出至 exec 模式:end
sonic(config)# end
sonic#
  1. 使用以下命令確認使用者組態:show running-configuration | grep test
sonic# show running-configuration | grep user
username test role admin
  1. 使用下列命令將執行中的組態儲存至啟動組態:write memory
sonic# write memory
sonic#

如需進一步協助,請參閱 Dell Technologies Enterprise SONiC 使用者指南說明文件,或聯絡 Dell Technologies 技術支援部門。

Affected Products

Enterprise SONiC Distribution
Article Properties
Article Number: 000201926
Article Type: How To
Last Modified: 24 May 2023
Version:  4
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.