老男人百科 > 百科 > 正文

华为路由器改名字命令(华为路由器配置命令大全)

2023-06-09 02:14:48 阅读( 9433)

  1.clockset  设置路由器当前日期和时钟。

1.clockset设置路由器的当前日期和时钟。

1. clockset

设置路由器的当前日期和时钟。

clocksethour:minute:seconddaymonthyear

[参数描述]

小时:分钟:秒是当前时钟,小时的范围是1~24,分钟和秒的范围是1~60。

年、月、日分别是当前的年、月、日。年的范围从1997年到2025年,月的范围从1到12,日的范围从1到31。

[默认]

系统启动时默认为1997年1月1日0: 0: 0。

[命令模式]

普通用户模式、特权用户模式

[用户指南]

由于Quidway(R)系列路由器断电后无法继续计时,因此在需要严格获取绝对时间的应用环境中,需要设置路由器的当前日期和时钟。

[示例]

将路由器的当前日期设置为2000年1月1日0: 00: 00。

Quidditch # clock set at 0:0:0112000

【相关命令】

showclock

2. hostname

设置路由器的域名。

hostnamehostname

[参数描述]

主机名是一个字符串。

[默认]

路由器的默认域名是Quidway。

[命令模式]

全局配置模式

[用户指南]

修改路由器的域名会影响命令行界面的提示,比如路由器的域名是Quidway,特权用户模式下的提示是Quidway#。

【举例】

设置路由器的域名为QuidwayR2501。

Quidway#hostnameQuidwayR2501

QuidwayR2501#

【相关命令】

showhostname

3.reboot

重启路由器。

reboot

【命令模式】

特权用户模式

【使用指南】

该命令功能与路由器下电再上电效果相同,但在对路由器远程维护时,不需用户到路由器所在地重启路由器,而直接在远地即可重启路由器。

在一般情况下,禁止使用该命令,因为它将导致网络工作在短时间内瘫痪,另外在重启路由器时,要确保路由器配置文件是否需要保存。

【举例】

重新启动路由器。

Quidway#reboot

WARNING:SystemwillREBOOT!Continue?[Y/N]y

Systemisnowrebooting,pleasewait.

4. setup

以交互方式引导用户对路由器运行所必需的基本参数进行配置。

setup

【缺省情况】

在配置某参数时,如果当前该参? 经配置,则显示其当前值作为缺省值,用户不作修改可以直接键入回车即可。

【命令模式】

特权用户模式

【使用指南】

当用户首次将路由器上电启动时,系统将自动执行setup引导用户对路由器运行所必需的参数进行配置,这些参数包括:

路由器域名

特权用户口令

SNMP参数

选择IP、IPX和桥等网络协议

各接口的IP地址、IPX网络号和是否启动桥等

另外setup作为一条命令,特权用户可以随时执行。

【举例】

Quidway#setup

---SystemConfigurationDialog---

$#@60;=简单提示信息

Atanypointyoumayenteraquestionmark?forhelp.

Defaultsettingsareinsquarebrackets[],ifyoudo

notchangethedefaultsettings,youmayinputenter.

Continuewithconfigurationdialog?[yes]:y

Firstly,wouldyouliketoseethecurrentinterfacesummary? [yes]:y

InterfaceIP-AddressOK?StatusProtocol

Ethernet0129.102.100.141yesdownup

Serial0yesupdown

Serial1yesupdown

Serial2yesupdown

Configuringglobalparameters:

Enterhostname[Quidway]:

Enterenablepassword[]:

ConfigureSNMPNetworkManagement?[YES]:

Communitystring[]:public

ConfigureIP?[yes]:

ConfigureIPX?[NO]:y

Configurebridge?[YES]:

ConfiguringinterfaceEthernet0:

Isthisinterfaceinuse?[YES]:

ConfigureIPonthisinterface?[YES]:

IPaddressforthisinterface[129.102.100.141]:

Netmask[255.255.0.0]:

ClassBnetworkis129.102.0.0.

IPaddressis129.102.100.141,netmaskis255.255.0.0.

ConfigureIPXonthisinterface?[NO]:y

IPXnetworknumberforthisinterface[1]:

Configurebridgeonthisinterface?[YES]

ConfiguringinterfaceSerial0:

Isthisinterfaceinuse?[YES]:

ConfigureIPonthisinterface?[NO]:

ConfigureIPXonthisinterface?[NO]:

Configurebridgeonthisinterface?[YES]

ConfiguringinterfaceSerial1:

Isthisinterfaceinuse?[YES]:

ConfigureIPonthisinterface?[NO]:

ConfigureIPXonthisinterface?[NO]:

Configurebridgeonthisinterface?[YES]

ConfiguringinterfaceSerial2:

Isthisinterfaceinuse?[YES]:

ConfigureIPonthisinterface?[NO]:

ConfigureIPXonthisinterface?[NO]:

Configurebridgeonthisinterface?[YES]

Thefollowingconfigurationwascreated:

hostnameQuidway

enablepassword

snmp-servercommunityro

ipxrouting

bridgecrb

interfaceEthernet0

noshutdown

ipaddress129.102.100.141255.255.0.0

ipxnetwork1

bridgegroup

interfaceSerial0

noshutdown

noipaddress

noipxnetwork

bridgegroup

interfaceSerial1

noshutdown

noipaddress

noipxnetwork

bridgegroup

interfaceSerial2

noshutdown

noipaddress

noipxnetwork

bridgegroup

end

Usethisconfiguration?[yes/no]:

Nowwritingtheconfigurationtoflashmemory.

Writetherunningconfigtoflashmemorysuccessfully.

Pleasereboottherouter.

5. showclock

显示系统当前日期和时钟。

showclock

【命令模式】

特权用户模式

【使用指南】

用户可以通过查看系统日期和时钟,发现如果系统时间有误,可及时调整。

【举例】

Quidway#showclock

8:18:28Jan61999

【相关命令】

clockset

6. showhostname

显示路由器域名。

showhostname

【命令模式】

普通用户模式、特权用户模式

【举例】

Quidway#showhostname

Quidway

【相关命令】

hostname

7. showqueue

显示系统队列状况。

showqueue

【命令模式】

特权用户模式

【使用指南】

该命令显示各个接口的输入和输出队列、IP接

专题页