龙空技术网

华为交换机:配置清除、密码重置、地址池及租期相关操作

投资·悟道 412

前言:

目前大家对“华为交换机修改当前用户密码”都比较讲究,兄弟们都想要剖析一些“华为交换机修改当前用户密码”的相关资讯。那么小编也在网络上汇集了一些关于“华为交换机修改当前用户密码””的相关资讯,希望大家能喜欢,朋友们一起来学习一下吧!

1.如何清除配置?如何清空配置?如何恢复出厂配置?

恢复出厂配置后,已有配置数据将被全部清除,请提前保存配置文件。

<HUAWEI> 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.

<HUAWEI> 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 flash:/vrpcfg.zip. 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

2.如何一键清除接口配置?

一键清除接口配置,可以执行clear configuration this(接口视图)命令或clear configuration interface (系统视图)命令,并将接口shutdown。

一键清除接口配置后接口被shutdown,需要执行undo shutdown打开接口。

3.如何重置Console密码?

Telnet登录交换机,修改Console密码。

<HUAWEI> system-view

[HUAWEI] user-interface console 0

[HUAWEI-ui-console0] authentication-mode password

[HUAWEI-ui-console0] set authentication password cipher huawei@1234

[HUAWEI-ui-console0] return

如果用户的Telnet账号具有3级或更高的权限,则可以通过Telnet登录到设备后修改Console密码。

4.如何重置Telnet密码?

通过Console口登录交换机,修改Telnet密码。(以AAA验证方式为例)

<HUAWEI> system-view

[HUAWEI] aaa

[HUAWEI-aaa] local-user user11 password irreversible-cipher huawei@1234

如果用户不记得原登录的用户名,可以新配置一个用户名和密码

5.如何配置地址池中不参与自动分配的IP地址?

地址池中的部分IP地址如果需要保留以提供其他的服务,如分配给DNS服务器,需要把这些不参与自动分配的IP地址在地址池中排除出去,防止这些地址被DHCP服务器自动分配出去,引起IP地址冲突。

配置方式:

接口视图下(接口地址池)执行命令:dhcpserver excluded-ip-addressstart-ip-

address[ end-ip-address]

全局地址池视图下执行命令:excluded-ip-addressstart-ip-address[ end-ip-address]

6.如何配置租期?

缺省情况下,租期为1天。

在咖啡厅、机场、酒店等流动性较大的场所,建议设置较短的租期;在企业办公区域等相对稳定的场所,建议设置较长的租期。

配置方式:

接口视图下(接口地址池)执行命令:dhcpserver lease{ dayday[ hourhour[ minuteminute] ] | unlimited}

全局地址池视图下执行命令:lease{ dayday[ hourhour[ minuteminute] ] |unlimited}

7.如何为客户端分配固定的IP地址?

有些重要主机为了保证稳定性,需要使用固定的IP地址。

这种情况下,可以为指定客户端分配固定IP地址。被分配的固定IP地址必须在地址池可动态分配的IP地址范围之内。

配置方式:

接口视图下(接口地址池)执行命令:dhcpserver static-bindip-addressip-address mac-addressmac-address

全局地址池视图下执行命令:static-bind ip-addressip-addressmac-addressmac-address[ option-templatetemplate-name]

标签: #华为交换机修改当前用户密码