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

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
相关推荐
livefan1 小时前
油田安全系统:守护能源生命线的坚固壁垒
网络·安全
Christal_pyy3 小时前
树莓派4基于Debian GNU/Linux 12 (Bookworm)添加多个静态ipv4网络
linux·网络·debian
csbDD4 小时前
2025年网络安全(黑客技术)三个月自学手册
linux·网络·python·安全·web安全
荔枝荷包蛋6665 小时前
【Linux】HTTP:Cookie 和 Session 详解
网络·网络协议·http
EasyNVR5 小时前
EasyRTC智能硬件:实时畅联、沉浸互动、消音护航
运维·服务器·网络·安全·音视频·webrtc·p2p
劉煥平CHN5 小时前
RabbitMQ的脑裂(网络分区)问题
网络·分布式·rabbitmq
阿湯哥5 小时前
越权漏洞及其修复方法
网络·安全·web安全
Huang兄6 小时前
鸿蒙-状态管理V1
华为·harmonyos
我们的五年6 小时前
【Linux网络编程】应用层协议HTTP(请求方法,状态码,重定向,cookie,session)
linux·网络·http