华为S6720清空配置及登录方式设置
发表在《笔记》。

华为S6720清空配置及登录方式设置

发表在《笔记》。

重置

华为S6720交换机重置

在用户视图下操作
<SW-6720>reset saved-configuration
根据提示按【y】回车。清空当前配置。
<SW-6720>reboot
根据提示按【n】回车。不保留当前配置。
再按【y】,确定重启。

实际操作记录:

<SW-6720>reset saved-configuration
Warning: The action will delete the saved configuration in the device.
The configuration will be erased to reconfigure. Continue? [Y/N]:y

Warning: Now clearing the configuration in the device.
Error: The config file does not exist.

<SW-6720>reboot

Info: The system is now comparing the configuration, please wait.
Warning: The configuration has been modified, and it will be saved to the next startup saved-configuration file . Continue? [Y/N]:n

Info: If want to reboot with saving diagnostic information, input 'N' and then execute 'reboot save diagnostic-information'.
System will reboot! Continue?[Y/N]:y

Comparing the firmware versions
The latest firmware version is in use.
Info: System is rebooting, please wait...

设置CONSOLE线连接密码

system-view
user-interface con 0
 authentication-mode password
 set authentication password cipher LoginPassword
quit

设置telnet连接密码(单密码登录)

system-view
telnet server enable
user-interface vty 0 4
 authentication-mode password
 user privilege level 15
 set authentication password cipher LoginPassword
 protocol inbound telnet terminal
quit

配置基于AAA认证的telnet

system-view
telnet server enable
aaa
 local-user admin password cipher LoginPassword
 local-user admin privilege level 15
 local-user admin service-type telnet terminal
quit
user-interface vty 0 4
 authentication-mode aaa
 protocol inbound telnet
quit

组合认证

(CONSOLE线连接密码配合AAA认证登录)

system-view
telnet server enable
aaa
 local-user admin password cipher LoginPassword
 local-user admin privilege level 15
 local-user admin service-type telnet terminal
quit
user-interface maximum-vty 15
user-interface con 0
 authentication-mode password
 set authentication password cipher LoginPassword
qiut
user-interface vty 0 14
 authentication-mode aaa
 protocol inbound telnet
quit