Skip to main content
  • Place orders quickly and easily
  • View orders and track your shipping status
  • Enjoy members-only rewards and discounts
  • Create and access a list of your products
  • Manage your Dell EMC sites, products, and product-level contacts using Company Administration.

Dell Networking SONiC: セキュア シェル ベースのログイン

Summary: この記事では、Dell Networking SONiCでのセキュア シェル(SSH)ベースのログインについて説明します。この文書では、Dell SONiC 4.1を実行しているスイッチを使用します。

This article may have been automatically translated. If you have any feedback regarding its quality, please let us know using the form at the bottom of this page.

Article Content


Instructions

デフォルトでは、SONiCはDHCP(Dynamic Host Configuration Protocol)を使用して、DHCPサーバーから管理インターフェイス(Management0)のIPアドレスを取得します(「 DHCPサーバーの使用 」を参照)。リモートSSHログインを設定してスイッチを設定するには、

すべてのSONiCデバイスがシリアル コンソール ベースとSSHベースの両方のログインをサポートします。SSHログインを使用する場合は、管理インターフェイス(Management0)のIPアドレスにログインします。
  1. デフォルトのユーザー名 admin とパスワード YourPaSsWoRd を使用して、コンソールまたはSSH接続からLinuxシェルにログインします。
コンソールで:
Debian GNU/Linux 9 sonic ttyS1

sonic login: admin
Password: YourPaSsWoRd
管理インターフェイスのIPアドレスに接続することで、任意のリモート サーバーからSSONiCへのSSHを実行できます。
user@debug:~$ ssh admin@sonic_ip_address(or SONIC DNS Name)
admin@sonic's password:
  1. 初めてログインすると、パスワードの変更を求めるプロンプトが表示されます。手順に従ってパスワードを変更し、Linuxシェルにログインします。これが最初のログインではない場合は、ステップ3に進みます。
You are required to change your password immediately (root enforced) 
Changing password for admin. 
(current) UNIX password: YourPaSsWoRd 
Enter new UNIX password: ********* 
Retype new UNIX password: ******** 
Linux sonic 4.9.0-11-2-amd64 #1 SMP Debian 4.9.189-3+deb9u2 (2019-11-11) x86_64 
You are on
SONIC
-- Software for Open Networking in the Cloud – 
Unauthorized access and/or use are prohibited. 
All access and/or use are subject to monitoring. 
Help: http://azure.github.io/SONiC/ 
admin@sonic:~$


SSHログイン
デフォルトでは、SONiCはDHCPを使用して、DHCPサーバーから管理インターフェイス(Management0)のIPアドレスを取得します(「 DHCPサーバーの使用 」を参照)。リモートSSHログインを設定してスイッチを設定するには、次の手順を実行します。

  1. スイッチにログインします。ログイン後にパスワードをまだ変更していない場合、デフォルトの認証情報はユーザー名 admin とパスワード YourPaSsWoRd です。
  2. DHCPクライアントを無効にし、管理インターフェイスでIPアドレスを設定します。リモート アクセスの管理ルートを構成します。
sonic# config terminal
sonic(config)# interface Management 0
sonic(conf-if-Management0)# ip address 10.1.1.10/24 gwaddr 10.1.1.1
sonic(conf-if-Management0)# no shutdown
sonic(conf-if-Management0)# exit
sonic(config)# exit
sonic# write memory
  1. SSHセッションで管理インターフェイス(Management0)IPアドレスにログインします。管理インターフェイスはUPで、IPアドレスを持っている必要があります。
コンソールで:
Debian GNU/Linux 9 sonic ttyS1

sonic login: admin
Password: YourPaSsWoRd
任意のリモート サーバーからSSONiCへのSSHは、SONiC IPに接続することで実行できます。
user@debug:~$ ssh admin@sonic_ip_address(or SONIC DNS Name)
admin@sonic's password:
  • adminロールを使用してログインすると、Linuxシェルに配置されます。プロンプトは次のとおりです。
admin@sonic:~$.
Management Framework CLIにアクセスするには、SONiC CLIコマンドを入力します。
  • オペレーター ロールを使用してログインすると、管理フレームワークCLIに配置されます。プロンプトは次のとおりです。
sonic#
オペレーター ユーザーはLinuxシェルにアクセスできません。

Article Properties


Affected Product

Enterprise SONiC Distribution, PowerSwitch S5148F-ON, PowerSwitch S5212F-ON, PowerSwitch S5224F-ON, PowerSwitch S5232F-ON, PowerSwitch S5248F-ON, PowerSwitch S5296F-ON, PowerSwitch S5448F-ON, PowerSwitch Z9264F-ON

Last Published Date

30 Oct 2023

Version

2

Article Type

How To