2024年8月2日 10:55:27
This commit is contained in:
parent
633c2a9e7a
commit
9d63504178
@ -60,9 +60,9 @@
|
|||||||
|
|
||||||
4. sysname:更改设备名称(需要在用户视图save保存)
|
4. sysname:更改设备名称(需要在用户视图save保存)
|
||||||
|
|
||||||
> [Huawei]sysname SW1 ##修改设备名为SW1
|
> [Huawei]sysname SW1 //修改设备名为SW1
|
||||||
>
|
>
|
||||||
> [SW1]display this ##查看当前视图有效配置
|
> [SW1]display this //查看当前视图有效配置
|
||||||
|
|
||||||
5. <Huawei>reboot:重启
|
5. <Huawei>reboot:重启
|
||||||
|
|
||||||
@ -74,22 +74,22 @@
|
|||||||
|
|
||||||
> [Huawei]user-interface console 0
|
> [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. 加密密码
|
eg. 加密密码
|
||||||
|
|
||||||
```
|
```
|
||||||
<Huawei>sy
|
<Huawei>sy
|
||||||
[Huawei]user-interface console 0
|
[Huawei]user-interface console 0
|
||||||
[Huawei-ui-console0]user-interface console 0
|
[Huawei-ui-console0]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]display this
|
[Huawei-ui-console0]display this
|
||||||
#
|
#
|
||||||
user-interface con 0
|
user-interface con 0
|
||||||
@ -98,15 +98,15 @@
|
|||||||
user-interface vty 0 4
|
user-interface vty 0 4
|
||||||
#
|
#
|
||||||
```
|
```
|
||||||
|
|
||||||
eg. 明文密码
|
eg. 明文密码
|
||||||
|
|
||||||
```
|
```
|
||||||
<Huawei>sy
|
<Huawei>sy
|
||||||
[Huawei]user-interface console 0
|
[Huawei]user-interface console 0
|
||||||
[Huawei-ui-console0]user-interface console 0
|
[Huawei-ui-console0]user-interface console 0
|
||||||
[Huawei-ui-console0]authentication-mode password
|
[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
|
[Huawei-ui-console0]display this
|
||||||
#
|
#
|
||||||
user-interface con 0
|
user-interface con 0
|
||||||
@ -115,5 +115,45 @@
|
|||||||
user-interface vty 0 4
|
user-interface vty 0 4
|
||||||
#
|
#
|
||||||
```
|
```
|
||||||
|
|
||||||
|
8. 设置交换机闲置会话时间
|
||||||
|
|
||||||
|
- [Huawei-ui-console0]idle-timeout 1 //设置闲置会话时间为1分钟
|
||||||
|
- [Huawei-ui-console0]idle-timeout 0 //永不超时
|
||||||
|
|
||||||
|
```
|
||||||
|
<Huawei>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. 关闭终端提示
|
||||||
|
|
||||||
|
> <Huawei>undo terminal monitor //缩写:<Huawei>u t m
|
||||||
|
|
||||||
|
10. 恢复出厂默认设置
|
||||||
|
|
||||||
|
> <Huawei>reset saved-configuration
|
||||||
|
|
||||||
|
```
|
||||||
|
<S1>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.
|
||||||
|
<S1>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]:
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user