华为华三思科 交换机基础配置一览

console密码修改

华为

bash 复制代码
user-interface console 0
authentication-mode password 
set authentication password cipher XXXXXXXXX

华三

bash 复制代码
line aux 0
authentication-mode password
set auth pass simple XXX

思科

bash 复制代码
en
configure terminal
line console 0
password 123
login

忘记console口密码

华为

忘记console口密码,重置密码

1、断电重启

看到Press Ctrl+B or Ctrl+E to enter BootLoad menu: 2,快速按下Ctrl+B,输入密码Admin@huawei.com

选择Clear password for console user

Yes

2、选择Reboot

3、设备重启后初始密码为admin@huawei.com,首次进去开始重置密码

华三

重新启动H3C网络设备,当提示Ctrl+B时,按下Ctrl+B进入BootRom菜单

进入BootRom菜单要求输入密码,默认密码为空

当出现"Extended Boot Menu"菜单后,输入数字 7 选择"Skip current system configuration"选项,并按"Y"进行确认操作

这里输入"0"直接进行重启设备

恢复出厂设置

华为

华为交换机初始化

在用户视图下,输入重置命令后重启交换机

bash 复制代码
reset saved-configuration
reboot
no
yes

设备重启完毕后,初始账密为admin/amdin@huawei.com,首次登录需要修改密码。

华三

bash 复制代码
reset saved-configuration
reboot

思科

bash 复制代码
en
erase startconfig
reload

没密码的话按住mode键重启

设置ssh登录

华为

bash 复制代码
stelnet server enable
rsa locol-key-pair create
ssh user admin
ssh user admin authentication-type password
ssh user admin server-type stelnet

aaa
local-user admin password 
local-user admin priviledge level 15
local-user admin admin server-type ssh
user-interface 0 4
authentication-mode aaa
protocol inbound ssh

华三

bash 复制代码
public-key local create rsa
ssh server enable
user-interface vty 0 15
authentication-mode scheme
protocol inbound ssh

local-user admin  
password simple XXX
service-type ssh
authorization-attribute user-role network-admin
ssh user admin service-type stelnet authentication-type password

思科

bash 复制代码
line vty 0 3

transport input ssh
password XXX
login
exit

crypto key generate rsa
相关推荐
绝世番茄5 小时前
鸿蒙HarmonyOS ArkTS原生学习:缩放手势实现 PinchToZoom 深度解析
学习·华为·harmonyos·鸿蒙
进击的前栈5 小时前
鸿蒙实战:19 页面全景汇总与 7 大共享设计模式回顾
华为·设计模式·harmonyos
ujainu小6 小时前
原生性能优化:6变量实现高效桥接
开发语言·华为·性能优化·harmonyos
星释6 小时前
鸿蒙智能体开发实战:27.Skill 测试、发布与管理
ui·华为·log4j·harmonyos·鸿蒙·智能体
w139548564226 小时前
鸿蒙实战:报告与雷达图 ReportDao
android·华为·harmonyos·鸿蒙系统
anling_li6 小时前
《图片华容道》一、背景设置使用指南
ui·华为·harmonyos
花开彼岸天~6 小时前
鸿蒙实战:字体令牌系统——AppFonts 与排版规范
华为·harmonyos·鸿蒙系统
韦胖漫谈IT6 小时前
Apple M3 Max 与 Apple M5 Max 对比:本地算力的新旧王者之争
网络·人工智能·macos·transformer
xd1855785556 小时前
药箱顾问-药品说明书解读的HarmonyOS开发实践
人工智能·华为·harmonyos·鸿蒙
木木子227 小时前
# [特殊字符] 健身模拟器 — 鸿蒙ArkTS完整技术解析
华为·harmonyos