Cisco VoIP配置
環境:
PackerTracer 7.1.1
CM :router 2811
SW:3650
IP 電話:7960
拓撲:
一, 划分單獨voice vlan 把相關接口划入voice vlan中
二, Voip的電話需要一個IP地址,配置一個DHCP用來給電話分配地址
三, 在CM上注冊話機
四, 測試接打是否正常
相關配置如下:
1. 交換機配置:
interface GigabitEthernet1/0/1
switchport access vlan 100
switchport mode access
switchport nonegotiate
!
interface GigabitEthernet1/0/2
switchport voice vlan 100
!
interface GigabitEthernet1/0/3
switchport voice vlan 100
2. 路由器配置:
ip dhcp pool VOIP
network 192.168.1.0 255.255.255.0
default-router 192.168.1.254
option 150 ip 192.168.1.254
!
interface FastEthernet0/0
ip address 192.168.1.254 255.255.255.0
duplex auto
speed auto
!
telephony-service //開啟話務服務
max-ephones 20 //定義電話機數量
max-dn 20 //定義電話號碼數量
ip source-address 192.168.1.254 port 2000 //定義通過哪個IP和端口提供服務
!
ephone-dn 1 //定義一號線路
number 1001 //分配號碼1001
!
ephone-dn 2 //定義二號線路
number 1002 //分配號碼 1002
!
ephone 1 //定義第一台電話
device-security-mode none
mac-address 0001.4231.4B77 //綁定硬件MAC地址
type 7960 //定義話機類型
button 1:1 將第一條線路綁定到這台話機上
!
ephone 2
device-security-mode none
mac-address 0001.9630.419B
type 7960
button 1:2