本文档中的示例配置说明如何为主速率接口(PRI)配置数字号码识别服务(DNIS)支持以及如何设置调制解调器池。提供了三种配置:
调制解调器池,在池范围中定义多个调制解调器。
调制解调器池,池范围中有一个调制解调器。
调制解调器池,不带池范围。
本文档没有任何特定的要求。
本文档中的信息基于以下软件和硬件版本。
Cisco IOS®软件版本11.3(1.1)T或更高版本。
由Telco调配的PRI,用于DNIS支持。
Cisco AS5x00系列路由器。
注意:Cisco 3600系列路由器上不能有调制解调器池。
本文档中的信息都是基于特定实验室环境中的设备创建的。本文档中使用的所有设备最初均采用原始(默认)配置。如果您是在真实网络上操作,请确保您在使用任何命令前已经了解其潜在影响。
有关文档规则的详细信息,请参阅 Cisco 技术提示规则。
如果您使用远程拨入用户服务(RADIUS)作为身份验证协议,则需要知道RADIUS(IETF)记帐属性30(Station-ID)。
Station-ID允许网络接入服务器(NAS)发送作为接入请求数据包一部分(使用DNIS或类似技术)的用户调用的号码。 仅当Cisco AS5x00与PRI一起使用时,ISDN和调制解调器呼叫才支持Station-ID。
本文档使用如下所示的配置。
池范围中的多个调制解调器
池中的一个调制解调器
没有池范围的调制解调器池
本部分提供有关如何配置本文档所述功能的信息。
注意:要查找有关本文档中使用的命令的其他信息,请使用命令查找工具
本文档使用下图所示的网络设置。
客户拨打5557528并连接到池范围为3到5的调制解调器。在路由器提示符(>)处输入登录用户ID和口令后,第3到5行配置为autocommand telnet用户到特定IP地址。
注意:当您配置被叫号码功能,而不输入max-conn号码时,Cisco路由器默认为池中的调制解调器数。在此示例配置中,配置了调制解调器3到5,因此Cisco IOS软件在called-number命令的末尾输入max-conn 3。
如果更改了池中的调制解调器数量,则必须手动更改max-conn 编号。
此示例配置使用本地身份验证。
池范围中的多个调制解调器 |
---|
Current configuration: ! version 11.3 service timestamps debug datetime msec service password-encryption service udp-small-servers service tcp-small-servers ! hostname isdn2-2 ! aaa new-model ! username cisco password 7 xxxxxxxxx ! modem-pool tito pool-range 3-5 called-number 5557528 max-conn 3 ip domain-name cisco.com isdn switch-type primary-5ess clock timezone PST -8 clock summer-time PDT recurring ! ! controller T1 0 framing esf clock source line primary linecode b8zs pri-group timeslots 1-24 description 5557528 pri ! controller T1 1 framing esf clock source line secondary linecode b8zs ! interface Loopback0 ip address 10.1.1.1 255.0.0.0 ! interface Ethernet0 ip address 172.16.25.52 255.255.255.240 ! interface Serial0 no ip address shutdown ! interface Serial1 no ip address shutdown ! interface Serial0:23 no ip address no ip mroute-cache isdn incoming-voice modem no cdp enable ! interface Group-Async1 no ip address group-range 1 24 ! router eigrp 202 network 172.16.0.0 distance 90 172.16.25.49 0.0.0.0 distance 255 0.0.0.0 255.255.255.255 no auto-summary ! ip default-gateway 172.16.25.49 ip classless ip route 0.0.0.0 0.0.0.0 172.16.25.49 ! line con 0 exec-timeout 0 0 line 1 2 modem InOut line 3 5 modem InOut autocommand telnet 10.1.1.1 line 6 24 modem InOut line aux 0 line vty 0 4 password 7 xxxxx ! end isdn2-2# |
要确保配置正常工作,请使用show和debug命令。这些命令的输出应类似于以下输出。
isdn2-2#show version Cisco Internetwork Operating System Software IOS (tm) 5200 Software (C5200-D-L), Version 11.3(1.1)T, MAINTENANCE INTERIM SOFTWARE Copyright (c) 1986-1998 by cisco Systems, Inc. Compiled Sun 11-Jan-98 07:12 by ccai Image text-base: 0x03034CD4, data-base: 0x00005000 ROM: System Bootstrap, Version 11.1(473), SOFTWARE isdn2-2 uptime is 18 hours, 41 minutes System restarted by reload System image file is "bootflash:c5200-d-l.113-1.1.T", booted via flash cisco AS5200 (68030) processor (revision 0x00) with 16384K/8192K bytes of memory. Processor board ID 03676053 Bridging software. X.25 software, Version 3.0.0. Primary Rate ISDN software, Version 1.0. Mother board without terminator card. 1 Ethernet/IEEE 802.3 interface(s) 26 Serial network interface(s) 24 terminal line(s) 2 Channelized T1/PRI port(s) 128K bytes of non-volatile configuration memory. 8192K bytes of processor board System flash (Read/Write) 8192K bytes of processor board Boot flash (Read ONLY) Configuration register is 0x2101 isdn2-2#
未连接用户时显示modem-pool
调制解调器3、4和5已配置为名为“tito”的调制解调器池,尚未拨入调制解调器。默认池适用于拨号号码未配置为已定义调制解调器池的用户。
isdn2-2#show modem-pool modem-pool: System-def-Mpool !--- default pool modems in pool: 21 active conn: 0 3 no free modems in pool modem-pool: tito !--- modem-pool named 'tito' modems in pool: 3 active conn: 0 0 no free modems in pool called_party_number: 5557528 max conn allowed: 3, active conn: 0 0 max-conn exceeded, 0 no free modems in pool
show modem-pool,连接一个用户
一个用户被拨入并连接到调制解调器5。show modem-pool命令不显示池中使用的调制解调器。
show modem-pool ------------- modem-pool: tito modems in pool: 3 active conn: 1 0 no free modems in pool called_party_number: 5557528 max conn allowed: 3, active conn: 1 0 max-conn exceeded, 0 no free modems in pool
show line命令显示已使用调制解调器5。
isdn2-2#show line Tty Typ Tx/Rx A Modem Roty AccO AccI Uses Noise Overruns * 0 CTY - - - - - 0 0 0/0 1 TTY 115200/115200 - inout - - - 0 0 0/0 2 TTY 115200/115200 - inout - - - 0 0 0/0 3 TTY 115200/115200 - inout - - - 0 0 0/0 4 TTY 115200/115200 - inout - - - 1 0 0/0 * 5 TTY 115200/115200 - inout - - - 1 0 0/0 6 TTY 115200/115200 - inout - - - 0 0 0/0 7 TTY 115200/115200 - inout - - - 0 0 0/0 8 TTY 115200/115200 - inout - - - 0 0 0/0 9 TTY 115200/115200 - inout - - - 0 0 0/0 10 TTY 115200/115200 - inout - - - 0 0 0/0 11 TTY 115200/115200 - inout - - - 0 0 0/0 12 TTY 115200/115200 - inout - - - 0 0 0/0 [remaining output omitted]
使用debug isdn q931命令
注意远程用户拨打的号码。此号码必须与调制解调器池提托下配置的号码匹配。在此场景中,用户的电话号码不重要。
*Mar 1 18:54:31.951: Called Party Number i = 0xC1, '4085557528'
注意:以下一些调试输出行被分成多行以用于打印。
isdn2-2# *Mar 1 18:54:31.935: ISDN Se0:23: RX <- SETUP pd = 8 callref = 0x2B *Mar 1 18:54:31.939: Bearer Capability i = 0x9090A2 *Mar 1 18:54:31.939: Channel ID i = 0xA98393 *Mar 1 18:54:31.943: Progress Ind i = 0x8381 - Call not end-to-end ISDN, may have in-band info *Mar 1 18:54:31.947: Calling Party Number i = '!', 0x83, '4085559486' *Mar 1 18:54:31.951: Called Party Number i = 0xC1, '4085557528' *Mar 1 18:54:31.963: ISDN Se0:23: Incoming call id = 0xA *Mar 1 18:54:31.987: ISDN Se0:23: TX -> CALL_PROC pd = 8 callref = 0x802B *Mar 1 18:54:31.991: Channel ID i = 0xA98393 *Mar 1 18:54:32.023: ISDN Se0:23: TX -> ALERTING pd = 8 callref = 0x802B *Mar 1 18:54:33.067: ISDN Se0:23: TX -> CONNECT pd = 8 callref = 0x802B *Mar 1 18:54:33.143: ISDN Se0:23: RX <- CONNECT_ACK pd = 8 callref = 0x2B isdn2-2#
debug isdn Q931和debug modem csm的输出
用户连接到线路5或调制解调器5调制解调器(插槽/端口)=0/4。呼叫处理是轮询。使用的第一个调制解调器是3,下一个是4,最后一个是5。第一个调制解调器是否可用并不重要。
isdn2-2# show line 5 TTY Typ TX/Rx A Modem Roty AccO AccI Uses Noise Overruns * 5 TTY 115200/115200 - inout - - - 1 0 0/0 Line 5, Location: "", Type: "" Length: 24 lines, Width: 80 columns Baud rate (TX/RX) is 115200/115200, no parity, 1 stopbits, 8 databits Status: Ready, Active, No Exit Banner Capabilities: Hardware Flowcontrol In, Hardware Flowcontrol Out Modem Callout, Modem RI is CD Modem state: Ready modem(slot/port)=0/4, state=CONNECTED dsx1(slot/unit/channel)=2/0/18, status=VDEV_STATUS_ACTIVE_CALL. Modem hardware state: CTS DSR DTR RTS Special Chars: Escape Hold Stop Start Disconnect Activation ^^x none - - none Timeouts: Idle EXEC Idle Session Modem Answer Session Dispatch 00:10:00 never none not set Idle Session Disconnect Warning never Modem type is unknown. Session limit is not set. Time since activation: 00:01:35 Editing is enabled. History is enabled, history size is 10. DNS resolution in show commands is enabled Full user help is disabled Allowed transports are pad telnet rlogin mop. Preferred is telnet. Automatically execute command "telnet 10.1.1.1" No output characters are padded No special data dispatching characters isdn2-2#
调试输出
isdn2-2# %SYS-5-CONFIG_I: Configured from console by console *Mar 1 19:00:07.227: ISDN Se0:23: RX <- SETUP pd = 8 callref = 0x2D *Mar 1 19:00:07.227: Bearer Capability i = 0x9090A2 *Mar 1 19:00:07.231: Channel ID i = 0xA98393 *Mar 1 19:00:07.235: Progress Ind i = 0x8381 - Call not end-to-end ISDN, may have in-band info *Mar 1 19:00:07.239: Calling Party Number i = '!', 0x83, '4085559444' *Mar 1 19:00:07.243: Called Party Number i = 0xC1, '4085557528' *Mar 1 19:00:07.255: ISDN Se0:23: Incoming call id = 0xC *Mar 1 19:00:07.259: EVENT_FROM_ISDN::dchan_idb=0x25B660, call_id=0xC, ces=0x1 bchan=0x12, event=0x1, cause=0x0 *Mar 1 19:00:07.263: VDEV_ALLOCATE: slot 0 and port 4 is allocated. *Mar 1 19:00:07.263: EVENT_FROM_ISDN:(000C): DEV_INCALL at slot 0 and port 4 *Mar 1 19:00:07.267: CSM_PROC_IDLE: CSM_EVENT_ISDN_CALL at slot 0, port 4 *Mar 1 19:00:07.267: Fast Ringing On at modem slot 0, port 4 *Mar 1 19:00:07.291: ISDN Se0:23: TX -> CALL_PROC pd = 8 callref = 0x802D *Mar 1 19:00:07.291: Channel ID i = 0xA98393 *Mar 1 19:00:07.343: ISDN Se0:23: TX -> ALERTING pd = 8 callref = 0x802D *Mar 1 19:00:08.367: Fast Ringing Off at modem slot 0, port 4 *Mar 1 19:00:08.367: CSM_PROC_IC1_RING: CSM_EVENT_MODEM_OFFHOOK at slot 0, port 4 *Mar 1 19:00:08.379: ISDN Se0:23: TX -> CONNECT pd = 8 callref = 0x802D *Mar 1 19:00:08.451: ISDN Se0:23: RX <- CONNECT_ACK pd = 8 callref = 0x2D *Mar 1 19:00:08.463: EVENT_FROM_ISDN::dchan_idb=0x25B660, call_id=0xC, ces=0x1 bchan=0x12, event=0x4, cause=0x0 *Mar 1 19:00:08.467: EVENT_FROM_ISDN:(000C): DEV_CONNECTED at slot 0 and port 4 *Mar 1 19:00:08.471: CSM_PROC_IC4_WAIT_FOR_CARRIER: CSM_EVENT_ISDN_CONNECTED at slot 0, port 4 *Mar 1 19:00:20.939: TTY5: DSR came up *Mar 1 19:00:20.947: tty5: Modem: IDLE->READY *Mar 1 19:00:20.951: TTY5: EXEC creation
show modem-pool,无可用调制解调器
以下输出显示所有调制解调器忙,ISDN呼叫设置拒绝呼叫。
modem-pool: System-def-Mpool modems in pool: 21 active conn: 0 3 no free modems in pool modem-pool: tito modems in pool: 3 active conn: 0 3 no free modems in pool !--- This number is the number of times it has failed to allocate a modem !--- from the pool. It is not the number of modems in the pool.) called_party_number: 5557528 max conn allowed: 3, active conn: 0 !--- 3 is the number of modems configured in the pool tito. !--- None are active. 0 max-conn exceeded, 3 no free modems in pool !--- failed 3 times to allocate a modem from the pool isdn2-2#debug isdn events ISDN events debugging is on isdn2-2# *Mar 1 19:11:26.471: ISDN Se0:23: RX <- SETUP pd = 8 callref = 0x2F *Mar 1 19:11:26.475: Bearer Capability i = 0x9090A2 *Mar 1 19:11:26.479: Channel ID i = 0xA98393 *Mar 1 19:11:26.479: Progress Ind i = 0x8381 - Call not end-to-end ISDN, may have in-band info *Mar 1 19:11:26.483: Calling Party Number i = '!', 0x83, '4085559445' *Mar 1 19:11:26.487: Called Party Number i = 0xC1, '4085557528' *Mar 1 19:11:26.499: ISDN Se0:23: Incoming call id = 0xE *Mar 1 19:11:26.503: CCPRI, state = 0, serv = 0, int_id = 0, lo_chan = 19, type = 3, Dsl_Id = 0, callid = E *Mar 1 19:11:26.507: CCPRI in a Glare situation state 0 serv 0 *Mar 1 19:11:26.511: ISDN Se0:23: received CALL_INCOMING *Mar 1 19:11:26.511: extracted channel ie[0-8]= 18 3 A9 83 93 38 34 33 32 *Mar 1 19:11:26.515: *Mar 1 19:11:26.519: ISDN Se0:23: Event: Received a Voice call from 4085559445 on B19 at 64 Kb/s *Mar 1 19:11:26.519: ISDN Se0:23: CALL_INCOMING: MODEM ERROR 2C: bchan 18, call id E *Mar 1 19:11:26.535: in CCPRI_ReleaseCall bchan is 13 dsl is 0 *Mar 1 19:11:26.539: leaving CCPRI_ReleaseCall, Allocated CCBs = 0 *Mar 1 19:11:26.543: ISDN Se0:23: entering process_rxstate, CALL_CLEARED *Mar 1 19:11:26.615: ISDN Se0:23: TX -> RELEASE_COMP pd = 8 callref = 0x802F *Mar 1 19:11:26.615: Cause i = 0x80AC - Requested channel not available isdn2-2#
池中的一个调制解调器 |
---|
enable password 7 XXXXXXXXXX ! username cisco password 7 xxxxxxxxxxxx ! modem-pool tito pool-range 3 ! -- only modem #3 is configured called-number 5557528 max-conn 1 ip domain-name cisco.com isdn switch-type primary-5ess clock timezone PST -8 clock summertime PDT recurring ! ! |
要确保您的配置正常运行,请使用show命令。此命令的输出应类似于以下输出。
使用一个调制解调器的show modem-pool
以下输出显示一个配置了一个调制解调器的调制解调器池。两个用户同时拨入,一个用户已连接。
isdn2-2# show modem-pool modem-pool: System-def-Mpool modems in pool: 23 active conn: 0 3 no free modems in pool modem-pool: tito modems in pool: 1 active conn: 1 4 no free modems in pool called_party_number: 5557528 max conn allowed: 1, active conn: 1 0 max-conn exceeded, 1 no free modems in pool isdn2-2# show modem-pool modem-pool: System-def-Mpool modems in pool: 23 active conn: 0 3 no free modems in pool modem-pool: tito modems in pool: 1 active conn: 1 4 no free modems in pool called_party_number: 5557528 max conn allowed: 1, active conn: 1 0 max-conn exceeded, 1 no free modems in pool isdn2-2#
在以下输出中,第一个用户保持连接,第二个用户拨入一次,呼叫失败。
isdn2-2# isdn2-2# *Mar 1 19:38:57.103: ISDN Se0:23: RX <- SETUP pd = 8 callref = 0x33 *Mar 1 19:38:57.107: Bearer Capability i = 0x9090A2 *Mar 1 19:38:57.111: Channel ID i = 0xA98394 *Mar 1 19:38:57.111: Progress Ind i = 0x8381 - Call not end-to-end ISDN, may have in-band info *Mar 1 19:38:57.115: Calling Party Number i = '!', 0x83, '4085559474' *Mar 1 19:38:57.119: Called Party Number i = 0xC1, '4085557528' *Mar 1 19:38:57.135: ISDN Se0:23: Incoming call id = 0x12 *Mar 1 19:38:57.139: ISDN Se0:23: CALL_INCOMING: MODEM ERROR 2C: bchan 19, call id 12 *Mar 1 19:38:57.235: ISDN Se0:23: TX -> RELEASE_COMP pd = 8 callref = 0x8033 *Mar 1 19:38:57.239: Cause i = 0x80AC - Requested channel not available isdn2-2# isdn2-2#show modem-pool modem-pool: System-def-Mpool modems in pool: 23 active conn: 0 3 no free modems in pool modem-pool: tito modems in pool: 1 active conn: 1 4 no free modems in pool called_party_number: 5557528 max conn allowed: 1, active conn: 1 1 max-conn exceeded, 1 no free modems in pool isdn2-2#
另一个用户尝试再次拨入,但失败。请注意2 max-conn exceeded语句。
isdn2-2# *Mar 1 19:40:34.143: ISDN Se0:23: RX <- SETUP pd = 8 callref = 0x34 *Mar 1 19:40:34.147: Bearer Capability i = 0x9090A2 *Mar 1 19:40:34.147: Channel ID i = 0xA98394 *Mar 1 19:40:34.151: Progress Ind i = 0x8381 - Call not end-to-end ISDN, may have in-band info *Mar 1 19:40:34.155: Calling Party Number i = '!', 0x83, '4085559486' *Mar 1 19:40:34.159: Called Party Number i = 0xC1, '4085557528' *Mar 1 19:40:34.171: ISDN Se0:23: Incoming call id = 0x13 *Mar 1 19:40:34.179: ISDN Se0:23: CALL_INCOMING: MODEM ERROR 2C: bchan 19, call id 13 *Mar 1 19:40:34.267: ISDN Se0:23: TX -> RELEASE_COMP pd = 8 callref = 0x8034 *Mar 1 19:40:34.271: Cause i = 0x80AC - Requested channel not available isdn2-2# isdn2-2#show modem-pool modem-pool: System-def-Mpool modems in pool: 23 active conn: 0 3 no free modems in pool modem-pool: tito modems in pool: 1 active conn: 1 4 no free modems in pool called_party_number: 5557528 max conn allowed: 1, active conn: 1 2 max-conn exceeded, 1 no free modems in pool isdn2-2#
show modem-pool当第一个用户由于不活动而超时
isdn2-2#show modem-pool modem-pool: System-def-Mpool modems in pool: 23 active conn: 0 3 no free modems in pool modem-pool: tito modems in pool: 1 active conn: 0 4 no free modems in pool called_party_number: 5557528 max conn allowed: 1, active conn: 0 2 max-conn exceeded, 1 no free modems in pool modem-pool: System-def-Mpool !--- This is the default modem pool modems in pool: 23 active conn: 0 !--- There are 24 modems installed on this access server, !--- 23 are available to the default pool, the other !--- modem is available only to modem-pool tito 3 no free modems in pool !--- Three failures to allocate a modem from a pool for a user dialing in modem-pool: tito !--- Pool named tito modems in pool: 1 active conn: 0 !--- One modem configured in this pool, 0 active connections to !--- modems in this pool 4 no free modems in pool !--- Four failed attempts to allocate a modem to a user that dialed in. called_party_number: 5557528 !--- This is the number of the Cisco access-server that the remote user dialed. max conn allowed: 1, active conn: 0 !--- Max connection allowed per pool, 0 active 2 max-conn exceeded, 1 no free modems in pool !--- Failed twice to allocate a modem to the user because the !--- number of connections was exceeded for that pool) isdn2-2#
除pool-range 3-5命令和max-conn参数外,此配置与Pool-Range中的多个调制解调器配置相同。
没有池范围的调制解调器池 |
---|
! modem-pool tito called-number 5557528 max-conn 0 ip domain-name cisco.com isdn switch-type primary-5ess ! |
要确保您的配置正常运行,请使用show命令。此命令的输出应类似于以下输出。
show modem-pool Before First Dial
isdn2-2#show modem-pool modem-pool: System-def-Mpool modems in pool: 24 active conn: 1 3 no free modems in pool modem-pool: tito modems in pool: 0 active conn: 0 4 no free modems in pool called_party_number: 5557528 max conn allowed: 0, active conn: 0 0 max-conn exceeded, 0 no free modems in pool
show modem-pool和debug After User Dials and Fails to Connect
isdn2-2#debug isdn q931 ISDN Q931 packets debugging is on isdn2-2#debug modem Modem control/process activation debugging is on isdn2-2# *Mar 1 19:56:50.827: ISDN Se0:23: RX <- SETUP pd = 8 callref = 0x38 *Mar 1 19:56:50.827: Bearer Capability i = 0x9090A2 *Mar 1 19:56:50.831: Channel ID i = 0xA98393 *Mar 1 19:56:50.835: Progress Ind i = 0x8381 - Call not end-to-end ISDN, may have in-band info *Mar 1 19:56:50.839: Calling Party Number i = '!', 0x83, '4085559474' *Mar 1 19:56:50.843: Called Party Number i = 0xC1, '4085557528' *Mar 1 19:56:50.851: ISDN Se0:23: Incoming call id = 0x17 *Mar 1 19:56:50.859: ISDN Se0:23: CALL_INCOMING: MODEM ERROR 2C: bchan 18, call id 17 *Mar 1 19:56:50.947: ISDN Se0:23: TX -> RELEASE_COMP pd = 8 callref = 0x8038 *Mar 1 19:56:50.951: Cause i = 0x80AC - Requested channel not available isdn2-2# isdn2-2#show modem-pool modem-pool: System-def-Mpool modems in pool: 24 active conn: 0 3 no free modems in pool modem-pool: tito modems in pool: 0 active conn: 0 4 no free modems in pool called_party_number: 5557528 max conn allowed: 0, active conn: 0 1 max-conn exceeded, 0 no free modems in pool
有关具体的验证信息,请参阅上述配置示例。
有关具体的验证信息,请参阅上述配置示例。
版本 | 发布日期 | 备注 |
---|---|---|
1.0 |
09-Sep-2005 |
初始版本 |