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 交换机配置文件提供与第 2 层交换机配置非常相似的默认配置

配置模式 L2 或 L3 配置文件没有差异。如果我们执行出厂默认设置或接口默认设置,它将定义交换机的默认配置。

  • 使用 L2 配置文件进行可扩展的 L2 部署,以配置更大的 MAC 表大小。
  • 对于大多数交换机部署,请使用 L3 配置文件配置更大的 L3 表大小。

 

每个系统的 VLAN 成员数可能会因交换机型号和 DELL SONiC 版本的不同而在 L2 和 L3 配置文件之间有所不同。有关详细信息,请查看兼容性列表。

 


下表说明了 L2 和 L3 配置文件之间的核心差异。
L2 配置文件(第 2 层交换机) L3 配置文件(第 3 层路由器)
默认生成树协议为 rapid-pvst 默认情况下,生成树未启用
默认情况下存在 Vlan 1 在默认配置中,没有 vlan
默认情况下,所有接口都是 Vlan 1 的访问端口 默认情况下,所有端口均为非交换机端口接口
默认情况下,所有接口均未关闭 默认情况下关闭所有接口
增加 L2 转发表 增加 L3 路由表
不支持更改路由扩展 UFT 模式 支持更改路由扩展 UFT 模式

 

注意:更改默认配置文件时,将擦除现有配置并关闭服务。确保在停机期间完成更改,并根据需要备份配置
 

查看交换机中的交换机配置文件和现有的出厂默认设置

要查看交换机中的交换机配置文件,请使用以下命令。


命令语法
命令 说明
admin@SONIC:~$ sonic-cli 输入戴尔管理框架 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 Sep 2023
Version:  3
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.