在Packet Tracer 5.3中配置语音网络

简介:

1.测试拓扑:

参照:http://www.clnchina.com.cn/associate_certs/2012/0823/21890.shtml
2.基本配置:
A.R1:
interface FastEthernet0/0
 ip address 202.100.1.1 255.255.255.0
 no shut
interface FastEthernet0/1
 shut
interface FastEthernet0/1.10
 encapsulation dot1Q 10
 ip address 10.1.1.1 255.255.255.0
interface FastEthernet0/1.11
 encapsulation dot1Q 11
 ip address 1.1.1.1 255.255.255.0
ip dhcp pool telephonepool
 network 1.1.1.0 255.255.255.0 
 default-router 1.1.1.1
 option 150 ip 1.1.1.1
ip dhcp pool pcpool
 network 10.1.1.0 255.255.255.0
 default-router 10.1.1.1
B.Switch1:
int f0/1
  sw trunk encapsulation dot1q 
  sw mode trunk
VLAN 10
  name PC
vlan 11
 name telephone
int rang f0/2 - 3
 sw mode acc
 sw acc vlan 10
 switchport voice vlan 11
 spanning-tree portfast     
C.R2:
interface FastEthernet0/0
 ip address 202.100.1.2 255.255.255.0
 no shut
interface FastEthernet0/1
 ip address 202.100.2.2 255.255.255.0
 no shut
D.R3:
interface FastEthernet0/0
 ip address 202.100.2.3 255.255.255.0
 no shut
interface FastEthernet0/1
 no shut
interface FastEthernet0/1.20
 encapsulation dot1Q 20
 ip address 20.1.1.1 255.255.255.0
interface FastEthernet0/1.22
 encapsulation dot1Q 22
 ip address 2.2.2.1 255.255.255.0
ip dhcp pool telephonepool
 network 2.2.2.0 255.255.255.0 
 default-router 2.2.2.1 
 option 150 ip 2.2.2.1 
ip dhcp pool pcpool
 network 20.1.1.0 255.255.255.0
 default-router 20.1.1.1
E.Switch2:
int f0/1
  sw trunk encapsulation dot1q 
  sw mode trunk
VLAN 20
  name PC
vlan 22
 name telephone
int rang f0/2 - 3
 sw mode acce
 sw acc vlan 20
 switchport voice vlan 22
 spanning-tree portfast     
3.动态路由配置:
A.R1:
route ospf 1
 net 202.100.1.0 0.0.0.255 a 0
 net 10.1.1.0 0.0.0.255 a 0
 net 1.1.1.0 0.0.0.255 a 0
 passive-interface f0/1.10
 passive-interface f0/1.11
B.R2:
route ospf 1
 net 202.100.1.0 0.0.0.255 a 0
 net 202.100.2.0 0.0.0.255 a 0
C.R3:
route ospf 1
 net 202.100.2.0 0.0.0.255 a 0
 net 20.1.1.0 0.0.0.255 a 0
 net 2.2.2.0 0.0.0.255 a 0
 passive-interface f0/1.20
 passive-interface f0/1.22
4.语音网关配置:
A.R1:

①.开启CME服务:
telephony-service 
 max-ephones 20
 max-dn 100
 ip source-address 1.1.1.1 port 2000
 no auto-reg-ephone 
②.电话号码设置:
ephone-dn 1
 number 1001
ephone-dn 2
 number 1002
③.设置自动注册:
telephony-service 
 auto-reg-ephone 
 auto assign 1 to 2
此时左边的两个电话直接能够互相拨打。
B.R3:
①.开启CME服务:
telephony-service 
 max-ephones 20
 max-dn 100
 ip source-address 2.2.2.1 port 2000
 no auto-reg-ephone 
②.电话号码设置:
ephone-dn 1
 number 2001
ephone-dn 2
 number 2002
③.设置手动注册:
ephone 1
 mac-address 0002.17B7.DE38
 type 7960
 button 1:1
ephone 2
 mac-address 00e0.f720.1c46 
 type 7960
 button 1:2
此时右边的两个电话直接能够互相拨打。
5.语音网关远程呼叫配置:
A.R1:
dial-peer voice 1 voip 
 destination-pattern 20..
 session target ipv4:2.2.2.1
B.R3:
dial-peer voice 1 voip 
 destination-pattern 10..
 session target ipv4:1.1.1.1
此时左边和右边的四个电话都能互相拨打。




本文转自 碧云天 51CTO博客,原文链接:http://blog.51cto.com/333234/975606,如需转载请自行联系原作者

相关文章
|
8天前
|
Ubuntu Oracle 关系型数据库
Oracle VM VirtualBox之Ubuntu 22.04LTS双网卡网络模式配置
这篇文章是关于如何在Oracle VM VirtualBox中配置Ubuntu 22.04LTS虚拟机双网卡网络模式的详细指南,包括VirtualBox网络概述、双网卡网络模式的配置步骤以及Ubuntu系统网络配置。
32 3
|
9天前
|
Ubuntu
树莓派 —— ubuntu上通过netplan配置网络
树莓派 —— ubuntu上通过netplan配置网络
|
20天前
|
网络协议 Ubuntu Linux
在Linux中,如何配置网络?
在Linux中,如何配置网络?
|
21天前
|
缓存 负载均衡 应用服务中间件
【揭秘】nginx代理配置全攻略:从零到精通,一文带你玩转高效网络代理的秘密武器!
【8月更文挑战第22天】nginx是一款高性能的HTTP与反向代理服务器,支持代理服务、负载均衡及缓存等功能,有助于提升网站响应速度和安全性。首先需确保已安装nginx,可通过包管理器进行安装。安装后启动并确认nginx运行状态。接着编辑配置文件(通常位于`/etc/nginx/nginx.conf`),设置代理转发规则,例如指定目标服务器地址和请求头信息。配置完成后测试有效性并重新加载nginx以应用更改。可以通过部署简易HTTP服务器验证代理功能是否正常工作。此外,还可以通过扩展配置文件实现更复杂的代理需求,如基于路径的代理和SSL加密等。
83 2
|
21天前
|
存储 网络协议 搜索推荐
在Linux中,如何配置和管理虚拟机的网络和存储?
在Linux中,如何配置和管理虚拟机的网络和存储?
|
26天前
|
传感器 安全 物联网
Gateway基本配置:打开网络之门
Gateway基本配置:打开网络之门
|
6天前
|
域名解析 负载均衡 网络协议
Linux网络接口配置不当所带来的影响
总而言之,Linux网络接口的恰当配置是保证网络稳定性、性能和安全性的基础。通过遵循最佳实践和定期维护,可以最大程度地减少配置错误带来的负面影响。
26 0
|
11天前
|
监控 安全 网络安全
|
13天前
|
缓存 负载均衡 网络协议
Haskell网络编程:深入理解代理和TLS配置
Haskell网络编程:深入理解代理和TLS配置
|
18天前
|
监控 网络性能优化 网络架构