华为交换机账号登录配置示例教程
2023.7.10更新
1、打开Telnet功能
[HUAWEI] telnet server enable
2、以哪种模式登录就进入哪种模式
[Huawei]user-interface ?
INTEGER<0,34-48,50-54> The first user terminal interface to be configured
console Primary user terminal interface
current The current user terminal interface
maximum-vty The maximum number of VTY users, the default value is 5
vty The virtual user terminal interface
3、举例以telnet方式登录设置
[Huawei]user-interface vty ?
INTEGER<0-4> The first user terminal interface to be configured
[Huawei]user-interface vty 0 4
4、设置哪种方式登录
[Huawei-ui-vty0-4]authentication-mode ?
aaa AAA authentication # 账号密码登录
none Login without checking # 直接登录
password Authentication through the password of a user terminal interface # 密码登录
5、举例以账号密码方式登录
[Huawei-ui-vty0-4]authentication-mode aaa
[Huawei-ui-vty0-4]
6、设置VTY用户界面所支持的协议
[Huawei-ui-vty0-4] protocol inbound telnet
##V200R006及之前版本缺省支持telnet协议,但是V200R007及之后版本缺省的是SSH协议,因此使用telnet登录之前,必须要先配置这条命令
7、创建账号密码和账号级别权限
[Huawei]aaa
[Huawei-aaa]
[Huawei-aaa]local-user wlgly ?
access-limit Set access limit of user(s)
ftp-directory Set user(s) FTP directory permitted
idle-timeout Set the timeout period for terminal user(s)
password Set password
privilege Set admin user(s) level
service-type Service types for authorized user(s)
state Activate/Block the user(s)
[Huawei-aaa]local-user wlgly password cipher wlgly ?
access-limit Set access limit of user(s)
ftp-directory Set user(s) FTP directory permitted
idle-timeout Set the timeout period for terminal user(s)
privilege Set admin user(s) level
state Activate/Block the user(s)
<cr>
[Huawei-aaa]local-user wlgly password cipher wlgly privilege ?
level Set admin user(s) level
[Huawei-aaa]local-user wlgly password cipher wlgly privilege level ?
INTEGER<0-15> Level value
[Huawei-aaa]local-user wlgly password cipher wlgly privilege level 15
8、设置账号用于何种方式登录
[Huawei-aaa]local-user wlgly ?
access-limit Set access limit of user(s)
ftp-directory Set user(s) FTP directory permitted
idle-timeout Set the timeout period for terminal user(s)
password Set password
privilege Set admin user(s) level
service-type Service types for authorized user(s)
state Activate/Block the user(s)
[Huawei-aaa]local-user wlgly service-type ?
8021x 802.1x user
bind Bind authentication user
ftp FTP user
http Http user
ppp PPP user
ssh SSH user
telnet Telnet user
terminal Terminal user
web Web authentication user
x25-pad X25-pad user
[Huawei-aaa]local-user wlgly service-type telnet
9、设置连接源
[HUAWEI] telnet server-source -i vlanif 5 //V200R020及之后版本,必须执行该命令配置连接服务器端的端口,否则Telnet不可用
评论列表(2条)