当前位置:文档之家› telnet路由器常用命令详解

telnet路由器常用命令详解

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

1. clockset

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

clocksethour:minute:seconddaymonthyear

【参数说明】

hour:minute:second为当前时钟,hour范围为1~24,minute和second范围为1~60。

year、month和day分别为当前年、月和日,year范围为1997~2025,month范围为1~12,day范围为1~31。

【缺省情况】

系统启动时缺省为1997年1月1日0:0:0。

【命令模式】

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

【使用指南】

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

【举例】

设置路由器当前日期为2000年1月1日0时0分0秒。

Quidway#clockset0:0:0112000

【相关命令】

showclock

2. hostname

设置路由器的域名。

hostnamehostname

【参数说明】

hostname为一字符串。

【缺省情况】

路由器缺省域名为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]:

原文链接:https://www.doczj.com/doc/924137166.html,/html/edu/wlyy/56.html 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接收队列、ARP接收队列和IPX接收队列的当前长度、最大长度、丢弃报文数以及队首和队尾指针等内容。该命令一般用于技术支持人员进行错误诊断。

【举例】

Quidway#showqueue

InterfaceDialer1:

Sendqueue:

Currentlength:0,Queuelimitlength75,Drops:0 Queuehead--$#@62;0x0,Queuetail--$#@62;0x0 Receivequeue:

Currentlength:0,Queuelimitlength75,Drops:0 Queuehead--$#@62;0x0,Queuetail--$#@62;0x0 InterfaceEthernet0:

Sendqueue:

Currentlength:0,Queuelimitlength75,Drops:0 Queuehead--$#@62;0x0,Queuetail--$#@62;0x0 Receivequeue:

Currentlength:2,Queuelimitlength75,Drops:0 Queuehead--$#@62;0x7de480,Queuetail--$#@62;0x7de400 InterfaceLoopBack0:

Sendqueue:

Currentlength:0,Queuelimitlength75,Drops:0 Queuehead--$#@62;0x0,Queuetail--$#@62;0x0 Receivequeue:

Currentlength:0,Queuelimitlength75,Drops:0 Queuehead--$#@62;0x0,Queuetail--$#@62;0x0 InterfaceSerial0:

相关主题
文本预览
相关文档 最新文档