Dell Networking SONiC OS L2 和 L3 交換器設定檔

Summary: 本文說明 Dell Networking SONiC 中的 L2 和 L3 交換器設定檔群組態。

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 SONIC 中的 L2 和 L3 交換器設定檔是什麼?
檢視交換器中的交換器設定檔和現有的原廠預設值
變更預設交換器設定檔
範例輸出

 

DELL SONIC 中的 L2 和 L3 交換器設定檔是什麼?

Dell Networking Sonic 可讓我們選擇兩個交換器設定檔:L2 和 L3

  • L3 交換器設定檔提供與路由器組態非常相似的預設組態。在全新安裝中,Dell Sonic OS 具有 L3 交換器設定檔。
  • L2 交換器設定檔提供與 Layer 2 交換器組態非常相似的預設組態

組態模式 L2 或 L3 設定檔沒有差異。若為原廠預設值或介面預設值,則會定義交換器的預設組態。

  • 使用 L2 設定檔進行可擴充的 L2 部署,以設定更大的 MAC 表格大小。
  • 在大多數交換器部署中使用 L3 設定檔來設定較大的 L3 表格大小。

 

視交換器型號和 DELL SONiC 版本而定,每個系統的 VLAN 成員數目可能會在 L2 和 L3 設定檔之間有所不同。如需詳細資訊,請查看相容性表格。

 


下表說明 L2 和 L3 設定檔的核心差異。
L2 設定檔 (Layer 2 交換器) L3 設定檔 (第 3 層路由器)
預設的跨距樹狀目錄通訊協定為 Rapid-pvst Spanning Tree (跨距樹狀結構) 預設為未啟用
Vlan 1 預設為存在 在預設組態中,沒有 vlan
所有介面預設為 Vlan 1 的存取埠 所有埠預設為非交換器埠介面
所有介面預設為無關機 所有介面預設為關機
增加 L2 轉送表 增加 L3 路由表
不支援變更路由規模 UFT 模式 支援變更路由規模 UFT 模式

 

警示:變更預設設定檔時,會清除現有的組態,並中斷服務。請確定已在停機時間完成變更,且組態已視需要進行備份
 

檢視交換器中的交換器設定檔和現有的原廠預設值

若要檢視交換器中的交換器設定檔,請使用下列命令。


命令語法
命令 說明
admin@SONIC:~$ sonic-cli 輸入 Dell 管理架構命令介面 (CLI)
SONIC# show switch-profiles 檢視交換器中的交換器設定檔和現有的原廠預設值

範例輸出 
SONIC# show switch-profiles 
Factory Default: l3
 
Profile Name     Description
-------------------------------------------------------------
l2               Layer 2 Switch Configuration
l3               Layer 3 Router Configuration
 
 

變更預設交換器設定檔

使用以下命令來變更交換器中的預設設定檔。


命令語法
命令 說明
admin@SONIC:~$ sonic-cli 輸入 Dell mf-cli
SONIC# configure terminal 進入設定模式
SONIC(config)# factory default profile l2 將預設設定檔變更為 l2 (交換器)。手動輸入 l2
SONIC(config)# factory default profile l3 將預設設定檔變更為 l3 (路由器)。手動輸入 l3
 
 

範例輸出

以下範例會將交換器變更為 L2 設定檔 (即切換設定檔)
SONIC(config)# factory default profile l2
Device configuration will be erased. You may lose connectivity.
Continue? [y/N]: y                                                                               

System is not ready - Core services are down 

Applying factory default configuration.
This may take 120--180 seconds and also result in a reboot.

System is ready 

以下範例會將交換器變更為 L3 設定檔 (即路由設定檔)
SONIC(config)# factory default profile l3
Device configuration will be erased. You may lose connectivity.
Continue? [y/N]: y

 System is not ready - one or more services are not up 
Applying factory default configuration.
This may take 120--180 seconds and also result in a reboot.

System is ready 
 

 

Affected Products

Enterprise SONiC Distribution, Dell EMC Networking N3200-ON, PowerSwitch S5212F-ON, PowerSwitch S5224F-ON, PowerSwitch S5232F-ON, PowerSwitch S5248F-ON, PowerSwitch S5296F-ON, PowerSwitch Z9100-ON, PowerSwitch Z9264F-ON, PowerSwitch Z9332F-ON , PowerSwitch Z9432F-ON, PowerScale Switch S5232F ...
Article Properties
Article Number: 000209787
Article Type: How To
Last Modified: 26 Sept 2023
Version:  3
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.