VoIp(config)#host Voip
VoIp(config)#INT F1/0
VoIp(config-if)#ip add 172.16.0.253 255.255.0.0 VoIp(config-if)#no sh Vop(config-if)#exit
//
进入电话配置服务模式
VoIP(config)#telephony-service
//
设置允许注册最多电话数量为
3
,范围是(
1-192
)
VoIP(config-telephony)#max-ephones 3
//
设置允许注册最多线路数,范围是(
1-65535
)
VoIP(config-telephony)#max-dn 10
//
设置电话机与
CME
路由器
TCP
保持时间为
10
秒
VoIP(config-telephony)#keepalive 10
//
指定给电话机,在
IP
语音网络中,
CME
路由器的
IP
地址,默认
端口是
2000
VoIP(config-telephony)#ip source-address 172.16.0.253 port 2000
//
指定在
IP
电话注册之后,待机画面的系统消息,在电话机注册之后,可在屏幕上看到
VoIP(config-telephony)#system message Cisco Voip
VoIP(config-telephony)#exit
//
进入
1
号线路下
VoIP(config)#ephone-dn 1
//配置ephone-dn,每个ephone-dn代表一条线路,定义E.164线路号码为2009
VoIP(config-ephone-dn)#number 2009
//配置电话的主机名称为hostA
VoIP(config-ephone-dn)#name HostA
VoIP(config-ephone-dn)#exit
//进入2号线路下
VoIP(config)#ephone-dn 2
VoIP(config-ephone-dn)#number 2010
VoIP(config-ephone-dn)#name HostB
VoIP(config-ephone-dn)#exit
//配置ephone,每个ephone对应一个ip phone
//绑定IP电话的MAC地址,把MAC地址与电话号码关联在一起。
MAC地址在电话机身底座下方可以看到。
注意MAC地址的格式
VoIP(config-ephone)# mac-address 0012.00EF.9E97
//指定IP电话的类型为Cisco 7940 (支持很多类型,也包括支持CIPC)
VoIP(config-ephone)#type 7940
//将line按钮与ephone-dn对应起来,其中第一个“1”是指ip phone上的line button,“:”是分隔符,第二个“1”是ephone-dn的号码。此句意为:将7940 ip phone上的line 1按钮与ephone-dn 1中的101号码联系起来
VoIP(config-ephone)#button 1:1
VoIP(config-ephone)#ephone 2
VoIP(config-ephone)#
mac-address 0012.01AD.2E54
VoIP(config-ephone)#type 7940
VoIP(config-ephone)#button 1:2
VoIP(config-ephone)#exit
//配置路由器的当前的时间,以保证IP电话注册之后,与路由器时间同步,方便日志查看和日后管理,排错等
VoIP#clock set 12:00:00 20 Dec 2009
VoIP(config)#
|
tftp-server flash:/CP7921G-1.0.3/CP7921G-1.0.3.LOADS alias CP7921G-1.0.3.LOADS
tftp-server flash:/CP7921G-1.0.3/APPS-1.0.3.SBN alias APPS-1.0.3.SBN
tftp-server flash:/CP7921G-1.0.3/GUI-1.0.3.SBN alias GUI-1.0.3.SBN
tftp-server flash:/CP7921G-1.0.3/SYS-1.0.3.SBN alias SYS-1.0.3.SBN
tftp-server flash:/CP7921G-1.0.3/TNUX-1.0.3.SBN alias TNUX-1.0.3.SBN
tftp-server flash:/CP7921G-1.0.3/TNUXR-1.0.3.SBN alias TNUXR-1.0.3.SBN
tftp-server flash:/CP7921G-1.0.3/WLAN-1.0.3.SBN alias WLAN-1.0.3.SBN
tftp-server flash:/phone/apps31.8-2-2TR2.sbn alias apps31.8-2-2TR2.sbn
tftp-server flash:/phone/S00105000200.sbn alias S00105000200.sbn
tftp-server flash:/phone/apps70.8-2-2TR2.sbn alias apps70.8-2-2TR2.sbn
tftp-server flash:/phone/CP7905080002SCCP060817A.sbin alias CP7905080002SCCP060817A.sbin
tftp-server flash:/phone/cmterm_7920.4.0-03-02.bin alias cmterm_7920.4.0-03-02.bin
tftp-server flash:/phone/cmterm_7936.3-3-13-0.bin alias cmterm_7936.3-3-13-0.bin
tftp-server flash:/phone/cmterm_7985.4-1-2-0.bin alias cmterm_7985.4-1-2-0.bin
tftp-server flash:/phone/CP7902080002SCCP060817A.sbin alias CP7902080002SCCP060817A.sbin
tftp-server flash:/phone/CP7912080002SCCP060817A.sbin alias CP7912080002SCCP060817A.sbin
tftp-server flash:/phone/P00405000700.bin alias P00405000700.bin
tftp-server flash:/phone/cnu31.8-2-2TR2.sbn alias cnu31.8-2-2TR2.sbn
tftp-server flash:/phone/P00503021500.bin alias P00503021500.bin
tftp-server flash:/phone/apps11.8-2-2TR2.sbn alias apps11.8-2-2TR2.sbn
tftp-server flash:/phone/cnu11.8-2-2TR2.sbn alias cnu11.8-2-2TR2.sbn
tftp-server flash:/phone/cvm11sccp.8-2-2TR2.sbn alias cvm11sccp.8-2-2TR2.sbn
tftp-server flash:/phone/dsp11.8-2-2TR2.sbn alias dsp11.8-2-2TR2.sbn
tftp-server flash:/phone/jar11sccp.8-2-2TR2.sbn alias jar11sccp.8-2-2TR2.sbn
tftp-server flash:/phone/SCCP11.8-2-2SR2S.loads alias SCCP11.8-2-2SR2S.loads
tftp-server flash:/phone/term06.default.loads alias term06.default.loads
tftp-server flash:/phone/term11.default.loads alias term11.default.loads
tftp-server flash:/phone/cvm31sccp.8-2-2TR2.sbn alias cvm31sccp.8-2-2TR2.sbn
tftp-server flash:/phone/dsp31.8-2-2TR2.sbn alias dsp31.8-2-2TR2.sbn
tftp-server flash:/phone/jar31sccp.8-2-2TR2.sbn alias jar31sccp.8-2-2TR2.sbn
tftp-server flash:/phone/SCCP31.8-2-2SR2S.loads alias SCCP31.8-2-2SR2S.loads
tftp-server flash:/phone/term31.default.loads alias term31.default.loads
tftp-server flash:/phone/apps41.8-2-2TR2.sbn alias apps41.8-2-2TR2.sbn
tftp-server flash:/phone/cnu41.8-2-2TR2.sbn alias cnu41.8-2-2TR2.sbn
tftp-server flash:/phone/cvm41sccp.8-2-2TR2.sbn alias cvm41sccp.8-2-2TR2.sbn
tftp-server flash:/phone/dsp41.8-2-2TR2.sbn alias dsp41.8-2-2TR2.sbn
tftp-server flash:/phone/jar41sccp.8-2-2TR2.sbn alias jar41sccp.8-2-2TR2.sbn
tftp-server flash:/phone/SCCP41.8-2-2SR2S.loads alias SCCP41.8-2-2SR2S.loads
tftp-server flash:/phone/term41.default.loads alias term41.default.loads
tftp-server flash:/phone/term61.default.loads alias term61.default.loads
tftp-server flash:/phone/cnu70.8-2-2TR2.sbn alias cnu70.8-2-2TR2.sbn
tftp-server flash:/phone/cvm70sccp.8-2-2TR2.sbn alias cvm70sccp.8-2-2TR2.sbn
tftp-server flash:/phone/dsp70.8-2-2TR2.sbn alias dsp70.8-2-2TR2.sbn
tftp-server flash:/phone/jar70sccp.8-2-2TR2.sbn alias jar70sccp.8-2-2TR2.sbn
tftp-server flash:/phone/SCCP70.8-2-2SR2S.loads alias SCCP70.8-2-2SR2S.loads
tftp-server flash:/phone/term70.default.loads alias term70.default.loads
tftp-server flash:/phone/term71.default.loads alias term71.default.load
tftp-server flash:/phone/CP7905080002SCCP060817A.zup alias CP7905080002SCCP060817A.zup
|
Switch_3550# sh cdp nei
Capability Codes: R - Router, T - Trans Bridge, B - Source Route Bridge
S - Switch, H - Host, I - IGMP, r - Repeater, P - Phone
Device ID Local Intrfce Holdtme Capability Platform Port ID
Voip Fas 0/7 171 R S I 3745 Fas 1/0
SEP001200EF9E97 Fas 0/11 164 H P IP Phone7 Port 1
SEP001201AD2E54 Fas 0/3 165 H P IP Phone7 Port 1
Switch_3550#
Switch_3550#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Switch_3550(config)#int f0/3
Switch_3550(config-if)#no sh
在交换机上连接IP Phone的接口下,启用快速端口,此接口不用加入STP运算
Switch_3550(config-if)#spanning-tree portfast
Switch_3550(config-if)#int f0/11
Switch_3550(config-if)#spanning-tree portfast
//建议您划分VLAN,把语音和数据隔离在不同的VLAN,当然两个IP电话也可以处在不同的VLAN下,这就需要做VLAN间路由了,隔离的目的为了保证因数据业务太多,导致语音通话质量的下降。
//在交换机与路由器的接口下封装trunk
Switch_3550(config-if)#int f0/7
Switch_3550(config-if)#switchport trunk encapsulation dot1q
Switch_3550(config-if)#sw mode trunk
Switch_3550(config-if)#
//IP Phone无法手工指定IP地址,而IP电话众所周知可以支持IP,在IP网络中跑Voice,
它的IP从那获得了,可以在交换机或者CME路由器上,
通过配置DHCP服务器
,给IP Phone分配IP,掩码、gateway,dns,tftp server ,
Switch_3550(config)#ip dhcp pool VOIP
Switch_3550(dhcp-config)#network 172.16.0.0 /16
Switch_3550(dhcp-config)#default-router 172.16.0.253
Switch_3550(dhcp-config)#dns-server 172.16.0.253
Switch_3550(dhcp-config)#option 150 ip 172.16.0.253
Switch_3550(dhcp-config)#exit
|
本文出自 “王万利的博客” 博客,转载请与作者联系!