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

Dell Networking Sシリーズ:基本のインターフェイス設定 – SONIC 4.0

Summary: SONIC 4.0インターフェイスの基本設定方法。

This article applies to   This article does not apply to 

Instructions

Dell Networking Sシリーズ:基本のインターフェイス設定 - SONIC 4.0


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

インターフェイス名がEthernet XからEth x/yに変更されていることに注意してください(図2)。
標準モード:show interface statusの例
図2:標準モード:show interface statusの例
  1. 「write memory」で実行中の設定をスタートアップ設定に保存します。
sonic# write memory
sonic#

個々のインターフェイス設定:設定モードに入り、インターフェイス設定モードに入ります。
  1. 「sonic-cli」でSONiC CLIを起動します。
admin@sonic:~$ sonic-cli
sonic#
 
  1. 「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
 
  1. 「configure terminal」で設定モードに入ります。
sonic# configure terminal
sonic(config)#
 
  1. 「interface Eth 1/30」でインターフェイスEth 1/30設定モードに入ります。
sonic(config)# interface Eth 1/30
sonic(conf-if-Eth1/30)#
 
  1. 「no shutdown」でインターフェイスEth 1/30をNo shutします。
sonic(conf-if-Eth1/30)# no shutdown
sonic(conf-if-Eth1/30)#
 
  1. 「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)#
 
  1. 「end」で設定モードを終了します。
sonic(conf-if-Eth1/30)# end
sonic#
 
  1. 「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
 
  1. 「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#
 
  1. 「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
…
 
  1. 「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」のようになります。
  1. 複数のインターフェイスを表示するには、「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
 
  1. 「configure terminal」コマンドを実行します。
sonic# configure terminal
sonic(config)#
 
  1. 「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**)#
 
  1. 「no shut」でインターフェイスをno shutに設定します。
sonic(conf-if-range-eth**)# no shutdown
sonic(conf-if-range-eth**)#
 
  1. 「switchport access vlan 1」でアクセス モードvlan 1のインターフェイスを設定します。
sonic(conf-if-range-eth**)# switchport access vlan 1
sonic(conf-if-range-eth**)#
 
  1. 「show interface status」でユーザー設定を確認します(図3)。
 
メモ: [Oper]列と[Reason]列で、設定したインターフェイス範囲のステータスが変更されています。
Show interface statusの例
図3:Show interface statusの例
  1. 「show vlan 1」でVLAN 1インターフェイスの割り当てを確認します(図4)。
Show vlan 1の例
図4:Show vlan 1の例 
  1. 「write memory」で実行中の設定をスタートアップ設定に保存します。
sonic# write memory
sonic#

詳細については、『Dell Technologies Enterprise SONiC User Guide Release Documentation』を参照するか、デル・テクノロジーズのテクニカル サポートにお問い合わせください。

Affected Products

Networking, Enterprise SONiC Distribution