Quidway 路由器系统基本命令( 二 )


【举例】
Quidway(config)#help
Help;may;be;requested;at;any;point;in;a;command;by;entering
a;question;mark;"?".;If;nothing;matches,;the;help;list;will
be;empty.
Two;styles;of;help;are;provided:
1.;Full;help;is;available;when;you;are;ready;to;enter;a
command;argument;(;e.g.;"show;?";);and;describes;each
possible;argument.
2.;Partial;help;is;provided;when;an;abbreviated;argument
is;entered;and;you;want;to;know;what;arguments;match
the;input;(;e.g.;"show;sn?";).
1.1.7;interface
用户使用interface命令进入到接口配置模式 。
[;no;];interface;{;{;ethernet;;serial;;bri;;dialer;;virtual-template;};interface-number;;interface-name;}
【参数说明】
(1)接口类型
Quidway(R)系列路由器目前支持的接口类型有:
Ethernet
Serial
Bri
Dialer
Virtual-template
其中,Ethernet、Serial和Bri属于物理接口,而Dialer、Virtual-template为逻辑接口;串口又包括异步串口、同异步串口、CE1/PRI通道接口(channel-group和pri-group)等,部分物理接口又支持子接口 。
(2)接口编号interface-number
上述五类接口分别编号,每类接口的编号从0开始:
在不同型号的路由器上,物理接口都有各自的编号,对于channel-group类CE1/PRI通道接口,其编号为e1-interface-number;:;channel-group-number;
对于pri-group类CE1/PRI通道接口,其编号为e1-interface-number;:;15;
对于其它逻辑接口如Dialer或Virtual-template,根据其创建先后顺序编号;
对于子接口,其编号为physical-interface-number;.;sub-interface-number 。
(3)接口名interface-name
在了解接口编号规则之后,即可知道接口的命名,接口名为接口类型 接口编号 。如Ethernet0表示编号为0的以太网口,Serial0.1表示接口Serial0的第1个子接口,Serial3:2表示编号为3的CE1/PRI接口的第2个channel-group 。
为了方便用户输入,接口名中接口类型可以简写(只取前几个字母,与其它接口类型不冲突即可),如Ethernet0可以简写为e0,Serial0.1可以简写为s0.1 。
(4)no
no;interface命令可以删除部分用户定义的逻辑接口(如Dialer、Virtual-template等)和子接口 。
【命令模式】
全局配置模式、路由协议配置模式、接口配置模式、逻辑通道配置模式、虚拟接口配置模式和VPDN组配置模式等 。
【使用指南】
执行interface命令不仅可以进入物理接口的配置模式,也可以根据用户需要创建逻辑接口 。在与接口配置模式同一级别的全部配置模式下都可以执行interface命令而切换到相应的接口配置模式 。
【举例】
例1:从全局配置模式进入到以太网口配置模式 。
Quidway(config)#interface;ethernet;0
Quidway(config-if-Ethernet0)#
从接口Ethernet0配置模式切换到子接口Serial0.1配置模式 。
Quidway(config-if-Ethernet0)#interface;serial0.1
Quidway(config-if-Serial0.1)#
【相关命令】
exit
1.1.8;;;language
用户使用language命令可以切换命令行接口的语言模式 。
language
【缺省情况】
缺省为英文模式
【命令模式】
特权用户模式
【使用指南】
为了方便国内广大用户,Quidway(R);系列路由器的命令行接口除支持英文模式外还支持中文模式 。
【举例】
将英文模式切换为中文模式 。
Quidway(config)#language
Current;Language;:;ENGLISH
Will;You;switch;language;mode;?(Y/N)y
You;have;changed;the;language;mode;.
1.1.9;;;logic-channel
用户使用logic-channel命令进入相关的逻辑通道配置模式 。
logic-channel;logic-channel-number
【参数说明】
logic-channel-number为逻辑通道编号,范围1~255 。

推荐阅读