DELL交换机

Posted lh438369

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了DELL交换机相关的知识,希望对你有一定的参考价值。

1.配置登陆用户
username admin password admin123 privilege 15

2.开启日志 loggin on
开启日志记录到buffer: logging buffer
关闭日志通过console口输出至屏幕: no loging monitor
关闭console口的日志 :nologging console
设定日志级别: logging trap level
例:
DellEMC#show running-config logging
!
logging buffered 524288 debugging
service timestamps log datetime msec
service timestamps debug datetime msec
!
logging trap debugging
logging facility user
logging source-interface Loopback 0
logging 10.10.10.4
3.开启登陆统计
login statistics enable
login concurrent-session limit 4 限制4个用户会话登陆
4.查看命令历史
show command-history
5.恢复出厂设置
restore factory-defaults stack-unit 1 all
6.lacp配置
interface port-channel 32
switchport
interface TenGigabitethernet 3/16/1
no shutdown
port-channel-protocol lacp
port-channel 32 mode active
7.开启lldp发现协议
protocol lldp
8.ospf的运行
router ospf 4
router-id 4.4.4.4
network 4.4.4.0/28 area 1
!
ipv6 router ospf 999
default-information originate always
router-id 10.10.10.10
ospf认证:接口下 ip ospf authentication-key key
9.PBR列表
track 3 ip host 42.1.1.2 reachability
probe icmp
ip redirect-list test
redirect 42.1.1.2 track 3 tcp 155.55.2.0/24 222.22.2.0/24
redirect 42.1.1.2 track 3 tcp any any
接口下调用:ip redirect-group test
track跟踪
track 10 ip host 172.16.255.98 reachability
delay down 10
delay up 10
probe icmp
!
track reachability refresh 15
10.配置 Access 模式
创建 vlan10,并把 te0/1 和 te0/2 以 access 模式划入 vlan10
DELL(conf)#interface range te0/1 - 2 (注意"-"的前后各有一个空格)
DELL(conf-if-range-te-0/1-2)#switchport (切换到交换模式)
DELL(conf-if-range-te-0/1-2)#no shutdown (启用接口)
DELL(conf-if-range-te-0/1-2)#exit
DELL(conf)#interface vlan 10 (这一条命令用于同时创建 vlan 并进入 vlan 接口配置模式)
DELL(conf-if-vl-10)#untagged te0/1,2 (vlan10 对于 te0/1,2 是不带 vlan id 标志的)
DELL(conf-if-vl-10)#no shutdown
11.配置 Trunk 模式
下例把 te0/24 配置成 Trunk 模式,两个 vlan10 和 20 下针对 te0/24 口都是 tagged 的
DELL#config
DELL(conf)#interface te0/24
DELL(conf-if-range-te-0/24)#switchport
DELL(conf-if-range-te-0/24)#no shutdown
DELL(conf-if-range-te-0/24)#exit
DELL(conf)#interface vlan 10
DELL(conf-if-vl-10)#tagged te0/24
DELL(conf-if-vl-10)#no shutdown
DELL(conf)#interface vlan 20
DELL(conf-if-vl-20)#tagged te0/24
DELL(conf-if-vl-20)#no shutdown
DELL(conf-if-vl-20)#end

12.接口速率调整
stack-unit 1 port 29 portmode single speed 40G
no stack-unit 1 port 10 portmode single 还原回100G

13.vlt配置
protocol spanning-tree rstp
no disable
hello-time 1
max-age 6
forward-delay 4
bridge-priority 24576 ----- 次对等: bridge-priority 28576 越小越优
!
vlt domain 100
peer-link port-channel 100
back-up destination 172.30.255.2 -----通过管理口实现心跳
primary-priority 4096 ------次对等: primary-priority 8192 越小越优
system-mac mac-address 00:11:11:11:11:11 ----对等的mac要相同
unit-id 0 -----对应的另外一台为:unit-id 1
peer-routing ------vlt的两台交换增加三层功能如:vrrp (hsrp)
delay-restore 10
!
interface Port-channel 100
description VLTi
no ip address
channel-member hundredGigE 1/31,1/32
no shutdown
!
interface hundredGigE 1/1
description To Z9100-ON
no ip address
mtu 9416
!
port-channel-protocol LACP
port-channel 1 mode active
no shutdown
!
interface hundredGigE 1/2
description To Z9100-ON
no ip address
mtu 9416
!
port-channel-protocol LACP
port-channel 1 mode active
no shutdown
!
interface Port-channel 1
description To Z9100-ON
no ip address
mtu 9416
switchport
vlt-peer-lag port-channel 1
no shutdown
!
interface Vlan 1
!untagged Port-channel 100 ----理解为用vlan1来协商vlt
!

 

Dell-switch vrrp配置
DellEMC(conf-if-te-1/1/1-vrid-111)#show conf
interface TenGigabitEthernet 1/1/1
ip address 10.10.10.1/24
vrrp-group 111 -----定义vrrp组
advertise-interval 10 -------hello时间
authentication-type simple 7 387a7f2df5969da4 -----vrrp认证不让别的接入设备参与选举
no preempt -----默认开启了抢占
priority 255 ------优先级越高谁是master
virtual-address 10.10.10.3
track TenGigabitEthernet 1/2/1 ------track接口接口down优先级默认减去10

以上是关于DELL交换机的主要内容,如果未能解决你的问题,请参考以下文章

戴尔Dell EMC S5048-ON交换机光模块解决方案

将ESXI所有的端口组迁移到分布式交换机的步骤

DELL远程控制卡racadm命令整理

Dell PowerEdge R730服务器软硬件相关知识整理

dell m630刀片服务器千兆网卡不能自适应

zabbix监控防火墙和交换机