全栈IT

兼听则明,偏信则暗

  • 主页
  • 归档
  • Linux
  • Win
  • AI

全栈IT

兼听则明,偏信则暗

  • 主页
  • 归档
  • Linux
  • Win
  • AI

040、IRF堆叠 + Team网卡:服务器热备网口

2026-02-01

IRF堆叠现在 最大可用1.6T带宽/通道

IRF堆叠部分

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144

IRF-port 1/1 IRF-port 2/2
SW1(XG49,G1)----------SW2(XG49,下G2)
| /
| /
| /
| /
| /
| /
| /
| /
| /
| /
接入SW3(G1、G2)
|
|
|
PC(G3)


@@@@@@@@@@===>SW1配置
sysname SW1
irf member 1 priority 5
int ten-gi 1/0/49
shutdown
quit


irf-port 1/1
#只有两个,编号错误,不会成功的
# 这里第一个1是表示member ID
# 这里第二个1 是表示 irf接口ID

port group interface ten-gi 1/0/49








@@@@@@@@@@===>SW2配置
sysname SW2
irf member 1 renumber 2 #这里需要确认重启生效
y
reboot
int ten-gi 2/0/49
shutdown
quit


irf-port 2/2 #这里必须是2/2
port group interface ten-gi 2/0/49









@@@@@@@@@@===> 准备激活

进入SW1
int ten-gi 1/0/49
undo shutdown
quit
save
y #保存SW1





进入SW2
int ten-gi 2/0/49
undo shutdown
quit
save
y #保存SW2




@@@@@@@@@@===>拔掉堆叠线路 Ten-Gi 1/0/49 ,【保证万无一失】
重新查看配置,重新保存配置



@@@@@@@@@@===>正式激活【以下配置都有顺序的】
进入SW1
[SW1] irf-port-configuration active
[SW1] save #【再次保存确保万无一失】


进入SW2
[SW2] irf-port-configuration active
[SW2] save #【再次保存确保万无一失】


重新连接堆叠线路,




@@@@@@@@@@===>验证
查看SW2,可以看到,SW2已经重启了
重新查看SW2,接口扩展后,说明就是成功了的

dis irf





==============================================================
===>SW3配置
vlan 2


sysname SW3
int bridge-aggregation 3
port link-type trunk
port trunk permit vlan all
link-aggregation mode dynamic
quit


int range gi 1/0/1 to gi 1/0/2
port link-aggregation group 3
port port link-type trunk
port trunk permit vlan all
quit



vlan 2
quit
int gi 1/0/3
port link-type access
port access vlan 2
quit

Team网卡

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
############################ 制定网卡ping能力,为了验证效果
ping 192.168.0.254 -I team0




############################# Active Backup配置方法
bond的mac地址是唯一生成的,所以交换机不需要重新学习mac,避免交换机发生混乱
资源率低
越是业务严格应用,就选active-backup的,不会出错就是最好的
【【【主备最稳,不会业务中断问题】】】




hostnamectl set-hostname node1
yum -y install vim wget curl bash-completion

nmcli connection add con-name team0 ifname team0 type team team.runner activebackup ipv4.addresses 1.1.1.1/24 ipv4.method manual
nmcli connection add con-name team0-port1 ifname eth1 type team-slave master team0
nmcli connection add con-name team0-port2 ifname eth2 type team-slave master team0
nmcli connection show
nmcli connection up team0
nmcli connection up team0-port1
nmcli connection up team0-port2
nmcli connection show






#################################### LACP配置方法
好处是双向监控的。
SW做了SNMP做了监控后,可以监控到linux上的链路状态。牛逼!
802.3ad真正做到了双方认为几条线路就是一个接口,是Linux和交换机协商后的结果。交换机是可以感知的。



nmcli con delete team1-port1
nmcli con delete team1-port2
nmcli con delete team1
nmcli connection add con-name team1 ifname team1 type team team.runner lacp ipv4.add 2.2.2.1/24 ipv4.method manual
nmcli connection add con-name team1-port1 ifname eth3 type team-slave master team1
nmcli connection add con-name team1-port2 ifname eth4 type team-slave master team1
nmcli connection up team1-port1
nmcli connection up team1-port2
nmcli connection up team1

展开全文 >>

039、正能量金句:技多不压身

2025-10-02

艺不压身是汉语成语,拼音为yì bù yā shēn,比喻人掌握的技艺越多越有帮助。
我们长叫做:技多不压身

出处:
https://baike.baidu.com/item/%E8%89%BA%E4%B8%8D%E5%8E%8B%E8%BA%AB/10791246

  • Windows
  • Linux

展开全文 >>

038、正能量金句:兼听则明,偏信则暗

2025-10-01

兼听则明,偏信则暗(拼音:jiān tīng zé míng,piān xìn zé àn)是一个成语,最早出自于汉·王符《潜夫论·明暗》。 [1]
兼听则明,偏信则暗(兼听:多方面听取不同意见。明:明辨是非。暗:糊涂)指要同时听取各方面的意见,才能正确认识事物;只相信单方面的话,必然会犯片面性的错误。

出处:
https://baike.baidu.com/item/%E5%85%BC%E5%90%AC%E5%88%99%E6%98%8E%EF%BC%8C%E5%81%8F%E4%BF%A1%E5%88%99%E6%9A%97/4524450
、

  • Windows
  • Linux

展开全文 >>

037、Windows安装登录问题:彻底解决联网登录 与 登录原理

2025-09-09

Windows安装登录问题原理:

当Windows内部Administrator处于激活状态,就会进入域用户加入模式,自动跳过联网登录

Windows安装版本问题

只要使用windows11_business开头的iso镜像文件,可以跳过联网登录,使用本地化安装

到联网注册界面,点击【登录选项】
选择【工作或者学校机构】点击【改为加入域】
剩下的就是熟悉的味道了

Windows跳过联网登录

在【断网】安装到【网络连接】阶段
shift+F10开启命令行
输入: net user administrator /active:yes
输入:shutdown -r -t 0
重启完成后,最后到联网注册界面,点击【登录选项】
选择【工作或者学校机构】点击【改为加入域】
剩下的就是熟悉的味道了
  • Windows

展开全文 >>

036、常用开源软件

2025-06-06

操作系统 Linux https://www.kernel.org/
压缩软件 7z https://www.7-zip.org/download.html
Office软件 LibreOffice https://www.libreoffice.org/
PDF编辑 okular https://okular.kde.org/zh-cn/
截图 ShareX https://github.com/ShareX/ShareX/releases
MarkDown MarkText https://github.com/marktext/marktext
思维导图 Freeplane https://sourceforge.net/projects/freeplane/files/latest/download
背单词 Anki https://apps.ankiweb.net/index.html
电子邮件 Thunderbird https://www.thunderbird.net/zh-CN/
浏览器 chromium https://www.chromium.org/chromium-projects/
下载软件 Motrix https://motrix.app/zh-CN/
虚拟机 KVM
播放器 VLC https://www.videolan.org/vlc/
音乐播放器 RiseMediaPlayer https://github.com/Rise-Software/Rise-Media-Player/releases
转码工具 File Converter https://github.com/Tichau/FileConverter/releases
转码工具 HandBrake https://handbrake.fr
录屏软件 OBS Studio https://github.com/obsproject/obs-studio/releases
图片编辑 GIMP https://www.gimp.org/
图片设计 Krita https://krita.org/zh-cn/download
视频编辑 Shotcut https://shotcut.org/
3D编辑 Blender https://www.blender.org/download/
CAD FreeCAD https://www.freecad.org/
音频编辑 Audacity https://github.com/audacity/audacity-manual/releases
瑞士军刀 PowerToys https://docs.microsoft.com/zh-cn/windows/powertoys/
装系统 Rufus https://github.com/pbatard/rufus/releases
电脑安全 VeraCrypt https://veracrypt.io/en/Downloads.html
电脑清理 BleachBit https://github.com/bleachbit/bleachbit/releases

  • Linux
  • Windowss

展开全文 >>

035、最方便的Windows安装跳过登录微软账号方法

2025-03-18

一、在网络连接界面,Shift+F10
二、输入 start ms-cxh:localonly
三、直接跳出创建本地用户窗口,创建完成直接进入桌面,没有任何多余步骤

  • Windows

展开全文 >>

034、史上最好的sha256验证方式,使用自带powershell做校验,右键校验

2025-03-18

一、创建reg文件
二、复制一下文本

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\*\shell\hash]
"MUIVerb"="校验文件 Hash"
"SubCommands"=""
"Icon"="PowerShell.exe"

; SHA1
[HKEY_CLASSES_ROOT\*\shell\hash\shell\01menu]
"MUIVerb"="SHA1"

[HKEY_CLASSES_ROOT\*\shell\hash\shell\01menu\command]
@="powershell -noexit get-filehash -literalpath '%1' -algorithm SHA1 | format-list"

; SHA256
[HKEY_CLASSES_ROOT\*\shell\hash\shell\02menu]
"MUIVerb"="SHA256"

[HKEY_CLASSES_ROOT\*\shell\hash\shell\02menu\command]
@="powershell -noexit get-filehash -literalpath '%1' -algorithm SHA256 | format-list"

; SHA384
[HKEY_CLASSES_ROOT\*\shell\hash\shell\03menu]
"MUIVerb"="SHA384"

[HKEY_CLASSES_ROOT\*\shell\hash\shell\03menu\command]
@="powershell -noexit get-filehash -literalpath '%1' -algorithm SHA384 | format-list"

; SHA512
[HKEY_CLASSES_ROOT\*\shell\hash\shell\04menu]
"MUIVerb"="SHA512"

[HKEY_CLASSES_ROOT\*\shell\hash\shell\04menu\command]
@="powershell -noexit get-filehash -literalpath '%1' -algorithm SHA512 | format-list"

; MACTripleDES
[HKEY_CLASSES_ROOT\*\shell\hash\shell\05menu]
"MUIVerb"="MACTripleDES"

[HKEY_CLASSES_ROOT\*\shell\hash\shell\05menu\command]
@="powershell -noexit get-filehash -literalpath '%1' -algorithm MACTripleDES | format-list"

; MD5
[HKEY_CLASSES_ROOT\*\shell\hash\shell\06menu]
"MUIVerb"="MD5"

[HKEY_CLASSES_ROOT\*\shell\hash\shell\06menu\command]
@="powershell -noexit get-filehash -literalpath '%1' -algorithm MD5 | format-list"

; RIPEMD160
[HKEY_CLASSES_ROOT\*\shell\hash\shell\07menu]
"MUIVerb"="RIPEMD160"

[HKEY_CLASSES_ROOT\*\shell\hash\shell\07menu\command]
@="powershell -noexit get-filehash -literalpath '%1' -algorithm RIPEMD160 | format-list"

; Allget-filehash -literalpath '%1' -algorithm RIPEMD160 | format-list
[HKEY_CLASSES_ROOT\*\shell\hash\shell\08menu]
"CommandFlags"=dword:00000020
"MUIVerb"="校验全部"

[HKEY_CLASSES_ROOT\*\shell\hash\shell\08menu\command]
@="powershell -noexit get-filehash -literalpath '%1' -algorithm SHA1 | format-list;get-filehash -literalpath '%1' -algorithm SHA256 | format-list;get-filehash -literalpath '%1' -algorithm SHA384 | format-list;get-filehash -literalpath '%1' -algorithm SHA512 | format-list;get-filehash -literalpath '%1' -algorithm MACTripleDES | format-list;get-filehash -literalpath '%1' -algorithm MD5 | format-list;get-filehash -literalpath '%1' -algorithm RIPEMD160 | format-list"

三、重启电脑,或者重启资源管理器,邮件测试即可使用

  • Windows

展开全文 >>

033、DeepSeek在CentOS7上curl接入问题

2025-03-09

在DeepSeek接入API的时候,使用curl的”-data-raw”参数的时候
一直报错,提示“option –data-raw:is unkown”

默认CentOS7的curl版本是8.12.1
[ CS7 root ~]#curl –version
curl 7.29.0 (x86_64-redhat-linux-gnu) libcurl/7.29.0 NSS/3.53.1 zlib/1.2.7 libidn/1.28 libssh2/1.8.0
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtsp scp sftp smtp smtps telnet tftp
Features: AsynchDNS GSS-Negotiate IDN IPv6 Largefile NTLM NTLM_WB SSL libz unix-sockets
[ CS7 root ~]#

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#备份镜像源
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo_bak

#备份原始命令
mv /usr/bin/curl /usr/bin/curl.bak


wget https://github.com/stunnel/static-curl/releases/download/8.12.1/curl-linux-x86_64-glibc-8.12.1.tar.xz
tar xvf curl-linux-x86_64-glibc-8.12.1.tar.xz
/root/curl --version
mv /root/curl /usr/bin/curl
chmod +x /usr/bin/curl




#版本验证
curl --version

[ CS7 root ~]#curl –version
curl 8.12.1 (x86_64-pc-linux-gnu) libcurl/8.12.1 OpenSSL/3.4.1 zlib/1.3.1 brotli/1.1.0 zstd/1.5.6 c-ares/1.34.4 libidn2/2.3.7 libpsl/0.21.5 libssh2/1.11.1 nghttp2/1.64.0 nghttp3/1.7.0
Release-Date: 2025-02-13
Protocols: dict file ftp ftps gopher gophers http https imap imaps ipfs ipns mqtt pop3 pop3s rtsp scp sftp smb smbs smtp smtps telnet tftp ws wss
Features: alt-svc AsynchDNS brotli HSTS HTTP2 HTTP3 HTTPS-proxy IDN IPv6 Largefile libz NTLM PSL SSL SSLS-EXPORT threadsafe TLS-SRP TrackMemory UnixSockets zstd
[ CS7 root ~]#

  • Linux

展开全文 >>

032、光盘刻录,防篡改

2025-02-18

开源地址

开源地址: https://github.com/GNOME/brasero

使用方法

sudo apt update
sudo apt install -y brasero

  • Windows
  • Linux

展开全文 >>

031、Brocade博科交换机使用总结

2024-12-27

Brocade博科交换机,现在看来已然算是过时,但是还算有用,略作总结,以免忘记

第一条必须要记住的命令:save保存

1
2
save    save   save  save   save
不会保存,什么都是白搭

激活方法

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
进入网址
https://www.switchkeyactivation.com/slkInternet/brocade
输入自己的Email地址
产品选择 Fabric OS Feature Activation



输入WWN
输入SN
(可以使用switchshow查看)



生成Linsece Key
找到key


licenseshow

linceseadd xxxxxxxx #添加码
portenable/switchdisable #正常直接生效了,以前的版本好似要农以下

常用登录密码、登录地址

1
2
3
4
5
6
默认IP地址: 10.77.77.77/24 
使用SSH可以登陆
默认账号密码:
admin password
user password
修改密码的方法也是使用password命令

常规操作命令

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
修改名称
switchname brocade-1



查看交换机名称
switchname




激活
switchenable

禁用
switchdisable


激活端口
portenable 1/1

禁用端口
portdisable 1/1


查看各个端口模块
sfpshow

查看进程
i

查看设备序列号
chassisshow


查看各个端口的工作状态
portshow
portstatshow
portlogshow


设置Domain ID步骤
1. switchdisable
2. configure domain id
3. switchenable



查看domain id
switchshow
fabricshow



查看微码版本
version
firmwareshow


查看交换机状态
switchstatusshow

Zone的命令

1
2
3
4
5
6
7
alias   alicreate  alidelete  aliadd  aliremove  alishow
zone zonecreate zonedelete zoneadd zoneremove zoneshow
configuration cfgcreate cfgdelete cfgadd cfgremove cfgshow
cfgenable
cfgdisable
cfgsave
cfgclear

简单Zone使用,公司的【复现问题环境】实验时候常用

1
2
3
4
5
6
7
8
9
10
Sever1                Server2
\ /
\ /
\ /
\port1 port2
port3
|
|
|
FC 存储

普通zone创建

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
###清理旧数据
cfgshow
cfgdisable
cfgclear
yes
cfgshow




###查看WWN
switchshow




###创建别名
alicreate "Host1" "xxxxxxx"
alicreate "Host2" "xxxxxxx"
alicreate "storage" "xxxxxxx"

zoneshow




###创建zone(STH1,Storage to Host 1的zone)
zonecreate "STH1","storage;Host1"
zonecreate "STH2","storage;Host2"

zoneshow

###查看zone配置
zoneshow
cfgshow


###创建配置文件,把配置文件与zone添加进去
cfgcreate "cfg","STH1;STH2"

cfgshow



###生效配置文件
cfgenable cfg


### 保存配置文件
cfgsave 【【【一定要保存阿阿啊啊啊啊啊啊啊啊】】】


###查看生效配置
cfgshow

portzone

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
alicreate  "host1","10,1"
alicreate "host2","10,2"
alicreate "storage","10,3"

zonecreate "STH1","storage;host1"
zonecreate "STH2","storage;host2"

cfgcreate "cfg","STH1,STH2"

zoneshow
cfgshow

cfgenable cfg

cfgshow

【【【一定要保存阿啊啊啊啊啊啊啊啊啊啊】】】
save save save save save

启用ISL trunking(1启用,0禁用

1
2
3
4
5
6
7
8
9
10
11
12
13
14
switchcfgtrunk  1



#默认eport,启动eport(1允许,0不允许)
portcfgeport 2/3,0
portcfgeport 2/3,1

#显示trunk配置信息
trunkshow


#debug
trunkdebug 0,1

微码升级

没啥技术,就TFTP或者FTP的,只要学过网络都应该会,不会网络应该还没有入门吧

  • Windows
  • Linux

展开全文 >>

1234Next »
© 2010-2026 全栈IT
备案号:京ICP备13033196号-3