华为交换机配置教程
进入系统视图
system-view
配置登录失败锁定
aaa
local-aaa-user wrong-password retry-interval 5 retry-time 5 block-time 30
user-interface console 0
authentication-mode password
set authentication password cipher P12456#
保存
save
查看配置信息
display current-configuration
禁用Telnet服务,开启ssh
undo telnet server enable
stelnet server enable
ssh user admin
ssh user admin authentication-type password
ssh user admin service-type all
aaa
local-user admin password irreversible-cipher P123456#
local-user admin privilege level 3
local-user admin service-type ssh
user-interface maximum-vty 15
user-interface vty 0 14
authentication-mode aaa
user-interface vty 16 20
查看ssh配置信息
dis ssh user-information
rsa local-key-pair create
user-interface vty 0 4
authentication-mode aaa
protocol inbound all
ssh user admin
aaa
local-user admin password
local-user admin service-type ssh
ssh user admin service-type stelnet
stelnet server enable
display ssh server status
配置密码最小长度
set password min-length 8
给交换机配置ip
interface vlanif1
ip address 192.168.0.12 255.255.255.0
显示端口
dis arp
将交换机日志转发到日志服务器
info-center channel 6 name loghost1
info-center source default channel loghost1 log state no
info-center loghost source vlan 1
info-center loghost 192.168.0.13 channel loghost1
配置日期时间
clock datetime 14:14:00 2021-08-17