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

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
相关推荐
xujiangyan_4 小时前
linux的sysctl系统以及systemd系统。
linux·服务器·网络
吱吱企业安全通讯软件7 小时前
吱吱企业通讯软件保证内部通讯安全,搭建数字安全体系
大数据·网络·人工智能·安全·信息与通信·吱吱办公通讯
云边云科技9 小时前
零售行业新店网络零接触部署场景下,如何选择SDWAN
运维·服务器·网络·人工智能·安全·边缘计算·零售
rainFFrain9 小时前
Boost搜索引擎项目(详细思路版)
网络·c++·http·搜索引擎
AOwhisky9 小时前
Linux 文本处理三剑客:awk、grep、sed 完全指南
linux·运维·服务器·网络·云计算·运维开发
青草地溪水旁11 小时前
网络连接的核心机制
网络
花开富贵贼富贵11 小时前
计算机网络技术学习-day4《路由器配置》
网络·智能路由器·php
绵绵细雨中的乡音13 小时前
网络基础知识
linux·网络
想睡hhh14 小时前
网络基础——协议认识
网络·智能路由器
G_H_S_3_16 小时前
【网络运维】Linux 文本处理利器:sed 命令
linux·运维·网络·操作文本