
参加免费公开课,请您说是由【攻城狮论坛】推荐的。报名收费培训的论坛会员,可享受优惠价格+赠送攻城狮论坛VIP会员。本文转自 三旗培训 http://www.37vi.com/,版权归原作者所有。························································
 
Task51.1  在HQ IM&P和SB IM&P之间配置一个XMPP(可扩展消息表示协议)联盟。
 
在前面的实验中,我们只是一个IM and Presence服务器被连接到一个CUCM服务器,并且提供了软电话和桌面电话服务,和即时通讯功能。配置一个XMPP联盟,将会允许两个有联系的IM&P服务器之间,发送和接收即时消息。当然,仍然利用CUCM拨号计划来进行路由呼叫,但是在服务器之间的即时消息将使用XMPP联盟。
 
首先登陆HQ和SB IM&P服务器,并且配置XMPP联盟设置。Presence-->Inter-Domain Federation-->XMPPFederation-->Settings,到达“XMPP Federation Settings”页面。设置“XMPP Federation NodeStatus”为“on”来开启它。接着,选择“Security Mode”为“No TLS”来避免认证。最后,设置“Dialback Secret”关联,它必须正确的匹配配置的联盟。点击Save按钮。
clip_image001
 
接着,设置连接服务器的XMPP联盟开启联盟。导航到Cisco UnifiedIM and Presence Serviceability页面,并且激活“CiscoXCP XMPP Federation Connection Manager”服务。
clip_image002
 
点击Start按钮激活这个服务。
 
一旦这个服务被激活,就应该收到下面的信息。
clip_image003
 
确保HQ和SB IM&P的每个服务器都开启这个服务。
 
························································
 
Task 51.2  确保正确的配置DNS服务器,以支持这个配置。
 
必须配置一个DNS服务器来支持XMPP联盟。DNS服务器将解决每个IM&P服务器上面的XMPP服务需求。它将归还一个IP地址,这可以用来连接远程IM&P服务器。
clip_image004
 
来配置DNS服务器,打开一个RDP(远程桌面协议)会话,到达窗口142.100.64.16,并且使用administrator/CCIECollab1登陆。登陆之后,Start-->All Programs-->Administrative Tools-->DNS,来打开“DNS Manager”控制台。
clip_image005
 
点击“Forward Lookup Zonesfolder”右键,并且点击“NewZone...”选项。
clip_image006
 
在这个“New Zone Wizard”点击Next按钮。确保“Primary Zone”被选择。点击Next按钮。
clip_image007
 
接着,离开这个默认的选项:“To allDNS servers running ondomain controllers inthis domain:ipexpert.com”,点击Next按钮。
clip_image008
 
接着,定义“Zone Name”为“cucm.com”,点击Save按钮。
clip_image009
 
接着,离开这个默认的选项:“Allow onlysecure dynamic updates”,点击Next按钮。点击Next按钮。
clip_image010
 
现在就可以点击屏幕上的Finish按钮,来完成这个配置向导。
clip_image011
 
创建了这个“cucm.com” zone之后,“Forward Lookup Zones”文件夹下面就会出现。
clip_image012
 
接着,右键点击“Reverse LookupZones”文件夹,并且选择“New Zone...”选项。
clip_image013
 
在这个“New Zone Wizard”点击Next按钮。确保“Primary Zone”被选择。点击Next按钮。
clip_image007
 
接着,保持这个默认的选项:“To allDNS servers running ondomain controllers inthis domain:ipexpert.com”,点击Next按钮。
clip_image008
 
接着,选择“IPv4 Reverse LookupZone”,点击Save按钮。
clip_image014
 
接着,定义“ipexpert.com”domain(at!HQ)的“Network ID”为“142.100.64”,点击Next按钮。
clip_image015
 
接着,离开这个默认的选项:“Allow onlysecure dynamic updates”,点击Next按钮。
clip_image010
 
现在就可以点击屏幕上的Finish按钮,来完成这个配置向导。
clip_image016
 
同样创建一个SB Network ID“142.100.65”的“Reverse Lookup Zones”文件。
clip_image017
 
接着点击“Forward Lookup Zones”下面的“ipexpert.com”。找到现存的“ldap”记录,并且双击它。点击“Update associated pointer(PTR)record”,并且点击OK按钮。这将在“142.100.64”Reverse Lookupzone创建一个PTR记录。
clip_image018
 
来验证这个被创建的记录,选中“Reverse LookupZones”下面的“64.100.142.in3addr.arpa”,并且选择右键点击“Refresh”(刷新)按钮。
clip_image019
 
你现在可以在这个文件夹里看到PTR记录了。
clip_image020
 
接着,点击“Forward Lookup Zones”文件夹下面的“ipexpert.com”。在空白处右键,并且选择“New Host(Aor AAAA)...”。
clip_image021
 
输入一个HQ IM&P的名称(“hqimp”),并且输入相应的IP地址(“142.100.64.15”)。勾选“Create associated pointer(PTR)record”,在来“142.100.64”ReverseLookup Zone中创建一个RTP记录。
clip_image022
 
同样在“cucm.com”domain中也创建一个“sbimp”Host (A)记录。
clip_image023
 
接着,选中“ipexpert.com”domain,在空白处右键选择“OtherNew Records...”。
clip_image024
 
下拉这个记录列表,找到并选择“Service Location(SRV)”。
clip_image025
 
点击Create Record...按钮继续。
 
在这个“New Resource Record”窗口,选择“Service”为“_xmpp-server”,“Protocol”为“_tcp”。“Port Number”应该为“5269,”,“Host Offering thisservice”应该输入前面创建的相应的HQIM&P服务器(“hqimp.ipexpert.com”)。点击OK按钮。
clip_image026
 
同样在“cucm.com”domain中创建SB IM&P服务器的SRV记录。
clip_image027
 
从一个测试PCs,打开cmd命令行。输入nslookup命令,来进入NDS服务器分析模式。再输入set type=srv命令,来查看服务位置记录。接着输入HQ IM&P XMPP服务器的主机名(“_xmpp-server._tcp.ipexpert.com”)。这个命令应该会返回HQIM&P服务器的主机名和IP地址。确保为SBIM&P XMPP服务器做同样的操作。
 
HQ TPC1 Command Prompt
C:\Users\admin>nslookup
Default Server: ldap.ipexpert.com
Address: 142.100.64.16
 
> set type=srv
> _xmpp-server._tcp.ipexpert.com
Server: ldap.ipexpert.com
Address: 142.100.64.16
 
_xmpp-server._tcp.ipexpert.com SRV service location:
priority = 0
weight = 0
port = 5269
svr hostname = hqimp.ipexpert.com
hqimp.ipexpert.com internetaddress = 142.100.64.15
 
> _xmpp-server._tcp.cucm.com
Server: ldap.ipexpert.com
Address: 142.100.64.16
 
_xmpp-server._tcp.cucm.com SRV service location:
priority = 0
weight = 0
port = 5269
svr hostname = sbimp.cucm.com
sbimp.cucm.com internet address= 142.100.65.15
 
这个必须的DNS配置现在已经完成了。接下来设置HQ和SB IM&P服务器,使用新创建的DNS服务器(142.100.64.16)。SSH进入每个IM&P服务器,并且使用set network dns和set network domain命令来配置服务器。
 
HQ-IMP
ssh -l admin 142.100.64.15
admin@142.100.64.15's password:
Command Line Interface is starting up, please wait ...
 
  Welcome to the Platform Command Line Interface
 
VMware Installation:
  1 vCPU:Intel(R) Xeon(R) CPU          X5660  @2.80GHz
  Disk 1:80GB
  2048Mbytes RAM
 
 
admin:set network dns primary 142.100.64.16
 
WARNING: Changing this setting will invalidate software license
        on this server. The license will have to be re-hosted.
Continue(y/n):
Continue (y/n)?y
***   R EM I N D E R  ***
The DNS domain is not set.  Please configure theDNS domain after DNS server configuration
 
 
    ***   W AR N I N G  ***
This will cause the system to temporarily lose networkconnectivity
 
 
Continue (y/n)?y
 
trying to restart network...
 
 
admin:setnetwork domain ipexpert.com
 
         ***   W AR N I N G  ***
Adding/deleting or changing domain name on this server willbreak
database replication. Once you have completed domainmodification
on all systems that you intend to modify, please reboot all the
servers in the cluster. This will ensure that replication keeps
working correctly. After the servers have rebooted, please
confirm that there are no issues reported on the Cisco Unified |
|