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
|