思科VOIP完整配置实例

合集下载
相关主题
  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

router eigrp 100 network 192.168.1.0 no auto-summary ! ip classless no ip http server ! ! ! voice-port 1/1 ! voice-port 1/2 ! voice-port 1/3 ! dial-peer voice 10 pots destination-pattern 2203 port 1/1 !
endBiblioteka Baidu
测试命令:
6
call 通本端的两部电话机 Local_Router#csim start 2201 csim: called number = 2201, loop count = 1 ping count = 0 . csim: loop = 1, failed = 0 csim: call attempted = 1, setup failed = 0, tone failed = 1 检查本地配置 Local_Router#sh dial-peer voice summary dial-peer hunt 0 AD PRE PASS OUT TAG TYPE MIN OPER PREFIX DEST-PATTERN FER THRU SESS-TARGET STAT PORT 10 pots up up 2201 0 up 1/0/0 20 pots up up 2202 0 up 1/0/1 30 voip up up 2203 0 syst ipv4:192.168.1.2 call 通远端的电话机(2203call 通 pbx,pbx 提供 2 次拨号音,然后拨号 468, 对端电话号码响) Local_Router#csim start 2203,468 csim: called number = 2203,468, loop count = 1 ping count = 0 . csim: loop = 1, failed = 0 csim: call attempted = 1, setup failed = 0, tone failed = 1 其中","的含义是等待 2 秒
! NVRAM config last updated at 00:15:39 UTC Tue Mar 28 2000 ! version 12.1
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption ! hostname cisco5300A ! logging buffered 50000 debugging
4
实验拓扑
几个简单的 voip 的小例子
(phone A & phone B)-fxs-local router-----------(serial link,voip link)------remote router-fxo-PBX--phone C
配置实例: 1、基本配置:
远端: Remote_Router#sh running-config Building configuration...
enable secret cisco ! spe 1/0 1/7
firmware location system:/ucode/mica_port_firmware ! ! resource-pool disable ! ! clock calendar-valid
ip subnet-zero
!
1
Foreign Exchange Station 1/0/0 Slot is 1, Sub-unit is 0, Port is 0 Type of VoicePort is FXS Operation State is DORMANT Administrative State is UP No Interface Down Failure Description is not set Noise Regeneration is disabled---------------------------〉关掉了 Non Linear Processing is enabled
voice-port 1/0/0 ! voice-port 1/0/1 ! voice-port 1/1/0 ! voice-port 1/1/1 !
dial-peer voice 10 pots destination-pattern 2201 port 1/0/0 ! dial-peer voice 20 pots destination-pattern 2202 port 1/0/1 ! dial-peer voice 30 voip destination-pattern 2203 session target ipv4:192.168.1.2
isdn switch-type primary-5ess isdn voice-call-failure 0 mta receive maximum-recipients 0 ! ! controller e1 0 clock source line primary pri-group timeslots 1-30 ! ! voice-port 0:D ! ! dial-peer voice 1 pots answer-address 9195552001 destination-pattern 919#9195552... direct-inward-dial port 0:D prefix 919 ! dial-peer voice 2 voip destination-pattern 4085556400
3
h323-gateway voip interface h323-gateway voip id ciscogk1 ipaddr 172.16.120.1 1718 h323-gateway voip h323-id cisco5300A@cisco.com h323-gateway voip tech-prefix 919# ! ip classless ip route 172.16.110.0 255.255.255.0 172.16.120.10 no ip http server ! line con 0 transport input none line 1 48 transport output lat pad telnet rlogin udptn v120 lapb-ta line aux 0 line vty 0 4 password cisco login ! ntp clock-period 17179850 ntp server 172.16.110.10 end
下面给出几个需求可以稍作验证: 1、需要配置语音网关的传真速率为 9600,同时要消除舒服噪音。
Local_Router#conf t Enter configuration commands, one per line. End with CNTL/Z. Local_Router(config)#dial-peer voice 30 Local_Route(config-dial-peer)#fax rate 9600 Local_Route(config-dial-peer)#end Local_Router#sh dial-peer voice 30 | in fax Cisc NSE=100, fax=96, fax-ack=97, dtmf=121, fax-relay=122 fax rate = 9600, payload size = 20 bytes fax protocol = system fax-relay ecm enable fax NSF = 0xAD0051 (default) --------------------------------------------------------------------针对舒服噪音,默认情况下 Local_Router#sh voice port 1/0/0
7
Foreign Exchange Station 1/0/0 Slot is 1, Sub-unit is 0, Port is 0 Type of VoicePort is FXS Operation State is DORMANT Administrative State is UP No Interface Down Failure Description is not set Noise Regeneration is enabled-----------------------------〉打开 Non Linear Processing is enabled 。 。 配置后: Local_Router#conf t Enter configuration commands, one per line. End with CNTL/Z. Local_Router(config)#voice-port 1/0/0 Local_Route(config-voiceport)#no comfort-noise Local_Route(config-voiceport)#end Local_Router# *Mar 1 00:37:19.735: %SYS-5-CONFIG_I: Configured from console by console Local_Router#sh voice port 1/0/0
5
end
本端: Local_Router#sh running-config
Building configuration...
.................................................... hostname Local_Router
interface Ethernet0/0 ip address 192.168.1.1 255.255.255.0 half-duplex no clns route-cache ! router eigrp 100 network 192.168.1.0 no auto-summary
hostname Remote_Router .....................................................
interface Ethernet0 ip address 192.168.1.2 255.255.255.0 no ip directed-broadcast !
network:
思科 VOIP 完整配置实例
AS5300-GK-----GK -AS5300
cisco5300A#sh run
Building configuration...
Current configuration: ! ! Last configuration change at 00:15:38 UTC Tue Mar 28 2000
2
tech-prefix 408# session target ras ! num-exp 6... 4085556... gateway ! interface Ethernet0 no ip address shutdown ! interface Serial0:23 no ip address ip mroute-cache isdn switch-type primary-5ess isdn incoming-voice modem fair-queue 64 256 0 no cdp enable ! interface FastEthernet0 ip address 172.16.120.2 255.255.255.0 duplex auto speed auto
相关文档
最新文档