diff --git a/1. 基础部分/0801_交换机.md b/1. 基础部分/0801_交换机.md index c08c6d6..e8f59c3 100644 --- a/1. 基础部分/0801_交换机.md +++ b/1. 基础部分/0801_交换机.md @@ -48,7 +48,7 @@ 1. display version:查看版本信息 -2. display current-configuration:查看华为网络设备的当前配置 +2. display current-configuration:查看华为网络设备的当前配置,简写:dis cu - 回车翻行,空格翻页 @@ -60,7 +60,7 @@ 4. sysname:更改设备名称(需要在用户视图save保存) - > [Huawei]sysname SW1 //修改设备名为SW1 + > [Huawei]sysname SW1 //修改设备名为SW1,简写:sy SW1 > > [SW1]display this //查看当前视图有效配置 @@ -86,10 +86,9 @@ ``` 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]user-interface console 0 //简写:user-in co 0 + [Huawei-ui-console0]authentication-mode password //简写:auth p + [Huawei-ui-console0]set authentication password cipher 123456 //设置加密密码,简写:set a p c 123456 [Huawei-ui-console0]display this # user-interface con 0 @@ -104,7 +103,6 @@ ``` 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]display this @@ -119,38 +117,42 @@ 8. 设置交换机闲置会话时间 - [Huawei-ui-console0]idle-timeout 1 //设置闲置会话时间为1分钟 + - [Huawei-ui-console0]idle-timeout 0 //永不超时 + - [Huawei-ui-console0]idle-timeout 1440 //设置闲置会话时间为24小时,简写:i 1440 + + > 默认闲置会话时间10分钟 + ``` sy [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]idle-timeout 1 //设置闲置会话时间为1分钟 - [Huawei-ui-console0]idle-timeout 0 //永不超时 ``` 9. 关闭终端提示 - > undo terminal monitor //缩写:u t m + > undo terminal monitor //缩写:u t m 10. 恢复出厂默认设置 - > reset saved-configuration + > reset saved-configuration //简写:res sa ``` - 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 + The configuration will be erased to reconfigure. Continue? [Y/N]:y //是否要恢复出厂设置,选择Y Warning: Now clearing the configuration in the device. Info: Succeeded in clearing the configuration in the device. - reboot + 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 + ext startup:, Continue?[Y/N]: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]:y + System will reboot! Continue?[Y/N]:y //是否重启,选择Y ```