
参加免费公开课,请您说是由【攻城狮论坛】推荐的。报名收费培训的论坛会员,可享受优惠价格+赠送攻城狮论坛VIP会员。本文转自 三旗培训 http://www.37vi.com/,版权归原作者所有。························································
Task 10.1 按照配置文档的需求在R1上来配置T1控制器并且开启使用MGCP
MGCP(定义在RFC2705下)是一个主/仆协议,在一个特定的端口允许一个呼叫控制设备(列如Cisco CallManager)。它的优势是集中式的网关用户,并且供应了大量的可扩展的IP电话解决方案。这个协议,在网关上Cisco CallManager知道和控制每个单独的端口状态。它允许拨号计划从Cisco CallManager来完成控制,并且给予CallManager端口控制以连接publicswitched telephone network(PSTN),传统的PBX,语音邮件系统,普通老式的电话服务(POTS)电话,等等。在Cisco CallManager和网关之间使用User Datagram Protocol(UDP) port 2427。MGCP是以PRI回传来实现Cisco CallManager。这取决于当Cisco CallManager控制的Q.931信令数据被一个ISDNPRI使用的时候。
这个配置文件的需求是,使用PRI信令,ESF框架,和B8ZS线路解码。ISDN交换类型必须是Primary-NI,并且T1只使用timeslots 1– 3。
首先我们必须验证语音卡的类型被使用来创建T1 PRI关联。我们可以在R1路由器上使用show inventory命令来检查。
R1&
R1#show inventory
NAME: "CISCO2911/K9", DESCR: "CISCO2911/K9 chassis, Hw Serial#:FTX1718AL6V, Hw Revision: 1.0"
PID: CISCO2911/K9 ,VID: V07 , SN: FTX1718AL6V
NAME: "VWIC3-1MFT-T1/E1 -1-Port RJ-48 Multiflex Trunk - T1/E1 on Slot 0 SubSlot 0",DESCR: "VWIC3-
1MFT-T1/E1 - 1-Port RJ-48 Multiflex Trunk - T1/E1"
PID: VWIC3-1MFT-T1/E1 , VID: V01 , SN: FOC1752534Y
NAME: "WAN Interface Card - HWIC Serial 2T on Slot 0 SubSlot 1",DESCR: "WAN Interface Card - HWIC
Serial 2T"
PID: HWIC-2T , VID: V05 , SN: FOC17383EV1
NAME: "PVDM3 DSP DIMM with 128 Channels on Slot 0 SubSlot 4",DESCR: "PVDM3 DSP DIMM with 128
Channels"
PID: PVDM3-128 , VID: V01 , SN: FOC18013HAA
NAME: "C2911 AC Power Supply", DESCR: "C2911 AC Power Supply"
PID: PWR-2911-AC , VID: V05 , SN: DCA1708R1DY
从上面的输出我们可以看到VWIC331MFT3T1/E1卡是可用的,在R1上是slot 0,sub-slot 0。在路由器里面,这个类型的卡可以结束一个T1或者E1依靠上面的配置。在这个任务,我们要求配置一个T1 PRI,所以我们必须告诉路由器使用T1机制VWIC3卡。要使用card type命令。
R1&
R1(config)#card type t1 0 0
上面的配置激活了slot0, sub-slot 0来作为一个T1控制器。在R1里面的IOS将立刻允许配置t1 controller 0/0/0。network-clock-participate命令被使用,为了允许T1端口在VWIC卡上面使用网络时间。
R1&
R1(config)#network-clock-participate wic ?
<0-3> SlotNumber (physical)
R1(config)#network-clock-participate wic 0
接着,network-clock-select命令应该要被使用,为了选择一个网络时间源。如果没有这个命令,本地路由器不会查询时间源,导致T1 PRI报错或者忽略时间。下面的输出是还没有配置network-clock-select命令之前T1的输出。
R1&
R1#show controllers t1 0/0/0
T1 0/0/0 is up.
Appliquetype is Channelized T1
Cablelength is long0db
No alarmsdetected.
alarm-trigger is notset
Soakingtime: 3, Clearance time: 10
AISState:Clear LOS State:Clear LOF State:Clear
Versioninfo FPGA Rev: 08121917, FPGA Type: PRK1
Framing isESF, Line Code is B8ZS, Clock Source is Line.
CRCThreshold is 320. Reported from firmware is 320.
Data incurrent interval (381 seconds elapsed):
0Line Code Violations, 0 Path Code Violations
3Slip Secs, 0 Fr Loss Secs, 0 Line Err Secs, 0 Degraded Mins
3Errored Secs, 0 Bursty Err Secs, 0 Severely Err Secs, 0 UnavailSecs
Data inInterval 1:
0Line Code Violations, 0 Path Code Violations
6Slip Secs, 0 Fr Loss Secs, 0 Line Err Secs, 0 Degraded Mins
6Errored Secs, 0 Bursty Err Secs, 0 Severely Err Secs, 0 UnavailSecs
Data inInterval 2:
0Line Code Violations, 0 Path Code Violations
6SlipSecs, 0 Fr Loss Secs, 0 Line Err Secs, 0 Degraded Mins
6ErroredSecs, 0 Bursty Err Secs, 0 Severely Err Secs, 0 Unavail Secs
...
上面的输出你可以看出,T1忽略接收并且错误由于缺乏网络时钟选择。show networkclocks命令也只可以看到“Backplane”时间源是被使用的。
R1&
R1#show network-clocks
NetworkClock Configuration
---------------------------
Priority Clock Source ClockState Clock Type
10 Backplane GOOD PLL
CurrentPrimary Clock Source
---------------------------
Priority Clock Source ClockState Clock Type
10 Backplane GOOD PLL
现在,让我们来输入network-clock-select命令,并且配置优先级为1,清理接口计数器,来看看会发生什么。
R1&
R1(config)#network-clock-select 1 t1 0/0/0
Oct 15 01:03:17.580: %MARS_NETCLK-3-CLK_TRANS: Network clock sourcetransitioned from priority 10 to
priority 1
R1#sh controllers t1 0/0/0
T1 0/0/0 is up.
Appliquetype is Channelized T1
Cablelength is long0db
No alarmsdetected.
alarm-trigger is notset
Soakingtime: 3, Clearance time: 10
AISState:Clear LOS State:Clear LOF State:Clear
Versioninfo FPGA Rev: 08121917, FPGA Type: PRK1
Framing isESF, Line Code is B8ZS, Clock Source is Line.
CRCThreshold is 320. Reported from firmware is 320.
Data incurrent interval (123 seconds elapsed):
0Line Code Violations, 0 Path Code Violations
0Slip Secs, 0 Fr Loss Secs, 0 Line Err Secs, 0 Degraded Mins
0Errored Secs, 0 Bursty Err Secs, 0 Severely Err Secs, 0 UnavailSecs
Data inInterval 1:
0Line Code Violations, 0 Path Code Violations
0Slip Secs, 0 Fr Loss Secs, 0 Line Err Secs, 0 Degraded Mins
0Errored Secs, 0 Bursty Err Secs, 0 Severely Err Secs, 0 UnavailSecs
Data inInterval 2:
0Line Code Violations, 0 Path Code Violations
0Slip Secs, 0 Fr Loss Secs, 0 Line Err Secs, 0 Degraded Mins
0Errored Secs, 0 Bursty Err Secs, 0 Severely Err Secs, 0 UnavailSecs
R1#sh network-clocks
NetworkClock Configuration
---------------------------
Priority Clock Source ClockState Clock Type
1 T1 0/0/0 GOOD T1
10 Backplane GOOD PLL
CurrentPrimary Clock Source
---------------------------
Priority Clock Source ClockState Clock Type
1 T1 0/0/0 GOOD T1
上面的输出你可以看到,T1没有更长的报错了,并且T1被做为主要的时间源。
现在,网络时间已经设置好了,我们必须定义全局交换类型。在这里,需求要求是必须为ISDNPrimary-NI交换类型。这可以在IOS里定义在全局层面下。
R1&
R1(config)#isdn switch-type primary-ni
接着,我们终于准备去配置T1控制器了。记住,需求是规定使用ESF框架和B8ZS线路解码。然而这里什么都不必去做,因为T1默认使用同样的框架和线路解码。这里只要配置一个PRI,使用pri-group命令。我们还必须按照需求定义timeslots 1– 3。
R1&
R1(config)#controller t1 0/0/0
R1(config-controller)#pri-group timeslots 1-3 servicemgcp
当这个命令被输入,它自动的产生一个Serial interface和一个voice-port作为ISDN D-Channel。
R1&
R1#sh run int s0/0/0:23
Building configuration...
Current configuration : 164 bytes
!
interface Serial0/0/0:23
no ipaddress
encapsulation hdlc
isdnswitch-type primary-ni
isdnincoming-voice voice
no cdp enable
end
R1#sh run | sec voice-port
voice-port 0/0/0:23
Serialinterface将作为激活Q.931的回传服务到call-agent(CUCM)。记住,MGCP是一个客户端/服务器协议,网关是作为服务器,CUCM是作为服务器。所有的拨号计划都是定义在CUCM服务器上面的。这个通信是发生在TCP port 2428上面。
来配置回传,输入配置产生的Serial interface(Serial0/0/0:23),并且使用isdnbind-l3命令。
R1&
R1(config)#interface Serial0/0/0:23
R1(config-if)#isdn bind-l3 ccm-manager
上面是配置MGCP回传。接着我们必须在全局模式下做一些基本的MGCP命令。mgcp call-agent命令设置主要的CUCM服务器IP地址。这里,HQ CUCM sub是主要的选项。接着,“Call ManagerApplication”必须开启,使用ccm-managermgcp命令。最后,我们必须启动mgcp,使用mgcp命令。
R1&
R1(config)#mgcp call-agent142.100.64.12
R1(config)#ccm-manager mgcp
R1(config)#mgcp
我们现在应该可以检查网关和CUCM服务器的状态。使用showccm-manager命令。我们期待状态是“Registering”,因为CUCM还没有配置。
R1&
R1#show ccm-manager
MGCP Domain Name: R1
Priority Status Host
============================================================
Primary Registering withCM 10.10.13.12
First Backup None
Second Backup None
Current active Call Manager: None
Backhaul/Redundant link port: 2428
Failover Interval: 30 seconds
Keepalive Interval: 15 seconds
...
我们也检查T1PRI的状态,使用show isdnstatus命令。注意这个输出,Q.931是回传到CUCM。这更重要的输出是2层的状态。这里,它是作为TEI_ASSIGNED,这意味着PRI当前与PSTN没有交换的2层框架。这是我们所期望的,因为我们现在还没有配置CUCM服务器来控制R1网关。
R1#sh isdn status
Global ISDN Switchtype = primary-ni
%Q.931 is backhauled to CCMMANAGER 0x0003 on DSL 0. Layer 3 output may not apply
ISDN Serial0/0/0:23 interface
dsl 0,interface ISDN Switchtype = primary-ni
L2Protocol = Q.921 0x0000 L3 Protocol(s) = CCM MANAGER 0x0003
Layer 1Status:
ACTIVE
Layer 2Status:
TEI = 0,Ces = 1, SAPI = 0, State = TEI_ASSIGNED
Layer 3Status:
0 ActiveLayer 3 Call(s)
Activedsl 0 CCBs = 0
The FreeChannel Mask: 0x80000007
Number of L2 Discards = 0, L2 Session ID = 3
Total Allocated ISDN CCBs = 0
我们现在准备来配置HQCUCM集群关联网关。Device-->Gateway,点击Add New按钮,并且下拉选择“Gateway Type”。基于前面showinventory的信息,我们可以看到这里应该选择Cisco 2911网关。点击Next按钮继续。
clip_image001
接着选择网关协议(MGCP)
clip_image002
点击Next按钮继续。网关配置页面将出现。在方框内输入“Domain Name”。这个名称的由来是源于R1的路由器hostname,和路由器上面配置的ipdomain-name。在这里没有配置ipdomain-name。所有只要输入hostname“R1”就可以了。我们也可以在路由器上面使用showccm-manager命令,并且复制粘贴出现的“MGCP DomainName”到这里。复制粘贴可以避免打错文字。
R1&
R1#sh ccm
MGCP Domain Name: R1
clip_image003
接下来,指定“CiscoUnified CommunicationsManager Group”来作为网关的注册。这里,使用HQ CUCM sub(142.100.64.12)来作为R1MGCP网关配置的主要服务器。所以我们应该配置为sub。
clip_image004
我们还必须配置网关的终端信息。再一次使用show inventory命令,我们可以定位使用语音卡的型号和slot的位置。这里是VWIC3-1MFT-T1/E1在slot 0,sub-slot 0上面。
R1&
R1#show inventory
...
NAME: "VWIC3-1MFT-T1/E1 -1-Port RJ-48 Multiflex Trunk - T1/E1 on Slot 0 SubSlot 0",DESCR: "VWIC3-
1MFT-T1/E1 - 1-Port RJ-48 Multiflex Trunk - T1/E1"
PID: VWIC3-1MFT-T1/E1 , VID: V01 , SN: FOC1752534Y
...
我们再“Modulein Slot 0”选择“NM-4VWIC-MBRD”(这里只有这个选项),并且点击Save按钮来继续配置。
clip_image005
接着在“Subunit0”选择正确的语音卡,点击Save按钮。
clip_image006
接着,点击VWIC3卡来编辑PRI

在弹出来的页面,选择“DeviceProtocol”。这里,选择“DigitalAccess PRI”,因为PRI是被配置的。点击Save按钮。
clip_image008
接着来到网关配置页面。这里,我们必须配置“Device Pool”。应该选择一个适当的Device Pool。这里建议选择最大扩展性的Device Pool。点击Save和Apply Config按钮来完成这个配置。现在你应该可以在网关配置页面上看到R1成功的被注册到CUCM sub服务器上来了。
clip_image009
你可以在路由器上验证网关,使用show ccm-manager命令。
R1&
R1#sh ccm
MGCP Domain Name: R1
Priority Status Host
============================================================
Primary Registered 142.100.64.12
First Backup None
Second Backup None
在路由器上使用show isdnstatus命令,来验证PRI的同步和运行。在这里,2层的状态应该显示为MULTIPLE_FRAME_ESTABLISHED。
R1&
R1#sh isdn status
Global ISDNSwitchtype = primary-ni
%Q.931 is backhauled to CCM MANAGER 0x0003 on DSL 0. Layer 3 outputmay not apply
ISDN Serial0/0/0:23 interface
dsl 0,interface ISDN Switchtype = primary-ni
L2Protocol = Q.921 0x0000 L3 Protocol(s) = CCM MANAGER 0x0003
Layer 1Status:
ACTIVE
Layer 2Status:
TEI = 0,Ces = 1, SAPI = 0, State = MULTIPLE_FRAME_ESTABLISHED
Layer 3Status:
0 ActiveLayer 3 Call(s)
Activedsl 0 CCBs = 0
The FreeChannel Mask: 0x80000007
Number ofL2 Discards = 0, L2 Session ID = 5
Total Allocated ISDN CCBs = 0
························································
参加免费公开课,请您说是由【攻城狮论坛】推荐的。报名收费培训的论坛会员,可享受优惠价格+赠送攻城狮论坛VIP会员。本文转自 三旗培训 http://www.37vi.com/,版权归原作者所有。 |
|