dell交换机配置

文档链接:

https://www.dell.com/support/incidents-online/zh-cn/contactus/Dynamic

https://www.dell.com/support/home/zh-cn/product-support/product/networking-s5248f-on/docs

 

在 SmartFabric 模式下,PowerEdge MX 交换机作为第二层 I/O 聚合设备运行。OpenManage Enterprise - Modular 界面支持大多数交

换机配置设置。使用 SmartFabric 模式配置您的交换机。

SmartFabric 模式支持所有 OS10 show 命令和以下 CLI 配置命令子集:其他 CLI 配置命令不可用。

• clock — 配置时钟参数。

• end — 退出到 EXEC 模式。

• exit — 退出当前模式

• help — 显示可用命令。

• hostname — 设置系统主机名称。

• interface — 配置管理接口、VLAN 接口或一系列接口。

• ip name-server — 配置名称服务器的 IP 地址;最多支持三个名称服务器。

• logging — 配置系统日志记录。

• management route — 配置 IPv4 或 IPv6 管理路由。

• no — 在配置模式下删除或禁用命令。

• ntp — 配置网络时间协议。

• snmp-server — 配置 SNMP 服务器。

• spanning-tree

• disable — 全局禁用生成树。

• mac-flush-timer — 设置用于刷新 MAC 地址条目的时间。

• mode — 启用生成树模式,如 RSTP 或 MST。

• mst — 配置多个生成树 (MST) 模式。

• rstp — 配置快速生成树协议 (RSTP) 模式。

• vlan — 在 VLAN 范围上配置生成树。

• username — 创建或修改用户凭据。

• SupportAssist — 配置 SupportAssist 相关设置。

• Security — 配置与网络安全对应的功能。

• Fibre Channel — 配置与光纤通道接口对应的功能。

 

1,登录检查版本

OS10# show version

 

no

在 EXEC 模式下禁用或删除命令。

语法no [alias | debug | support-assist-activity | terminal]

参数• alias — 移除别名定义。

• debug — 禁用调试。

• support-assist-activity — 与 SupportAssist 相关的活动。

• terminal — 重置终端设置。

默认未配置

命令模式EXEC

使用情况信息在 EXEC 模式下使用此命令可禁用或移除配置。在 CONFIGURATION 模式下使用 no ? 可查看可用的命令。

示例

OS10# no alias goint

 

两种交换机模式:SmartFabric Mode 和 Full-Switch

 

交换机模式:

OS10(config)# do show switch-operating-mode 

  

Switch-Operating-Mode : SmartFabric Mode

 

将交换机设置为全交换

switch-operating mode

将交换机的操作模式设置为 SmartFabric Director 模式。

语法switch-operating-mode Full-Switch

参数• Full-Switch — 将操作模式设置为全交换。

默认未配置

命令模式CONFIGURATION 模式

使用情况信息无。

示例

OS10(config)# switch-operating-mode Full-Switch

 

以太网接口

默认情况下,以太网端口接口处于启用状态。要禁用以太网接口,请使用 shutdown 命令。使用 show interface status 命令

可查看接口的状况。

要重新启用已禁用的接口,请使用 no shutdown 命令。

1. 在 Global CONFIGURATION 模式下配置以太网端口接口。

interface ethernet node/slot/port[:subport]

2. 在 INTERFACE 模式下禁用并重新启用以太网端口接口。

shutdown

no shutdown

禁用以太网端口接口

OS10(config)# interface ethernet 1/1/1

OS10(conf-if-eth1/1/1)# shutdown

启用以太网端口接口

OS10(config)# interface ethernet 1/1/1

OS10(conf-if-eth1/1/1)# no shutdown

 

查看端口配置信息

OS10(config)# interface ethernet 1/1/3:2

OS10(conf-if-eth1/1/3:2)# show configuration

!

interface ethernet1/1/3:2

no shutdown

 

查看交换机端口组

OS10# show port-group

 

查看L3端口

OS10# show ip interface brief

 

查看VLAN

OS10# show vlan 

 

 

 

 

 

1. 配置管理 IP 地址。

2. 配置管理路由。

3. 配置用户名和密码。

 

一,配置管理 IP 地址

要远程访问 OS10,请向管理端口分配 IP 地址。使用管理接口进行带外 (OOB) 交换机管理。

1. 从 CONFIGURATION 模式配置管理接口。

interface mgmt 1/1/1

2. 默认情况下,DHCP 客户端在管理接口上处于启用状态。在 INTERFACE 模式下禁用 DHCP 客户端操作。

no ip address dhcp

3. 在 INTERFACE 模式下,在管理接口上配置 IPv4 或 IPv6 地址。

ip address A.B.C.D/mask

ipv6 address A:B/prefix-length

4. 在 INTERFACE 模式下启用管理接口。

no shutdown

 

例如:配置管理接口

OS10(config)# interface mgmt 1/1/1

OS10(conf-if-ma-1/1/1)# no ip address dhcp

OS10(conf-if-ma-1/1/1)# ip address 10.1.1.10/24

OS10(conf-if-ma-1/1/1)# no shutdown

 

二、配置管理路由

要设置 OS10 的远程访问,请在将 IPv4 或 IPv6 地址分配给管理端口后配置管理路由。管理端口使用默认管理路由与其他网络进行通

信。管理路由允许您将管理流量与数据流量分开。

1. (可选)确保在 INTERFACE 模式下的管理接口上禁用了 DHCP 客户端。

no ip address dhcp

2. 在 CONFIGURATION 模式下为管理端口配置管理路由。重复命令以配置多个路由。

management route {ipv4-address/mask | ipv6-address/prefix-length}

{forwarding-router-address | managementethernet}

• ipv4-address/mask — 以点分隔的十进制格式 (A.B.C.D) 输入 IPv4 网络地址,然后以前缀长度格式 (/x) 输入子网掩码。

• ipv6-address/prefix-length — 以 x:x:x:x::x 格式输入 IPv6 地址,前缀长度为 /x 格式。前缀范围是 /0 至 /128。

• forwarding-router-address — 输入转发路由器的下一中继站 IPv4/IPv6 地址,用作连接到不同子网的管理网关。

• managementethernet — 针对配置的 IPv4/IPv6 子网在管理端口上发送流量。

注: 管理路由独立于 IPv4 和 IPv6 路由,前者用于通过管理端口管理交换机。

 

配置管理路由

OS10(config)# management route 10.10.20.0/24 10.1.1.1

OS10(config)# management route 172.16.0.0/16 managementethernet

OS10(config)# management route 0.0.0.0/0 10.226.26.247

三、配置用户名和密码

要设置对 OS10 的远程访问,在配置管理端口和默认路由后创建用户名和密码。用户角色是必需的条目。

以明文形式输入密码。它会转换为正在运行的配置中的 SHA-512 格式。密码必须包含至少 9 个字符,包括字母数字和特殊字符,以

及以前用于同一用户名的密码中至少有五个不同的字符;例如:

OS10(config)# username admin password alpha404! role sysadmin

 

为了向后兼容 OS10 版本 10.3.1E 及更低版本,支持以 MD-5、SHA-256 和 SHA-512 格式输入密码。要增加所需的密码强度,请使用

password-attributes 命令。

 

• 在 CONFIGURATION 模式下创建用户名和密码。

username username password password role role

• username username — 输入文本字符串。最多 32 个字母数字字符;最少 1 个字符。

• password password — 输入文本字符串。最多 32 个字母数字字符;最少 9 个字符。

• role role — 输入用户角色:

• sysadmin — 对系统中所有命令的完全访问权限、对操作文件系统的命令的独占访问权限,以及对系统 shell 的访问权

限。系统管理员可以创建用户 ID 和用户角色。默认权限级别为 15。

• secadmin — 对设置安全策略和系统访问权限的配置命令的完全访问权限,如密码强度、AAA 授权和加密密钥。安全管

理员可以显示安全信息,如加密密钥、登录统计信息和日志信息。默认权限级别为 15。

• netadmin — 对管理流经交换机(如路由、接口和 ACL)的流量的配置命令的完全访问权限。网络管理员无法访问安全

功能的配置命令或查看安全信息。默认权限级别为 15。

• netoperator — EXEC 模式访问,以使用有限的显示命令集。网络操作员无法修改交换机上的任何配置设置。默认权限级别为 1。

 

注: 要更改系统管理员密码,请使用新密码重新输入管理员用户名的命令。

OS10(config)# username admin password beta@1 role sysadmin

 

 

CONFIGURATION 模式

首次登录 OS10 时,您将处于 EXEC 模式。要访问 CONFIGURATION 模式,请输入 configure terminal 命令。使用

CONFIGURATION 模式来管理接口、协议和功能。

OS10# configure terminal

OS10(config)#

 

 

例如,在进入事务模式之前,您可以检查是否未输入任何新的配置命令。如果 show 命令未返回输出,则 candidateconfiguration

和 running-configuration 文件是相同的。然后启动事务模式、配置新设置,并查看候选配置与正在运行的

配置之间的差异。确定是否要提交对正在运行的配置的更改。要删除未提交的更改,请使用 discard 命令。

查看候选配置与正在运行的配置之间的差异

OS10# show diff candidate-configuration running-configuration

OS10#

OS10# start transaction

OS10# configure terminal

OS10(config)# interface vlan 100

OS10(conf-if-vl-100)# exit

OS10(config)# interface ethernet 1/1/15

OS10(conf-if-eth1/1/15)# switchport mode trunk

OS10(conf-if-eth1/1/15)# switchport trunk allowed vlan 100

OS10(conf-if-eth1/1/15)# end

OS10# show diff candidate-configuration running-configuration

!

interface ethernet1/1/15

switchport mode trunk

switchport trunk allowed vlan 100

!

interface vlan100

no shutdown

OS10#

在事务模式下的候选配置中提交配置更改

1. 从 EXEC 模式更改为基于事务的配置模式。

start transaction

2. 输入配置命令。例如,从 INTERFACE 模式下启用接口。

interface ethernet 1/1/1

no shutdown

3. 将配置更改保存到正在运行的配置。

do commit

输入 commit 命令后,当前 OS10 会话将切换回自动提交所有配置更改的默认行为。

OS10# start transaction

OS10# configure terminal

OS10(config)#

OS10(config)# interface ethernet 1/1/1

OS10(config-if-eth1/1/1)# no shutdown

OS10(config-if-eth1/1/1)# do commit

 

 

四、创建VLAN

 

 

OS10#

OS10# start transaction  进入事务型,并不是能马上生效,需要提交生效

OS10# configure terminal

OS10(config)# interface vlan 100

OS10(conf-if-vl-100)# exit

 

 

五、端口添加VLAN

OS10(config)# interface ethernet 1/1/15

OS10(conf-if-eth1/1/15)# switchport mode trunk

OS10(conf-if-eth1/1/15)# switchport trunk allowed vlan 100

OS10(conf-if-eth1/1/15)# end

 

六,事务模式

例如,在进入事务模式之前,您可以检查是否未输入任何新的配置命令。如果 show 命令未返回输出,则 candidateconfiguration和 running-configuration 文件是相同的。然后启动事务模式、配置新设置,并查看候选配置与正在运行的配置之间的差异。确定是否要提交对正在运行的配置的更改。要删除未提交的更改,请使用 discard 命令。

OS10# show diff candidate-configuration running-configuration

!

interface ethernet1/1/15

switchport mode trunk

switchport trunk allowed vlan 100

!

interface vlan100

no shutdown

OS10#

 

在事务模式下的候选配置中提交配置更改

1. 从 EXEC 模式更改为基于事务的配置模式。

start transaction

2. 输入配置命令。例如,从 INTERFACE 模式下启用接口。

interface ethernet 1/1/1

no shutdown

3. 将配置更改保存到正在运行的配置。

do commit

输入 commit 命令后,当前 OS10 会话将切换回自动提交所有配置更改的默认行为。

OS10# start transaction

OS10# configure terminal

OS10(config)#

OS10(config)# interface ethernet 1/1/1

OS10(config-if-eth1/1/1)# no shutdown

OS10(config-if-eth1/1/1)# do commit

 

七,显示管理端口IPV4的路由

OS10# show ip management-route

Destination Gateway State Source

-----------------------------------------------------------------

192.168.10.0/24 managementethernet Connected Connected

 

八,显示交换机端口情况

OS10# show interface status 

  

--------------------------------------------------------------------------------------------------

Port            Description     Status   Speed    Duplex   Mode Vlan Tagged-Vlans

--------------------------------------------------------------------------------------------------

Eth 1/1/1                       up       10G      full     T         -

Eth 1/1/2                       down     0        full     T         -

Eth 1/1/3                       up       10G      full     T         -

Eth 1/1/4                       down     0        full     T         -

Eth 1/1/5                       up       10G      full     T         -

Eth 1/1/6                       down     0        full     T         -

Eth 1/1/7                       down     0        full     T         -

Eth 1/1/8                       down     0        full     T         -

Eth 1/1/9                       down     0        full     T         -

Eth 1/1/10                      down     0        full     T         -

Eth 1/1/11                      down     0        full     T         -

Eth 1/1/12                      down     0        full     T         -

Eth 1/1/13                      down     0        full     T         -

Eth 1/1/14                      down     0        full     T         -

Eth 1/1/15                      down     0        full     T         -

--------------------------------------------------------------------------------------------------

九,端口拆分

P298

配置 QSFP28 端口组接口

OS10(config)# port-group 1/1/13

OS10(conf-pg-1/1/13)# mode Eth 25g-4x

OS10(conf-pg-1/1/13)# exit

 

  

 

 

 

十、动态LACP

https://www.dell.com/support/kbdoc/zh-cn/000121857/%e5%a6%82%e4%bd%95%e5%9c%a8dell-networking-powerconnect%e4%ba%a4%e6%8d%a2%e6%9c%ba%e4%b8%8a%e5%88%9b%e5%bb%ba%e9%93%be%e8%b7%af%e8%81%9a%e5%90%88%e7%bb%84-lag

2017年:

https://www.xuexila.com/diannao/diy/2870911.html

 

 

P240 官方文档

LACP 使端口可动态捆绑为端口通道的成员。要配置 LACP 操作的端口,请使用 channel-group mode {active|passive} 命令。主动和被动模式允许 LACP 在端口之间进行协商,以确定是否可以根据配置设置来形成端口通道。

 

进入全局模式

OS10(config)#

创建聚合组并进入聚合接口模式

OS10(config)# interface port-channel 100

OS10(conf-if-po-100)# exit

将端口1/1/2加入聚合组100并指定聚合模式为active

OS10(config)# interface ethernet 1/1/2

OS10(conf-if-eth1/1/2)# channel-group 100 mode active

聚合接口下进行端口配置(聚合接口端口模式)

interface ethernet1/1/15

switchport mode trunk

switchport trunk allowed vlan 151

 

删除端口通道

OS10(config)# interface port-channel 10

OS10(conf-if-po-10)# no interface port-channel 10

 

如何验证端口通道状态

console# show interfaces port-channel 1

 

 

四根40G的聚合-盐田开发测试汇聚

+interface Bridge-Aggregation101

+ port link-type trunk

+ undo port trunk permit vlan 1

+ port trunk permit vlan 1581

+ link-aggregation mode dynamic

十一、开发测试isilon 前端25G交换机配置

#show run

(1)查看接口情况

OS10(conf-if-eth1/1/56)# do show interface status 

  

--------------------------------------------------------------------------------------------------

Port            Description     Status   Speed    Duplex   Mode Vlan Tagged-Vlans

--------------------------------------------------------------------------------------------------

Eth 1/1/1                       down     0        full     A    1581 - 

Eth 1/1/2                       up       25G      full     A    1581 - 

Eth 1/1/3                       up       25G      full     A    1581 - 

Eth 1/1/4                       up       25G      full     A    1581 - 

Eth 1/1/5                       up       25G      full     A    1581 - 

Eth 1/1/6                       up       25G      full     A    1581 - 

Eth 1/1/7                       down     0        full     A    1    - 

Eth 1/1/8                       down     0        full     A    1    - 

Eth 1/1/9                       down     0        full     A    1    - 

 

。。。。。。。。

Eth 1/1/44                      down     0        full     A    1    - 

Eth 1/1/45                      down     0        full     A    1    - 

Eth 1/1/46                      down     0        full     A    1    - 

Eth 1/1/47                      down     0        full     A    1    - 

Eth 1/1/48                      down     0        full     A    1    - 

Eth 1/1/49                      down     0        full     A    1    - 

Eth 1/1/50                      down     0        full     A    1    - 

Eth 1/1/51                      down     0        full     A    1    - 

Eth 1/1/52                      down     0        full     A    1    - 

Eth 1/1/53                      down     0        full     -

Eth 1/1/54                      down     0        full     -

Eth 1/1/55                      down     0        full     -

Eth 1/1/56                      down     0        full     -

 

#因为接口Eth 1/1/53-1/1/56是100G端口,而实际接的是40G线缆

 

(2)查看端口组情况

OS10(conf-if-eth1/1/56)# do show port-group

  

Port-group            Mode           Ports     FEM

port-group1/1/1       Eth 25g-4x     1  2  3  4     -  

port-group1/1/2       Eth 25g-4x     5  6  7  8     -  

port-group1/1/3       Eth 25g-4x     9  10  11  12     -  

port-group1/1/4       Eth 25g-4x     13  14  15  16     -  

port-group1/1/5       Eth 25g-4x     17  18  19  20     -  

port-group1/1/6       Eth 25g-4x     21  22  23  24     -  

port-group1/1/7       Eth 25g-4x     25  26  27  28     -  

port-group1/1/8       Eth 25g-4x     29  30  31  32     -  

port-group1/1/9       Eth 25g-4x     33  34  35  36     -  

port-group1/1/10      Eth 25g-4x     37  38  39  40     -  

port-group1/1/11      Eth 25g-4x     41  42  43  44     -  

port-group1/1/12      Eth 25g-4x     45  46  47  48     -  

port-group1/1/13      Eth 100g-2x    49  50     -  

port-group1/1/14      Eth 100g-2x    51  52     -  

port-group1/1/15      Eth 100g-1x    53         -  

port-group1/1/16      Eth 100g-1x    54         -  

port-group1/1/17      Eth 100g-1x    55         -  

port-group1/1/18      Eth 100g-1x    56         -  

#port-group1/1/15-1/1/18对应端口是Eth1/1/53-1/1/56模式是100g-1x,这里需要修改模式为40g-1x

 

(3)修改端口组mode

#port-group1/1/15-1/1/18需要修改模式为40g-1x

 

OS10(config)# port-group 1/1/18

OS10(conf-pg-1/1/18)# show configuration 

!

port-group 1/1/18

 mode Eth 100g-1x

OS10(conf-pg-1/1/18)# 

OS10(conf-pg-1/1/18)# mode Eth 

100g-1x 50g-2x  40g-1x  25g-4x  10g-4x  

OS10(conf-pg-1/1/18)# mode Eth 40g-1x 

OS10(conf-pg-1/1/18)# 

OS10(conf-pg-1/1/18)# 

OS10(conf-pg-1/1/18)# show configuration 

candidate |         

OS10(conf-pg-1/1/18)# show configuration 

!

port-group 1/1/18

 mode Eth 40g-1x

OS10(conf-pg-1/1/18)#do write

#分别把剩余的3个端口组修改成40g

OS10(config)# do show port-group 

  

Port-group            Mode           Ports     FEM

port-group1/1/1       Eth 25g-4x     1  2  3  4     -  

port-group1/1/2       Eth 25g-4x     5  6  7  8     -  

port-group1/1/3       Eth 25g-4x     9  10  11  12     -  

port-group1/1/4       Eth 25g-4x     13  14  15  16     -  

port-group1/1/5       Eth 25g-4x     17  18  19  20     -  

port-group1/1/6       Eth 25g-4x     21  22  23  24     -  

port-group1/1/7       Eth 25g-4x     25  26  27  28     -  

port-group1/1/8       Eth 25g-4x     29  30  31  32     -  

port-group1/1/9       Eth 25g-4x     33  34  35  36     -  

port-group1/1/10      Eth 25g-4x     37  38  39  40     -  

port-group1/1/11      Eth 25g-4x     41  42  43  44     -  

port-group1/1/12      Eth 25g-4x     45  46  47  48     -  

port-group1/1/13      Eth 100g-2x    49  50     -  

port-group1/1/14      Eth 100g-2x    51  52     -  

port-group1/1/15      Eth 40g-1x     53         -  

port-group1/1/16      Eth 40g-1x     54         -  

port-group1/1/17      Eth 40g-1x     55         -  

port-group1/1/18      Eth 40g-1x     56         -  

 

(4)1/1/53-1/1/56四个口一起,创建聚合。

interface port-channel101

 no shutdown

 switchport mode trunk

 switchport access vlan 1

 switchport trunk allowed vlan 1581

!

(5)将端口加入聚合

将端口1/1/56加入聚合组100并指定聚合模式为active

OS10(config)# interface ethernet 1/1/56

OS10(conf-if-eth1/1/2)# channel-group 101 mode active

#查看接口配置

OS10(config)# interface range ethernet 1/1/53:1-1/1/56:1

OS10(conf-range-eth1/1/53:1-1/1/56:1)# show configuration 

!

interface ethernet1/1/53:1

 no shutdown

 channel-group 101 mode active

 no switchport

!

interface ethernet1/1/54:1

 no shutdown

 channel-group 101 mode active

 no switchport

!

interface ethernet1/1/55:1

 no shutdown

 channel-group 101 mode active

 no switchport

!

interface ethernet1/1/56:1

 no shutdown

 channel-group 101 mode active

 no switchport

 

#查看聚合

OS10(config)# do show port-channel summary 

  

Flags:  D - Down    I - member up but inactive    P - member up and active

        U - Up (port-channel)    F - Fallback Activated

--------------------------------------------------------------------------------

Group Port-Channel           Type     Protocol  Member Ports

--------------------------------------------------------------------------------

101  port-channel101  (U)     Eth      DYNAMIC   1/1/53:1(P) 1/1/54:1(P) 1/1/55:1(P) 1/1/56:1(P) 

#查看端口聚合详细情况

OS10(config)# do show interface port-channel 101

Port-channel 101 is up, line protocol is up

Address is c0:3e:ba:dc:96:66, Current address is c0:3e:ba:dc:96:66

Interface index is 72

Internet address is not set

Mode of IPv4 Address Assignment: not set

Interface IPv6 oper status: Disabled

MTU 1532 bytes, IP MTU 1500 bytes

LineSpeed 160G

Minimum number of links to bring Port-channel up is 1

Maximum active members that are allowed in the portchannel is 32

Members in this channel: Eth 1/1/53:1,1/1/54:1,1/1/55:1,1/1/56:1

ARP type: ARPA, ARP Timeout: 60

Last clearing of "show interface" counters: 18:27:32

Queuing strategy: fifo

Input statistics:

     10238403 packets, 5889803145 octets

     1 64-byte pkts, 5860144 over 64-byte pkts, 758952 over 127-byte pkts

     188879 over 255-byte pkts, 56868 over 511-byte pkts, 3373559 over 1023-byte pkts

     3617790 Multicasts, 2728424 Broadcasts, 3891232 Unicasts

     0 runts, 0 giants, 0 throttles

     0 CRC, 0 overrun, 0 discarded

Output statistics:

     459621 packets, 34483187 octets

     4592 64-byte pkts, 439744 over 64-byte pkts, 7580 over 127-byte pkts

     7694 over 255-byte pkts, 9 over 511-byte pkts, 2 over 1023-byte pkts

     75491 Multicasts, 33 Broadcasts, 384097 Unicasts

     0 throttles, 0 discarded, 0 Collisions,  wred drops

Rate Info(interval  seconds):

     Input 0 Mbits/sec, 101 packets/sec, 0% of line rate

     Output 0 Mbits/sec, 4 packets/sec, 0% of line rate

Time since last interface status change: 15:28:34

 

 

 

 

 

 

 

 

 

 

posted on 2021-06-28 17:22  微子天明  阅读(1533)  评论(0编辑  收藏  举报

导航