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


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM