一、实验拓扑
如图所示:华为CE6800 交换机G1/0/0 口直连PC。
二、配置示例
<HUAWEI>system-view immediately
Enter system view, return user view with return command.
[HUAWEI]interface MEth 0/0/0
[HUAWEI-MEth0/0/0]ip ad
[HUAWEI-MEth0/0/0]ip address 192.168.1.249 24
[HUAWEI-MEth0/0/0]quit
[HUAWEI]rsa local-key-pair create
The key name will be:HUAWEI_Host
The range of public key size is (2048 ~ 2048).
NOTE: Key pair generation will take a short while.
[HUAWEI]user-interface vty 0 4
[HUAWEI-ui-vty0-4]authentication-mode aaa
[HUAWEI-ui-vty0-4]protocol inbound ssh
[HUAWEI-ui-vty0-4]user privilege level 3
[HUAWEI-ui-vty0-4]quit
[HUAWEI]aaa
[HUAWEI-aaa]local-user client001 password irreversible-cipher Huawei@123
[HUAWEI-aaa]local-user client001 level 3
[HUAWEI-aaa]local-user client001 service-type ssh
[HUAWEI-aaa]quit
[HUAWEI]ssh user client001 authentication-type password
Info: Succeeded in adding a new SSH user.
[HUAWEI]stelnet server enable
Info: Succeeded in starting the STelnet server.
[HUAWEI]ssh user client001 service-type stelnet
[HUAWEI]quit
<HUAWEI>save
Warning: The current configuration will be written to the device. Continue? [Y/N]:y
Now saving the current configuration to the slot 1
Info: Save the configuration successfully.
<HUAWEI>