From 9d63504178b143232d25b924549c694540e132d2 Mon Sep 17 00:00:00 2001 From: Noriu Date: Fri, 2 Aug 2024 10:55:25 +0800 Subject: [PATCH] =?UTF-8?q?2024=E5=B9=B48=E6=9C=882=E6=97=A5=2010:55:27?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 1. 基础部分/0801_交换机.md | 66 ++++++++++++++++++++++++++++++-------- 1 file changed, 53 insertions(+), 13 deletions(-) diff --git a/1. 基础部分/0801_交换机.md b/1. 基础部分/0801_交换机.md index 0222e67..d9d149c 100644 --- a/1. 基础部分/0801_交换机.md +++ b/1. 基础部分/0801_交换机.md @@ -60,9 +60,9 @@ 4. sysname:更改设备名称(需要在用户视图save保存) - > [Huawei]sysname SW1 ##修改设备名为SW1 + > [Huawei]sysname SW1 //修改设备名为SW1 > - > [SW1]display this ##查看当前视图有效配置 + > [SW1]display this //查看当前视图有效配置 5. reboot:重启 @@ -74,22 +74,22 @@ > [Huawei]user-interface console 0 > - > [Huawei-ui-console0]authentication-mode password ##启用密码验证 + > [Huawei-ui-console0]authentication-mode password //启用密码验证 > - > [Huawei-ui-console0]set authentication password cipher 123456 ##设置加密密码 + > [Huawei-ui-console0]set authentication password cipher 123456 //设置加密密码 > - > [Huawei-ui-console0]set authentication password simple 123456 ##设置明文密码 + > [Huawei-ui-console0]set authentication password simple 123456 //设置明文密码 > - > [Huawei-ui-console0]undo set authentication password ##关闭密码验证 - + > [Huawei-ui-console0]undo set authentication password //关闭密码验证 + eg. 加密密码 - + ``` sy [Huawei]user-interface console 0 [Huawei-ui-console0]user-interface console 0 [Huawei-ui-console0]authentication-mode password - [Huawei-ui-console0]set authentication password cipher 123456 + [Huawei-ui-console0]set authentication password cipher 123456 //设置加密密码 [Huawei-ui-console0]display this # user-interface con 0 @@ -98,15 +98,15 @@ user-interface vty 0 4 # ``` - + eg. 明文密码 - + ``` sy [Huawei]user-interface console 0 [Huawei-ui-console0]user-interface console 0 [Huawei-ui-console0]authentication-mode password - [Huawei-ui-console0]set authentication password simple 123456 + [Huawei-ui-console0]set authentication password simple 123456 //设置明文密码 [Huawei-ui-console0]display this # user-interface con 0 @@ -115,5 +115,45 @@ user-interface vty 0 4 # ``` + +8. 设置交换机闲置会话时间 + + - [Huawei-ui-console0]idle-timeout 1 //设置闲置会话时间为1分钟 + - [Huawei-ui-console0]idle-timeout 0 //永不超时 + + ``` + sy + [Huawei]user-interface console 0 + [Huawei-ui-console0]authentication-mode password + [Huawei-ui-console0]set authentication password cipher 123456 + [Huawei-ui-console0]idle-timeout 1 //设置闲置会话时间为1分钟 + [Huawei-ui-console0]idle-timeout 0 //永不超时 + ``` + +9. 关闭终端提示 + + > undo terminal monitor //缩写:u t m + +10. 恢复出厂默认设置 + + > reset saved-configuration + + ``` + 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. + Info: Succeeded in clearing the configuration in the device. + reboot + Info: The system is now comparing the configuration, please wait. + Warning: All the configuration will be saved to the configuration file for the n + ext startup:, Continue?[Y/N]:n + Info: If want to reboot with saving diagnostic information, input 'N' and then e + xecute 'reboot save diagnostic-information'. + System will reboot! Continue?[Y/N]: + ``` + - + + +