RGNOS™命令参考手册拨号配置目录1. 第一章配置拨号命令 (1)1.1拨号相关命令 (1)1.1.1 async mode (2)1.1.2 chat-script (3)1.1.3 clear counters (4)1.1.4 clear dialer (6)1.1.5 clear interface (6)1.1.6 clear line (7)1.1.7 debug async (7)1.1.8 debug chat (8)1.1.9 debug dialer (8)1.1.10 debug ppp (8)1.1.11 debug isdn (9)1.1.12 dialer callback-secure (9)1.1.13 dialer enable-timeout (10)1.1.14 dialer fast-idle (11)1.1.15 dialer-group (12)1.1.16 dialer hold-queue (13)1.1.17 dialer idle-timeout (13)1.1.18 dialer in-band (14)1.1.19 dialer-list (15)1.1.20 dialer load-threshold (16)1.1.21 dialer map (17)1.1.22 dialer pool (18)1.1.23 dialer pool-member (19)1.1.24 dialer priority (20)1.1.25 dialer remote-name (21)1.1.26 dialer rotary-group (21)1.1.27 dialer string (22)1.1.28 dialer watch-group (23)1.1.29 dialer watch-list (24)1.1.30 dialer watch-list delay (25)1.1.31 group-range (27)1.1.32 ip address negotiated (27)1.1.33 ip address-pool (28)1.1.34 ip route (29)1.1.35 line (29)1.1.36 map-class dialer (30)1.1.37 modem dialin (31)1.1.38 modem inout (32)1.1.39 peer default ip address (33)1.1.40 ppp callback (34)1.1.41 ppp max-bad-auth (34)1.1.42 ppp multilink (35)1.1.43 pppoe enable (36)1.1.44 pppoe-client (37)1.1.45 script dialer (37)1.1.46 show dialer (38)1.1.47 show ip local pool (39)1.1.48 show ppp multilink (40)1.1.49 show pppoe (40)1.1.50 start-chat (41)1.第一章配置拨号命令1.1拨号相关命令拨号包括以下相关命令:λasync mode dedicatedλchat-scriptλclear countersλclear dialerλclear interfaceλclear lineλdialer callback-secureλdialer enable-timeoutλdialer fast-idleλdialer-groupλdialer hold-queueλdialer idle-timeoutλdialer in-bandλdialer-listλdialer load-thresholdλdialer mapλdialer poolλdialer pool-memberλdialer priorityλdialer remote-nameλdialer rotary-groupλdialer stringλdialer watch-groupλdialer watch-listλdialer watch-list delayλgroup-rangeλinterface dialerλinterface serialλip address negotiatedλip address-poolλip routeλlineλmap-class dialerλmodem dialinλmodem inoutλpeer default ip addressλpool-memberλppp callbackλppp max-bad-authλppp multilinkλreloadλrotaryλrotary-groupλscriptλshow dialerλshow ip local poolλshow ip routeλshow ppp multilinkλstart-chat1.1.1async mode要指定异步拨号的模式,请执行接口配置命令async mode。
该命令的no形式恢复到缺省状态。
async mode dedicatedno async mode【参数说明】dedicated:自动异步拨号模式【缺省设置】不指定异步拨号模式【命令模式】接口配置模式【使用指南】该命令用于指定异步拨号的模式【举例】下面的示例将异步接口1的拨号模式设置为自动异步拨号模式:Ruijie(config)# interface async 1Ruijie(config-if)# async mode dedicated1.1.2chat-script要创建对MODEM进行控制的脚本,请使用全局配置命令chat-script。
该命令的no形式删除指定的脚本。
chat-script script-name expect-sendno chat-script script-name【参数说明】script-name:脚本名称expect-send :脚本命令对:希望接收到的文本和发出的响应命令文本【缺省设置】不定义脚本【命令模式】全局配置模式【使用指南】脚本主要用于MODEM拨号、远程登录以及可能的对MODEM进行管理。
脚本有以下一些特征:λ脚本是区分大小写的。
λ可以配置多个ABORT选项,在发生异常事件时退出脚本的执行。
λ脚本每个命令对之间的缺省超时时间为5秒。
λ引号内的字符串是一个整体。
关于脚本使用更详细的内容,请参考拨号配置中相关章节。
【举例】下面的示例定义一个用于拨号脚本:Ruijie(config)# chat-script Dialout ABORT ERROR ABORTBUSY "" "AT Z" OK "ATDT \T" TIMEOUT 60 CONNECT \c 【相关命令】命令说明dialer map 在接口配置模式中关联拨号脚本或登录脚本script 在线路配置模式中关联MODEM事件的脚本。
1.1.3clear counters要清除接口的统计信息,请执行特权用户配置命令clear counters。
clear counters [ interfece-type interface-number ]【参数说明】interface-type:接口类型,包括Async、Dialer、FastEthernet、Group-Async、Loopback、Null、Serial。
interface-number:接口编号。
【命令模式】特权用户配置模式【使用指南】接口统计信息是通过show interface查看得到的。
使用该命令清除接口的统计信息,主要用于线路调试使用。
【举例】下面的示例是执行该命令的一个输出:Ruijie# show interface async 1Async1 is down, line protocol is downHardware is Async SerialInternet address is 1.1.1.1/24MTU 1500 bytes, BW 9 Kbit, DLY 100000 usec, rely 255/255,load 1/255Encapsulation PPP, loopback not set, keepalive not setDTR is pulsed for 5 seconds on resetLCP ClosedClosed: ipcpLast input 18:17:02, output 18:17:02, output hang neverLast clearing of "show interface" counters neverInput queue: 0/75/0 (size/max/drops); Total output drops:Queueing strategy: weighted fairOutput queue: 0/64/0 (size/threshold/drops)Conversations 0/1 (active/max active)Reserved Conversations 0/0 (allocated/max allocated)5 minute input rate 0 bits/sec, 0 packets/sec5 minute output rate 0 bits/sec, 0 packets/sec1396 packets input, 20516 bytes, 0 no bufferReceived 0 broadcasts, 0 runts, 0 giants1 input errors, 1 CRC, 0 frame, 0 overrun, 0 ignored,0 abort1467 packets output, 22937 bytes, 0 underruns0 output errors, 0 collisions, 11 interface resets0 output buffer failures, 0 output buffers swapped out0 carrier transitionsRuijie# clear countersClear "show interface" counters on all interfaces[confirm]Ruijie#%COUNTERS: Clear counter on all interfaces by consoleRuijie# show interface async1Async1 is down, line protocol is downHardware is Async SerialInternet address is 1.1.1.1/24MTU 1500 bytes, BW 9 Kbit, DLY 100000 usec, rely 255/255,load 1/255Encapsulation PPP, loopback not set, keepalive not setDTR is pulsed for 5 seconds on resetLCP ClosedClosed: ipcpLast input 18:17:15, output 18:17:15, output hang neverLast clearing of "show interface" counters 00:00:02Input queue: 0/75/0 (size/max/drops); Total output drops:Queueing strategy: weighted fairOutput queue: 0/64/0 (size/threshold/drops)Conversations 0/1 (active/max active)Reserved Conversations 0/0 (allocated/max allocated)5 minute input rate 0 bits/sec, 0 packets/sec5 minute output rate 0 bits/sec, 0 packets/sec0 packets input, 0 bytes, 0 no bufferReceived 0 broadcasts, 0 runts, 0 giants0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored,0 abort0 packets output, 0 bytes, 0 underruns0 output errors, 0 collisions, 0 interface resets0 output buffer failures, 0 output buffers swapped out0 carrier transitions【相关命令】命令说明show interface 查看接口统计信息1.1.4clear dialer要清除进行DDR拨号接口的统计信息,请执行特权用户配置命令cleardialer。