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
exit
ip 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
exit
telephony-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
exit
ephone-dn 1 //序号1对应内部号码8001
number 8001
exit
ephone-dn 2
number 8002
exit
ephone-dn 3
number 8003
exit
dial-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
exit
int 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
exit
ip dhcp poo b //设置pc网段的dhcp
netw 192.168.2.0 255.255.255.0
de 192.168.2.1
exit
ip 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
exit
ip dhcp pool c //
netw 172.16.1.0 255.255.255.0
de 172.16.1.1
option 150 ip 172.16.1.1
exit
telephony-service //
max-ephones 5
max-dn 5
ip source-add 172.16.1.1 port 2000
auto assign 1 to 5
exit
ephone-dn 1 //
number 9001
exit
ephone-dn 2
number 9002
exit
ephone-dn 3
number 9003
exit
dial-peer voice 1 voip //
destination-pattern 80..
session target ipv4:100.1.1.1
exit
ip 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 Packet Tracer中,可以模拟IP电话7960的实验,尽管实际环境中已较少使用这种方法。实验设置包括:IP电话位于172.16.1.0/24网段,办公PC在192.168.2.0/24网段,使用带语音功能的2811路由器和POE供电的3560交换机。配置后检查电话是否成功注册,并进行拨号测试。此外,还提出了两个拓展配置方案,涉及DHCP服务位置的变化和新增PC及网段配置。
1938

被折叠的 条评论
为什么被折叠?



