Dell 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 Networking Sシリーズ:基本のインターフェイス設定 - SONIC 4.0
[Summary]:SONIC 4.0インターフェイスの基本設定方法。
手順
これらの手順では、スイッチが工場出荷時のデフォルト設定でスタンドアロン ユニットとして起動するように構成されていることを前提としています。記載されている例については、リンク先のナレッジベース記事を参照してください。
ネイティブ形式では、SONICのフロント パネル インターフェイスはEthernet 0からEthernet Xまで名前が付けられており、Xは最後のフロント パネル ポートになります。 標準的な命名では、Ethernet x/y/zモードを使用します。x/yはスロット/ポート番号、zはブレイクアウト ポートに使用します。
インターフェイス命名形式の変更:デフォルトのインターフェイス命名モードをネイティブから標準に変更します。
- Linuxプロンプトから、「sonic-cli」を使用してSONIC CLIを起動します。
admin@sonic:~$ sonic-cli sonic#
- 「show interface-naming」で現在設定されているインターフェイス ステータス モードを表示します。
sonic# show interface-naming Interface naming mode is native sonic#
- インターフェイスのステータスを表示し、デフォルトのインターフェイス命名規則(ネイティブ命名)を確認します。「show interface status」(図1)

図1:show interface statusの例
- スイッチ構成を変更するには、「configure terminal」コマンドを実行します。
sonic# configure terminal sonic(config)#
- インターフェイスの命名モードを標準モードに変更するには、「interface-naming standard」コマンドを使用します。
sonic(config)# interface-naming standard Broadcast message: Interface naming mode has changed. Users running 'sonic-cli' are required to restart your session. sonic(config)#
メモ: モード変更を有効にするには、すべてのユーザーがSONIC CLIを終了し、再入力する必要があります。に戻ります。
- 「exit」で設定モードを終了します。
sonic(config)# exit sonic#
- 「exit」でSONIC CLIを終了します。
sonic# exit admin@sonic:~$
- 「sonic-cli」でSONIC CLIを再入力します。
admin@sonic:~$ sonic-cli sonic#
- 「show interface status」でインターフェイスのステータスを表示します。
sonic# show interface status
インターフェイス名がEthernet XからEth x/yに変更されていることに注意してください(図2)。

図2:標準モード:show interface statusの例
- 「write memory」で実行中の設定をスタートアップ設定に保存します。
sonic# write memory sonic#
個々のインターフェイス設定:設定モードに入り、インターフェイス設定モードに入ります。
- 「sonic-cli」でSONiC CLIを起動します。
admin@sonic:~$ sonic-cli sonic#
- 「show running-configuration interface Eth 1/30」でインターフェイス設定を表示します。
sonic# show running-configuration interface Eth 1/30 ! interface Eth1/30 mtu 9100 speed 25000 fec none shutdown
- 「configure terminal」で設定モードに入ります。
sonic# configure terminal sonic(config)#
- 「interface Eth 1/30」でインターフェイスEth 1/30設定モードに入ります。
sonic(config)# interface Eth 1/30 sonic(conf-if-Eth1/30)#
- 「no shutdown」でインターフェイスEth 1/30をNo shutします。
sonic(conf-if-Eth1/30)# no shutdown sonic(conf-if-Eth1/30)#
- 「IP address 10.1.1.2/24」で、インターフェイスEth 1/30にIPアドレスを設定します。
sonic(conf-if-Eth1/30)# ip address 10.1.1.2/24 sonic(conf-if-Eth1/30)#
- 「end」で設定モードを終了します。
sonic(conf-if-Eth1/30)# end sonic#
- 「show running-configuration interface Eth 1/30」でインターフェイス設定を表示します。
sonic# show running-configuration interface eth 1/30 ! interface Eth1/30 mtu 9100 speed 25000 fec none no shutdown ip address 10.1.1.2/24
- 「show ip interfaces」でIPインターフェイスを表示します。
sonic# show ip interfaces Flags: U-Unnumbered interface, A-Anycast IP ----------------------------------------------------------------------------------------------- Interface IP address/mask VRF Admin/Oper Flags ----------------------------------------------------------------------------------------------- Eth1/30 10.1.1.2/24 up/up sonic#
- 「show interface eth 1/30」で、Eth 1/30のインターフェイス ステータスを表示します。
(output truncated for brevity) sonic# show interface eth 1/30 Eth1/30 is up, line protocol is up Hardware is Eth IPV4 address is 10.1.1.2/24 Mode of IPV4 address assignment: MANUAL Mode of IPV6 address assignment: not-set Interface IPv6 oper status: Disabled IP MTU 9100 bytes LineSpeed 25GB, Auto-negotiation off FEC: DISABLED Last clearing of "show interface" counters: never …
- 「write memory」で実行中の設定をスタートアップ設定に保存します。
sonic# write memory sonic#
複数のインターフェイス設定:複数のインターフェイスを同時に設定するには、「interface range」オプションを使用します。showコマンドを使用してインターフェイスの範囲を表示するには、「range」キーワードは必要ありません。
例:
- ポート14~15を連続して設定する場合は、「interface range ethernet 1/1/14-1/1/15」となります。
- ポート3、10、19の非連続の範囲を設定する場合は、「interface range ethernet 3,10,19」となります。
- 連続と非連続の範囲が混在する場合は、「interface range ethernet 1/1/3, 1/1/14-1/1/15」のようになります。
- 複数のインターフェイスを表示するには、「range」オプションは必要ありません。Ethernet 1/1~1/3、1/5を表示するには、コマンド「show interface Eth 1/1-1/3,1/5」を使用します。
(output truncated for brevity) sonic# show interface Eth 1/1-1/3,1/5 Eth1/1 is down, line protocol is down, reason admin-down Hardware is Eth, address is 0c:02:22:c7:00:08 Mode of IPV4 address assignment: not-set ... Output statistics: 0 packets, 0 octets 0 Multicasts, 0 Broadcasts, 0 Unicasts 0 error, 0 discarded, 0 Oversize Eth1/2 is down, line protocol is down, reason admin-down Hardware is Eth, address is 0c:02:22:c7:00:08 Mode of IPV4 address assignment: not-set ... Output statistics: 0 packets, 0 octets 0 Multicasts, 0 Broadcasts, 0 Unicasts 0 error, 0 discarded, 0 Oversize Eth1/3 is down, line protocol is down, reason admin-down Hardware is Eth, address is 0c:02:22:c7:00:08 Mode of IPV4 address assignment: not-set ... Output statistics: 0 packets, 0 octets 0 Multicasts, 0 Broadcasts, 0 Unicasts 0 error, 0 discarded, 0 Oversize Eth1/5 is down, line protocol is down, reason admin-down Hardware is Eth, address is 0c:02:22:c7:00:08 Mode of IPV4 address assignment: not-set ... Output statistics: 0 packets, 0 octets 0 Multicasts, 0 Broadcasts, 0 Unicasts 0 error, 0 discarded, 0 Oversize sonic(config)# end
- 「configure terminal」コマンドを実行します。
sonic# configure terminal sonic(config)#
- 「interface range Eth1/1-1/3,1/5,1/7-1/9」を使用して、インターフェイスEthernet 1/1~1/3、1/5、/1/7~1/9を設定します。
sonic(config)# interface range eth 1/1-1/3,1/5,1/7-1/9 %Info: Configuring only existing interfaces in range sonic(conf-if-range-eth**)#
- 「no shut」でインターフェイスをno shutに設定します。
sonic(conf-if-range-eth**)# no shutdown sonic(conf-if-range-eth**)#
- 「switchport access vlan 1」でアクセス モードvlan 1のインターフェイスを設定します。
sonic(conf-if-range-eth**)# switchport access vlan 1 sonic(conf-if-range-eth**)#
- 「show interface status」でユーザー設定を確認します(図3)。
メモ: [Oper]列と[Reason]列で、設定したインターフェイス範囲のステータスが変更されています。
図3:Show interface statusの例
- 「show vlan 1」でVLAN 1インターフェイスの割り当てを確認します(図4)。
図4:Show vlan 1の例
- 「write memory」で実行中の設定をスタートアップ設定に保存します。
sonic# write memory sonic#
詳細については、『Dell Technologies Enterprise SONiC User Guide Release Documentation』を参照するか、デル・テクノロジーズのテクニカル サポートにお問い合わせください。
Affected Products
Networking, Enterprise SONiC DistributionArticle Properties
Article Number: 000202172
Article Type: How To
Last Modified: 23 May 2024
Version: 5
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.