R1#show run
Building configuration...
Current configuration : 1377 bytes
!
version 12.3
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R1
!
===省略===
!
no ip domain lookup
ip dhcp excluded-address 192.168.1.11
!
ip dhcp pool 1
network 192.168.1.0 255.255.255.0
default-router 192.168.1.11
option 150 ip 192.168.1.11 ###option 150代表tftp server。
!
===省略===
!
interface Ethernet0/0
ip address 192.168.1.11 255.255.255.0
full-duplex
!
===省略===
!
tftp-server flash:P003-07-5-00.bin ###设置TFTP服务器
!
!
telephony-service ###配置电话服务
load 7960-7940 P003-07-5-00 ###载入7960 IP电话机的Firmware,固件需要在Flash上。这条命令非必要。
max-ephones 20 ###最多支持的电话数量
max-dn 20
ip source-address 192.168.1.11 port 2000 ###提供电话服务的IP地址,此处就是本机。
network-locale CA
!
!
ephone-dn 1
number 1001 ###电话机1的号码
name Phone1
!
!
ephone-dn 2
number 1002 ###电话机2的号码
name Phone2
!
!
ephone 1
mac-address 0008.218C.09CE
type 7960
button 1:1 ###把电话1的Line 1关联到DN 1
!
!
ephone 2
mac-address 0009.B7DA.0277
type 7960
button 1:2 ###把电话2的Line 1关联到DN2
!
===省略===
!
end