图3.3显示了Internet服务提供者的典型小规模拨号情形。Modem管理命令
用于收集调用统计信息和对大型modem池更新modem固件。
modem轮询将物理modem分配给一个单拨号标识服务号(DNIS),从而可以在一个访问服务器中生成物理modem池,对每个modem池指定唯一DNIS,并设置最大的同时连接线数。

图3.4显示了跨地区的大规模Internet服务提供者的拨号情形。

图3.5显示了使用Cisco 36340路由器的企业网典型拨号情形。

这个特性网用于实际划分或虚拟划分一个网络访问服务器中的modem。modem池提供下列好处:
·每个DNIS可以保证一定数量的modem端口。
·每个DNIS可以设置最大的同时连接线数。
下面分几个小节:
·限制
·平台支持
·工作原理
·配置modem池
·验证modem配置
·实际划分拨入/拨出
术语表
·DNIS——拨号标识服务号。同一DNIS不能出现在多个modem池中。即每个modem池应有唯一的DNIS号。
·被调方号(Called party number)——用于拨号访问服务器的DNIS号。例如,假设modem ABC拨号访问服务器DEF。DNIS被调方号就是访问服务器DEF的编号。
·调用方号(Calling party number)——赋予调用设备的电话号码,例如,假设modem ABC拨号访问服务器DEF。调用方号就是modem ABC的号码,且类似于调用者ID。
·modem池——成组并指定一个或几个DNIS的一组物理modem。
具有如下限制:
·modem池不是大型拨号访问的方案,不能通过连接在一起的多个访问服务器上生成虚拟modem池。modem池实际限制为一个访问服务器。
·MICA和Microcom modems支持modem池。但只有MICA modem支持modem池使用与信号相关通道(CAS)的CT1或CE1配置。要对CT1和CE1连接使用modem池,就要在缺省modem池中逆转至少两个modem。这些逆转modem先译码DNIS,再切断分配给modem池的modem通话。如果访问服务器上出现大量的调用失败,则要对缺省modem池指定多个modem。用show modem和show modem summary EXEC命令可以浏览modem调用失败与成功的比率。
·MIB不支持modem池。
·同一DNIS不能出现在多个modem池中。
下列访问服务器支持modem池:
·Cisco AccessPath
·Cisco AS5300
·Cisco AS5200
modem池可以根据DNIS确定通道连接哪个modem。如果不用modem池,则输入和输出调用随机指定给modem。例如,对于一个装有4端口ISDN PRI卡的Cisco AS5300,模拟modem调用进入第一个PRI干线后,遇到一般B通道池和一般modem池。任何B通道可以连接访问服务器上的任何modem,发生随机赋值,而无法控制modem资源。
可以实际划分或虚拟划分modem,以允许不同的拨入和拨出服务。
首先要确定实际划分或虚拟划分modem。确定之后,进行下表所列任务,生成拨入服务或特定客户的modem池,从EXEC配置方式开始。
| 步骤 |
命令 |
用途 |
| 1 |
configure terminal |
访问全局配置方式 |
| 2 |
modem-pool name |
生成modem池并命名 |
| 3 |
pool-range number-number |
对modem池指定modem范围,两个编号之间要有连字符(-) |
| 4 |
called-number number[max-conn number] |
指定这个modem池使用的DNISmax-conn选项指定这个DNIS允许的最大同时连接数,如果不指定max-conn值,则用缺省值(池中总modem数) |
| 5 |
Ctrl Z |
返回EXEC方式 |
| 6 |
Show configuration |
显示运行配置,验证modem池设置,并作相应改变 |
| 7 |
Copy running-config startup-config |
将运行配置保存为启动配置 |
1. DNIS字符串可以用整数x表示该位可取任何数,如555111x。
注意:如果使用modem池前访问服务器上有活动modem通话,则modem池巧妙地将其用于访问服务器。modem池首先等待活动调用挂断,然后将modem赋予modem池并根据DNIS引导通话。
要验证modem配置,输入show modem-pool命令以浏览配置。这个命令显示访问服务器中所有modem池的结构和活动。每个显示字段见表3.3。
as5300# show modem-pol
modem-pool:System-def-Mpool
modems in pool:0 active conn: 0
0 no free modems in pool
modem-pool:v90service
modems in pool:48 active conn:46
8 no free modems in pool
called_party_number:1234
max conn allowed:48,active conn:46
8 max-conn exceeded,8 no free modems in pool
modem-pool: v34service
mdoems in pool: 48 active conn: 35
0 no free modems in pool
called_party_number:5678
max conn allowed: 48,active conn:35
0 max-conn exceeded, 0 no free modems in pool

关于modem池配置的例子,见“物理划分拨入/拨出情形”的部分。
遇到问题时,检查下面几点:
·确保多个池没有配置相同的DNIS。
·确保多个池中没有同一modem。
注意:使用MICA或Microcom modems的modem池支持ISDN PRI上的输入模拟通话,但只有MICA modem支持带通道相关信号的T1和E1配置modem池。
物理划分用一个访问服务器作为装有不同modem服务类型的多个访问服务器(例如V.34 mdoem、传真modem和销售点(POS)modem)。每个modem服务是一个物理modem池的一部分,并指定唯一DNIS号,见图3.6。

物理划分还可以建立双向拨号访问的访问服务器,如图3.7。
图3.7中有一个装有96MICA访问服务器的Cisco AS5300,并配置两个modem池。一个modem池有84个modem并收集DNIS,这个池由400个销售人员共享,从总部远程下载e-mail。另一个modem池包含12个传真modem,不收集DNIS。这个池由局域网上40个使用PC机的员工共享。每次PC机启动向外通话时,Cisco AS5300中的一个modem即用于传真或外拨。传真modem不配置DNIS支持,但可以防止来自该区域的输入通话使用这个池。不管多少销售人员拨入,也不管他们用哪个电话号码,传真/拨出modem池总是留给连接局域网的PC。
下例在Cisco AS5200上生成一个V.34 modem池和一个56K modem池。每个modem池配置自己的DNIS。根据远程客户拨号的DNIS不同,他们连接V.34 Microcom modem或56K MICA modem。
Cisco AS5200上使用下列硬件配置:
·一个两端口T1 PRI卡。
·一个48端口的卡,包含4个6端口MICA 56K modem模块和两个12端口的Microcom V.34 modem模块。
按下列步骤配置基本物理划分:
步骤1 进入全局配置方式:
as5200# configure terminal
Enter configuration commands,one per line.End with ctrl-z
As5200(config)
步骤2 用modem-pool name命令对MICA 56K modem服务生成modem池,这个modem池称为56kservices,在四个6端口MICA 56Kmodem模块上。
as5200(config)# modem-pool 56kservices
as5200(config-modem-pool)#
注意:提示从as5200(config)#或as5200(config-modem-pool)#改变时即已进入modem池配置方式。
步骤3 用pool-range number-number命令将modem范围赋予modem池。由于所有MICA 56K modem都在槽1中,赋予TTY线号1~24。用show line EXEC命令确定访问服务器的TTY线编号方法。
as5200(config-modem-pool)# pool-range 1-24
步骤4 用called-number number[max-conn number]命令对modem池指定DNIS。本例用DNIS 5551111连接MICA 56K modem。最大同时连接线数设置为24。第25个用户拨号5551111时出现忙信号。
as5200(config-modem-pool)# called-number 5551111 max-conn 24
步骤5 按Ctrl-Z返回EXEC方式。然后用show modem-pool命令显示modem池配置。本例中,56K modem在modem池56kservices中。余下的24个v.34 Microcom modems仍然在缺省系统池中。
as5200(config-modem-pool)# ^Z
as5200# show modem-pool
modem-pool:System-def-Mpool
modems in pool:24 active conn: 0
0 no free modems in pool
modem-pool:56kservices
modems in pool:24 active conn: 0
0 no free modems in pool
called_party_number: 5551111
max conn allowed: 24,active conn: 0
0 max-conn exceeded,0 no free modems in pool
步骤6 为Microcom物理划分成modem池。配置完成后,showmodem-pool命令显示缺省系统池中已经没有多余modem。
as5200# configure terminal
Enter configuration commands,one per line.End with ctrl-z.
as5200(config)# modem-pool v34services
as5200(config-modem-pool)# pool-range 25-48
as5200(config-modem-pool)# called-number 5552222 max-conn 24
as5200(config-modem-pool)# ^z
as5200# show modem-pool
modem-pool:System-def-Mpool
modems in pool:0 active conn:0
0 no free modems in pool
called_party_number:5551111
max conn allowed:48,active conn:0
0 max-conn exceeded,0 no free modems in pool
modem-pool:v34services
modems in pool:48 active conn: 0
0 no free modems in pool
called_party_number:5552222
max conn allowed:48,active conn:0
0 max-conn exceeded,0 no free modems in pool
as5200# copy running-config startup-config
下例是使用Cisco AS5300的双向拨号情形,配置了两个modem池。一个modem池包含84个56K MICA modems,由400个拨入总部的远程销售人员共享;另一个modem包含12个传真modem,由40个用Cisco DialOut Utility软件拨出总部局域网的员工共享。图3.7显示了网络拓扑。

Cisco 56K modem中使用下列硬件配置:
·一个4端口的T1 PRI卡。
·两个48端口卡,包含14个6端口MICA 56K modem模块和两个6端口MICA传真modem模块。
按下列步骤配置拨入/拨出功能的物理划分:
步骤1 对400个远程销售人员生成56K modem池。这个modem池包含84个modem,用于拨入通话。要访问时,销售人员拨号DNIS5553333,同时总通话数限于84,第85以上调用会被拒绝。modemdialin线配置命令防止modem 1到84拨出。
as5300# configure terminal
Enter configuration commands,one per line.End with ctrl-z.
as5300(config)# modem-pool 56ksalesfolks
as5200(config-modem-pool)# pool-range 1-84
as5200(config-modem-pool)# called-number 5553333 max-conn 84
as5200(config-modem-pool)# exit
as5300(config)# line 1 84
as5300(config)# modem dialin
as5300(config)# transport input all
as5300(config)# rotary 1
as5300(config)# autoselect ppp
as5300(config)# exit
as5300(config)#
步骤2 对40个连接总部局域网的本地员工生成拨出/传真modem池。这个modem池包含12个MICA传真modem,不指定DNIS。由于线85~96用于拨出/传真modem服务,因此对逆向telnet配置异步线,这样就使telnet扩展成适用于拨出应用程序,其安装在LAN PC机上。
as5300(config)# modem-pool dialoutfolks
as5300(config-modem-pool)# pool-range 85-96
as5300(config-modem-pool)# exit
as5300(config)# line 85-96
as5300(config-line)# resfuse-message z [!NMM!] No Modems→Available z
as5300(config-line)# exec-timeout 0 0
as5300(config-line)# autoselect during-login
as5300(config-line)# autoselect ppp
as5300(config-line)# modem inout
as5300(config-line)# rotary 1
as5300(config-line)# transport preferred telnet
as5300(config-line)# transport input all
as5300(config-line)# exit
as5300(config)#
步骤3 配置组异步接口,对系统中的所有异步接口指定核心协议特性。不管modem拨号方向如何,所有访问服务器中的modem都利用这个组异步接口。
as5300(config)# interface group-async 1
as5300(config-if)# ip unnumbered ethernet 0
as5300(config-if)# encapsulation ppp
as5300(config-if)# async mode interactive
as5300(config-if)# ppp authentication chap pap paplocal
as5300(config-if)# peer default ip address pool→bidir_dial_pool
as5300(config-if)# no cdp enable
as5300(config-if)# no ip mroute cache
as5300(config-if)# no ip route cache
as5300(config-if)# async dynamic routing
as5300(config-if)# async dynamic address
as5300(config-if)# group range 1-96
Building configuration....
as5300(config-if)# exit
as5300(config)#
步骤4 对所有拨入客户和拨出客户生成IP地址池。两种客户机都从这个共享池借用地址。
as5300(config)# ip local pool bidir_dial_pool 10.4.1.1
→10.4.1.96
as5300(config)# ^z
as5300# copy running-config startup-config
步骤5 (可选)如果使用CiscoSecure AAA和远程TACACS服务器,则访问服务器中要包括下列安全语句:
aaa new-model
aaa authentication login default tacacs+
aaa authentication login no
aaa localaaa authentication login logingac tacacs+
aaa authentication ppp ppptac tacacs+
aaa authentication ppp paplocal local
aaa authorization exec tacacs+
aaa authorization network tacacs+
aaa authorization reverse-access tacacs+
aaa accounting exec start-stop tacacs+
aaa accounting network start-stop tacacs+
aaa accounting update newinfoenable password cisco
还应包括主机名、超时间隔和验证键:
tacacs-server host 10.4.1.10
tacacs-server timeout 20