精华区 [关闭][返回]

当前位置:网易精华区>>讨论区精华>>网络专区>>● CISCO>>配置样例>>有关VOIP的configurations

主题:有关VOIP的configurations
发信人: ciscomyrice(pingcisco)
整理人: firphoenix(2001-11-06 16:50:23), 站内信件
These configurations were tested with the following equipment:

Cisco 3640 with Cisco IOS Software Release 12.1.2 (Enterprise Plus) 
Cisco 2621 with Cisco IOS Software Release 12.1.2 (Enterprise Plus) 


Network Diagram

     FXS 1/0/0                 64K      256k             FXS 2/0/0    
tel(x4000)------------>cisco2610|s1/0======>FR<======s3/0|cisco3640 <-------tel(x5000)

Frame Relay IP RTP Priority was introduced in Cisco IOS 12.0(7)T and 12.0(7)XK. FRF.12 Fragmentation was introduced in Cisco IOS 12.0(4)T. Cisco IOS releases beyond 12.0.5T contain significant performance improvements for cRTP.

Network Diagram


Configurations
maui-voip-sj (Cisco 3640)
version 12.1

service timestamps debug datetime msec
service timestamps log datetime msec
service password-encryption
!
hostname maui-voip-sj
!
aaa new-model
AAA authentication login default local
AAA authentication login NO_AUTHEN none
enable secret 5 $1$WVha$/lUduDvIk110Z83HfI95o.
!
username admin privilege 15 password 7 001107505D580403
!
ip subnet-zero
no ip domain-lookup
!
lane client flush
!
voice-port 2/0/0
!
voice-port 2/0/1
!
voice-port 2/1/0
!
voice-port 2/1/1
!
dial-peer voice 10 pots
destination-pattern 5000
port 2/0/0!-- <--More on Dial Peers
!
dial-peer voice 11 voip
destination-pattern 4000
dtmf-relay cisco-rtp
ip precedence 5
session target ipv4:192.168.10.1
!
interface Ethernet0/0
ip address 172.22.53.105 255.255.255.0
!
!-- <output omitted> !
interface Serial3/0
 bandwidth 256
 no ip address
 encapsulation frame-relay
 no ip mroute-cache
 frame-relay traffic-shaping
 frame-relay ip rtp header-compression
!-- Turn ON traffic-shaping and cRTP 
!
interface Serial3/0.1 point-to-point
 bandwidth 64
 ip address 192.168.10.2 255.255.255.252
 no ip mroute-cache
 frame-relay interface-dlci 200   
  class VoIPovFR  !-- This command links the subinterface to a VoIPovFR map-class.   !-- See the map-class frame-relay VoIPovFR command below.  !-- Note: The word VoIPovFR is selected by the user.  
!
ip classless
ip route 172.22.32.0 255.255.255.0 192.168.10.1
no ip http server
!
map-class frame-relay VoIPovFR
 no frame-relay adaptive-shaping !-- Disable Frame Relay BECNS
 frame-relay cir 64000
 frame-relay BC 600 !-- Tc = BC/CIR. In this case Tc is forced to its minimal  !--configurable values of 10 ms.
 frame-relay fair-queue
 frame-relay fragment 80 !-- Turns on FRF.12 fragmentation and sets fragment size = 80 bytes
 frame-relay ip rtp priority 16384 16383 45
 !-- Assigns a priority queue for voice (based on UDP ports) !--with max bandwidth = 45 Kbps. 
!
line con 0
 login authentication NO_AUTHEN
 transport input none
line 33 40
 transport input telnet
line aux 0
line vty 0 4
!
end

 
maui-voip-austin 
version 12.1

service timestamps debug datetime msec
service timestamps log datetime msec
service password-encryption
!
hostname maui-voip-austin
!
AAA new-model
AAA authentication login default local
AAA authentication login NO_AUTHEN none
enable secret 5 $1$5HIS$QnrszeaiS6ygn4tq55AfR1
!
username admin privilege 15 password 7 1402065D5507252E
!
memory-size iomem 30
ip subnet-zero
no ip domain-lookup
!         
lane client flush
cns event-service server
!
voice-port 1/0/0
!
voice-port 1/0/1
!
voice-port 1/1/0
!
voice-port 1/1/1
!
dial-peer voice 1 pots
 destination-pattern 4000
 port 1/0/0
!
dial-peer voice 2 voip
 destination-pattern 5000
 dtmf-relay cisco-rtp
 ip precedence 5
 session target ipv4:192.168.10.2
!
interface FastEthernet0/0
 ip address 172.22.32.10 255.255.255.0
 speed 100
 full-duplex
!
interface Serial0/1
 bandwidth 64
 no ip address
 encapsulation frame-relay
 no ip mroute-cache
 frame-relay traffic-shaping
 frame-relay ip rtp header-compression
!
interface Serial0/1.1 point-to-point
 bandwidth 64
 ip address 192.168.10.1 255.255.255.252
 no ip mroute-cache
 frame-relay interface-dlci 100   
  class VoIPovFR
!
ip classless
ip route 172.22.10.0 255.255.255.0 192.168.10.2
no ip http server
!
map-class frame-relay VoIPovFR frame-relay cir 64000
 frame-relay BC 600
 no frame-relay adaptive-shaping
 frame-relay fair-queue
 frame-relay fragment 80
 frame-relay ip rtp priority 16384 16383 45
!
line con 0
 login authentication NO_AUTHEN
 transport input none
line aux 0
line vty 0 4
!
no scheduler allocate
end

 

[关闭][返回]