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
手順
管理インターフェイスのネットワーク接続を設定する手順:
管理者レベルのユーザーを設定する手順:
詳細については、『Dell Technologies Enterprise SONiC User Guide Release Documentation』を参照するか、デル・テクノロジーズのテクニカル サポートにお問い合わせください。
メモ: これらの手順では、スイッチが出荷時のデフォルト設定で起動するように構成されていることを前提としています。
管理インターフェイスのネットワーク接続を設定する手順:
- Sシリーズ スイッチのコンソールまたは管理IPを開きます。
- デフォルトの認証情報「admin\YourPaSsWoRd」を使用して、特権execモードにログインします。
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 --
- 「sonic-cli」でSONIC CLIを起動します。
admin@sonic:~$ sonic-cli sonic#
- スイッチの構成を変更するには、「configure terminal」コマンドを実行してスイッチ構成を編集し、Enterを押します。
sonic# configure terminal sonic(config)#
- 管理インターフェイスの実行中の設定を表示します。 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#
- スイッチの構成を変更するには、「configure terminal」コマンドを実行してスイッチ構成を編集し、Enterを押します。
sonic# configure terminal sonic(config)#
- 管理インターフェイスを設定するには、「Interface Management 0」コマンドを実行します。
sonic(config)# interface Management 0 sonic(conf-if-eth0)#
- 管理インターフェイスで固定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)#
- 「end」を使用して、configモードを終了してexecモードに入ります。
sonic(conf-if-eth0)# end sonic#
- 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#
- 「write memory」で実行中の設定をスタートアップ設定に保存します。
sonic# write memory sonic#
メモ: 固定IPアドレスがManagement 0インターフェイスに追加されると、DHCPは自動的に無効になります。固定IPアドレスが削除されると、DHCPは自動的に再度有効になります。
管理者レベルのユーザーを設定する手順:
- Sシリーズ スイッチのコンソールまたは管理IPを開きます。
- デフォルトの認証情報「admin\YourPaSsWoRd」を使用して、特権execモードにログインします。
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 --
- 「sonic-cli」でSONIC CLIを起動します。
admin@sonic:~$ sonic-cli sonic#
- スイッチの構成を変更するには、「configure terminal」コマンドを実行してスイッチ構成を編集し、Enterを押します。
sonic# configure terminal sonic(config)#
- 「username test password P@ssw0rd!123 role admin」で、sysadmin権限を持つユーザー名「test」とパスワードを設定します。
sonic(config)# username test password P@ssw0rd!123 role admin sonic(config)#
- 「end」を使用して、configモードを終了してexecモードに入ります。
sonic(config)# end sonic#
- 「show running-configuration | grep test」でユーザー設定を確認します。
sonic# show running-configuration | grep user username test role admin
- 「write memory」で実行中の設定をスタートアップ設定に保存します。
sonic# write memory sonic#
詳細については、『Dell Technologies Enterprise SONiC User Guide Release Documentation』を参照するか、デル・テクノロジーズのテクニカル サポートにお問い合わせください。
Affected Products
Enterprise SONiC DistributionArticle 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.