📄 第一章 系统基本命令.htm
字号:
<P><FONT color=#333300>设置路由器当前日期和时钟。</FONT></P>
<P><FONT color=#333300><B>clock</B> <B>set</B>
<I>hour</I>:<I>minute</I>:<I>second</I> <I>day</I>
<I>month</I> <I>year</I></FONT></P>
<P><FONT color=#333300 size=3>【参数说明】</FONT></P>
<P><FONT
color=#333300><I>hour</I>:<I>minute</I>:<I>second</I>为当前时钟,<I>hour</I>范围为1~24,<I>minute</I>和<I>second</I>范围为1~60。</FONT></P>
<P><FONT
color=#333300><I>year</I>、<I>month</I>和<I>day</I>分别为当前年、月和日,
<I>year</I>范围为1997~2025,<I>month</I>范围为1~12,<I>day</I>范围为1~31。</FONT></P>
<P><FONT color=#333300 size=3>【缺省情况】</FONT></P>
<P><FONT color=#333300>系统启动时缺省为1997年1月1日0:0:0。</FONT></P>
<P><FONT color=#333300 size=3>【命令模式】</FONT></P>
<P><FONT color=#333300>普通用户模式、特权用户模式</FONT></P>
<P><FONT color=#333300 size=3>【使用指南】</FONT></P>
<P><FONT color=#333300>由于Quidway<SUP>(R)</SUP>
系列路由器在下电后不能继续计时,因此在需要严格获取绝对时间的应用环境中,必须设定路由器的当前日期和时钟。</FONT></P>
<P><FONT color=#333300 size=3>【举例】</FONT></P>
<P><FONT color=#333300>设置路由器当前日期为2000年1月1日 0时0分0秒。</FONT></P>
<P><FONT color=#333300>Quidway#clock set 0:0:0 1 1
2000</FONT></P>
<P><FONT color=#333300 size=3>【相关命令】</FONT></P>
<P><FONT color=#333300><B>show</B> <B>clock</B></FONT></P>
<H4><FONT color=#333300><A name="1.3.2 hostname"><BIG>1.3.2
hostname</BIG></A></FONT></H4>
<P><FONT color=#333300>设置路由器的域名。</FONT></P>
<P><FONT color=#333300><B>hostname</B>
<I>hostname</I></FONT></P>
<P><FONT color=#333300 size=3>【参数说明】</FONT></P>
<P><FONT color=#333300><I>hostname</I>为一字符串。</FONT></P>
<P><FONT color=#333300 size=3>【缺省情况】</FONT></P>
<P><FONT color=#333300>路由器缺省域名为Quidway。</FONT></P>
<P><FONT color=#333300 size=3>【命令模式】</FONT></P>
<P><FONT color=#333300>全局配置模式</FONT></P>
<P><FONT color=#333300 size=3>【使用指南】</FONT></P>
<P><FONT
color=#333300>修改路由器的域名将影响命令行接口的提示符,如路由器的域名为Quidway,特权用户模式下的提示符为Quidway#。</FONT></P>
<P><FONT color=#333300 size=3>【举例】</FONT></P>
<P><FONT color=#333300>设置路由器的域名为QuidwayR2501。</FONT></P>
<P><FONT color=#333300>Quidway#hostname
QuidwayR2501</FONT></P>
<P><FONT color=#333300>QuidwayR2501#</FONT></P>
<P><FONT color=#333300 size=3>【相关命令】</FONT></P>
<P><FONT color=#333300><B>show</B> <B>hostname</B></FONT></P>
<H4><FONT color=#333300><A name="1.3.3 reboot"><BIG>1.3.3
reboot</BIG></A></FONT></H4>
<P><FONT color=#333300>重启路由器。</FONT></P>
<P><FONT color=#333300><B>reboot</B></FONT></P>
<P><FONT color=#333300 size=3>【命令模式】</FONT></P>
<P><FONT color=#333300>特权用户模式</FONT></P>
<P><FONT color=#333300 size=3>【使用指南】</FONT></P>
<P><FONT
color=#333300>该命令功能与路由器下电再上电效果相同,但在对路由器远程维护时,不需用户到路由器所在地重启路由器,而直接在远地即可重启路由器。</FONT></P>
<P><FONT
color=#333300>在一般情况下,禁止使用该命令,因为它将导致网络工作在短时间内瘫痪,另外在重启路由器时,要确保路由器配置文件是否需要保存。</FONT></P>
<P><FONT color=#333300 size=3>【举例】</FONT></P>
<P><FONT color=#333300>重新启动路由器。</FONT></P>
<P><FONT color=#333300>Quidway#reboot</FONT></P>
<P><FONT color=#333300>WARNING: System will REBOOT!
Continue?[Y/N]y</FONT></P>
<P><FONT color=#333300>System is now rebooting, please
wait.</FONT></P>
<H4><FONT color=#333300><A name="1.3.4 setup"><BIG>1.3.4
setup</BIG></A></FONT></H4>
<P><FONT color=#333300>以交互方式引导用户对路由器运行所必需的基本参数进行配置。</FONT></P>
<P><FONT color=#333300><B>setup</B></FONT></P>
<P><FONT color=#333300 size=3>【缺省情况】</FONT></P>
<P><FONT
color=#333300>在配置某参数时,如果当前该参数已经配置,则显示其当前值作为缺省值,用户不作修改可以直接键入回车即可。</FONT></P>
<P><FONT color=#333300 size=3>【命令模式】</FONT></P>
<P><FONT color=#333300>特权用户模式</FONT></P>
<P><FONT color=#333300 size=3>【使用指南】</FONT></P>
<P><FONT
color=#333300>当用户首次将路由器上电启动时,系统将自动执行setup引导用户对路由器运行所必需的参数进行配置,这些参数包括:</FONT>
<UL type=disc>
<LI><FONT color=#333300>路由器域名</FONT>
<LI><FONT color=#333300>特权用户口令</FONT>
<LI><FONT color=#333300>SNMP参数</FONT>
<LI><FONT color=#333300>选择IP、IPX和桥等网络协议</FONT>
<LI><FONT color=#333300>各接口的IP地址、IPX网络号和是否启动桥等</FONT>
</LI></UL>
<P><FONT color=#333300>另外setup作为一条命令,特权用户可以随时执行。</FONT></P>
<P><FONT color=#333300 size=3>【举例】</FONT></P>
<P><FONT color=#333300>Quidway#setup</FONT></P>
<P><FONT color=#333300>--- System Configuration Dialog
---</FONT></P>
<P align=right><FONT color=#333300><=简单提示信息</FONT></P>
<P><FONT color=#333300>At any point you may enter a question
mark '?' for help.</FONT></P>
<P><FONT color=#333300>Default settings are in square brackets
'[]', if you do</FONT></P>
<P><FONT color=#333300>not change the default settings, you
may input enter.</FONT></P>
<P><FONT color=#333300>Continue with configuration dialog?
[yes]:y</FONT></P>
<P><FONT color=#333300>Firstly, would you like to see the
current interface summary? [yes]:y</FONT></P>
<P><FONT color=#333300>Interface IP-Address OK? Status
Protocol</FONT></P>
<P><FONT color=#333300>Ethernet0 129.102.100.141 yes down
up</FONT></P>
<P><FONT color=#333300>Serial0 yes up down</FONT></P>
<P><FONT color=#333300>Serial1 yes up down</FONT></P>
<P><FONT color=#333300>Serial2 yes up down</FONT></P>
<P><FONT color=#333300>Configuring global
parameters:</FONT></P>
<P><FONT color=#333300>Enter host name [Quidway]:</FONT></P>
<P><FONT color=#333300>Enter enable password []:</FONT></P>
<P><FONT color=#333300>Configure SNMP Network Management?
[YES]:</FONT></P>
<P><FONT color=#333300>Community string []:public</FONT></P>
<P><FONT color=#333300>Configure IP? [yes]:</FONT></P>
<P><FONT color=#333300>Configure IPX? [NO]:y</FONT></P>
<P><FONT color=#333300>Configure Bridge? [YES]:</FONT></P>
<P><FONT color=#333300>Configuring interface
Ethernet0:</FONT></P>
<P><FONT color=#333300>Is this interface in use?
[YES]:</FONT></P>
<P><FONT color=#333300>Configure IP on this interface?
[YES]:</FONT></P>
<P><FONT color=#333300>IP address for this interface
[129.102.100.141]:</FONT></P>
<P><FONT color=#333300>Netmask [255.255.0.0]:</FONT></P>
<P><FONT color=#333300>Class B network is
129.102.0.0.</FONT></P>
<P><FONT color=#333300>IP address is 129.102.100.141, netmask
is 255.255.0.0.</FONT></P>
<P><FONT color=#333300>Configure IPX on this interface?
[NO]:y</FONT></P>
<P><FONT color=#333300>IPX network number for this interface
[1]:</FONT></P>
<P><FONT color=#333300>Configure bridge on this interface?
[YES]</FONT></P>
<P><FONT color=#333300>Configuring interface
Serial0:</FONT></P>
<P><FONT color=#333300>Is this interface in use?
[YES]:</FONT></P>
<P><FONT color=#333300>Configure IP on this interface?
[NO]:</FONT></P>
<P><FONT color=#333300>Configure IPX on this interface?
[NO]:</FONT></P>
<P><FONT color=#333300>Configure bridge on this interface?
[YES]</FONT></P>
<P><FONT color=#333300>Configuring interface
Serial1:</FONT></P>
<P><FONT color=#333300>Is this interface in use?
[YES]:</FONT></P>
<P><FONT color=#333300>Configure IP on this interface?
[NO]:</FONT></P>
<P><FONT color=#333300>Configure IPX on this interface?
[NO]:</FONT></P>
<P><FONT color=#333300>Configure bridge on this interface?
[YES]</FONT></P>
<P><FONT color=#333300>Configuring interface
Serial2:</FONT></P>
<P><FONT color=#333300>Is this interface in use?
[YES]:</FONT></P>
<P><FONT color=#333300>Configure IP on this interface?
[NO]:</FONT></P>
<P><FONT color=#333300>Configure IPX on this interface?
[NO]:</FONT></P>
<P><FONT color=#333300>Configure bridge on this interface?
[YES]</FONT></P>
<P><FONT color=#333300>The following configuration was
created:</FONT></P>
<P><FONT color=#333300>hostname Quidway</FONT></P>
<P><FONT color=#333300>enable password</FONT></P>
<P><FONT color=#333300>snmp-server community ro</FONT></P>
<P><FONT color=#333300>ipx routing</FONT></P>
<P><FONT color=#333300>bridge crb</FONT></P>
<P><FONT color=#333300>interface Ethernet0</FONT></P>
<P><FONT color=#333300>no shutdown</FONT></P>
<P><FONT color=#333300>ip address 129.102.100.141
255.255.0.0</FONT></P>
<P><FONT color=#333300>ipx network 1</FONT></P>
<P><FONT color=#333300>bridge group</FONT></P>
<P><FONT color=#333300>interface Serial0</FONT></P>
<P><FONT color=#333300>no shutdown</FONT></P>
<P><FONT color=#333300>no ip address</FONT></P>
<P><FONT color=#333300>no ipx network</FONT></P>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -