CISCO PT IP电话7960 LAB
生活随笔
收集整理的這篇文章主要介紹了
CISCO PT IP电话7960 LAB
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
Cisco PT模擬器上可以進行簡單的IP電話模擬實驗,但是現在實際的使用情況現在一般不會使用這種方法進行配置了,只做了解。
需求:
左邊只有IP電話,網段要求172.16.1.0/24。
右邊有辦公PC網段192.168.2.0/24,IP電話網段192.168.1.0。PC通過連接話機的網絡口聯網,PC的DHCP服務做在交換機上。
路路由選帶語音功能的2811,交換機選擇帶POE供電的3560,話機選擇7960
配置:
R0 conf t int f0/1 ip add 192.168.1.1 255.255.255.0 int f0/0 ip add 100.1.1.1 255.255.255.0 exitip dhcp pool a //IP電話dhcp netw 192.168.1.0 255.255.255.0 de 192.168.1.1 option 150 ip 192.168.1.1 exittelephony-service //開啟IP語音服務 max-ephones 5 //最多5個電話 max-dn 5 ip source-add 192.168.1.1 port 2000 auto assign 1 to 5 //自動注冊排序1-5 exitephone-dn 1 //序號1對應內部號碼8001 number 8001 exit ephone-dn 2 number 8002 exit ephone-dn 3 number 8003 exitdial-peer voice 1 voip //開啟到對端號碼,編號1兩邊要一致 destination-pattern 90.. //到對端前綴是90開頭 session target ipv4:100.1.1.2 //到對端的路徑下一跳 exit ip route 192.168.2.0 255.255.255.0 192.168.1.2 //往內部PC的靜態 ip route 0.0.0.0 0.0.0.0 100.1.1.2 //往外部默認路由 --------------------------------------------------------------------------------------- SW0 conf t ip routing //因為PC網段dhcp做在交換機上,需開啟路由功能以便后面添加靜態路由vlan 2 vlan 3 exit int vlan 2 no sh ip add?192.168.2.1 255.255.255.0 int vlan 3 no sh ip add 192.168.1.2 255.255.255.0 exitint gi1/0/1 sw acc vl 3 //把交換機到路由器的接口劃入語音vlan讓IP電話獲取IP sw vocie vl 3 int range gi1/0/2-4 //接口劃入vlan2讓PC獲取IP,設置voic vlan sw mode access sw acc vl 2 sw vocie vl 3 exitip dhcp poo b //設置pc網段的dhcp netw 192.168.2.0 255.255.255.0 de 192.168.2.1 exitip route 0.0.0.0 0.0.0.0 192.168.1.1 //PC到外部的靜態路由 ------------------------------------------------------------------------------ R1 conf t int f0/1 ip add 172.16.1.1 255.255.255.0 int f0/0 ip add 100.1.1.2 255.255.255.0 exitip dhcp pool c // netw 172.16.1.0 255.255.255.0 de 172.16.1.1 option 150 ip 172.16.1.1 exittelephony-service // max-ephones 5 max-dn 5 ip source-add 172.16.1.1 port 2000 auto assign 1 to 5 exitephone-dn 1 // number 9001 exit ephone-dn 2 number 9002 exit ephone-dn 3 number 9003 exitdial-peer voice 1 voip // destination-pattern 80.. session target ipv4:100.1.1.1 exitip route 0.0.0.0 0.0.0.0 100.1.1.1 // ----------------------------------------------------------------------------- SW1 conf t vlan 3 int vlan 3 no sh ip add 172.16.1.2 255.255.255.0 exit int range gi1/0/1-4 sw acc vl 3配置完成后,打開IP電話在GUI界面,看注冊是否成功,鼠標單擊聽筒后分別進行內部、外部撥號測試。如果不同則會是忙音。
?
拓展:1,右邊pc網段的dhcp不做在交換機上,做在R0上
? ? ? ? ? ?2,左邊添加pc和對應的網段172.16.2.0/24。和右邊不一樣,PC直接連接交換機,并把dhcp做在R1上。
? ?
總結
以上是生活随笔為你收集整理的CISCO PT IP电话7960 LAB的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: excel如何去重?
- 下一篇: 仪表识别方法汇总