Sustituir router vodafone / comunitel con VoIP por cisco 827, 17xx o 18xx

Cisco

Esto es una config que tení­a hace tiempo.
Comunitel o ahora vodafone / tele2, cuando instalan un ADSL, los teléfonos tienen que ir conectados al router ADSL, con lo que es, a la práctica, VoIP.
Es un proveedor bastante cerrado y no es facil que te den los datos de conexión, pero tras mucho insistir los he conseguido.
El motivo de cambiarlo es que, necesito hacer una vpn y me gusta tener controlado los dos extremos, asi que procedemos y para ello necesitamos:
1º) usuario / password VoIP / ADSL
2º) IP’s gatekeepers
3º) Ip de VoIP
Partimos de la base siguiente:
1º) Dividen la conexión ADSL en 2 circuitos: circuito 1 datos, circuito 2 voz… así­ se aseguran que la voz tenga su caudal.
2º) En mi caso tení­a un telsey con 2 bris (rdsi), así­ que la configuración para analógicos difiere un poco, aunque no mucho.
3º) La conexión es pppoA y o sé si es correcta, pero mí­ me ha funcionado.
4º) La voz, debe de ir «exclusivamente» por el circuito de voz, así­ que la deberemos encaminar con un route-map.
Una vez tenemos estos datos, vamos a configurar nuestro router, sabiendo que el circuito ATM es PPPoA. En mi caso he usado un cisco 1760:

Password:
zeusII#sh run
Building configuration...
Current configuration : 6752 bytes
!
! No configuration change since last restart
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
service password-encryption
!
hostname zeusII
!
boot-start-marker
boot-end-marker
!
enable password xxxxxxxxxx
!
no aaa new-model
memory-size iomem 25
clock timezone ESPANA 1
clock summer-time ESPANA recurring last Sun Mar 2:00 last Sun Oct 3:00
tdm clock bri-auto
voice-card 2
!
voice-card 3
!
ip cef
!
!
!
!
no ip domain lookup
ip domain name dominio.net
ip auth-proxy max-nodata-conns 3
ip admission max-nodata-conns 3
!
isdn switch-type basic-net3
!
!
!
voice call send-alert
voice rtp send-recv
!
voice service voip
h323
!
!
voice class codec 1
codec preference 1 g711alaw
codec preference 2 g729r8
!
!
!
!
!
translation-rule 1201
Rule 1 ^0 12010
Rule 2 ^1 12011
Rule 3 ^2 12012
Rule 4 ^3 12013
Rule 5 ^4 12014
Rule 6 ^5 12015
Rule 7 ^6 12016
Rule 8 ^7 12017
Rule 9 ^8 12018
Rule 10 ^9 12019
!
!
!
!
!
!
interface Loopback0
ip address ip.de.voip 255.255.255.255
ip policy route-map TRAFICO_VOIP
h323-gateway voip interface
h323-gateway voip id gatekeeper1 ipaddr ip.gatekeeper.1.voip 1719 priority 126
h323-gateway voip id gatekeeper2 ipaddr ip.gatekeeper.2.voip 1719
h323-gateway voip h323-id userVoIP@bcn.comunitel.es$PASSWORD
h323-gateway voip bind srcaddr ip.de.voip
!
interface ATM0/0
no ip address
no ip redirects
no ip proxy-arp
load-interval 30
no atm ilmi-keepalive
bundle-enable
dsl operating-mode ansi-dmt
hold-queue 224 in
!
interface ATM0/0.1 point-to-point
description CIRCUITO_SOLO_INTERNET
pvc datos 0/33
encapsulation aal5mux ppp dialer
dialer pool-member 1
!
!
interface ATM0/0.2 point-to-point
description CIRCUITO_VOIP
bandwidth 256
ip unnumbered Loopback0
pvc voz 0/34
cbr 448
inarp 1
no ilmi manage
encapsulation aal5snap
!
!
interface FastEthernet0/0
ip address 192.168.1.254 255.255.255.0
ip nat inside
no ip redirects
no ip proxy-arp
ip nbar protocol-discovery
ip virtual-reassembly
speed 100
full-duplex
no cdp enable
hold-queue 100 out
!
interface BRI3/0
no ip address
isdn switch-type basic-net3
isdn overlap-receiving
isdn protocol-emulate network
isdn layer1-emulate network
isdn spid1 num.telefono.linea
isdn caller num.telefono.linea
isdn incoming-voice voice
isdn skipsend-idverify
line-power
!
interface BRI3/1
no ip address
isdn switch-type basic-net3
isdn protocol-emulate network
isdn layer1-emulate network
isdn incoming-voice voice
isdn skipsend-idverify
line-power
!
interface Dialer1
ip address IP.PUBLICA.O.DHCP
ip nat outside
ip nbar protocol-discovery
ip virtual-reassembly
encapsulation ppp
load-interval 30
dialer pool 1
no cdp enable
ppp authentication chap callin
ppp chap hostname usuario.adsl@iservicesmail
ppp chap password passwordadsl
ip nat inside source list 101 interface dialer 1 overload
ip local policy route-map TRAFICO_VOIP
ip forward-protocol nd
ip route 0.0.0.0 0.0.0.0 Dialer1
!
!
no ip https server
no ip https secure-server
access-list 23 permit 192.168.0.0 0.0.0.255
access-list 100 remark --- Marcado y routing del trafico de VoIP
access-list 100 permit ip any any dscp cs5
access-list 100 permit ip host ip.de.voip.solo any
access-list 101 remark --> acl permitirNAT
access-list 101 permit ip 192.168.1.0 0.0.0.255 any
!
route-map TRAFICO_VOIP permit 10
match ip address 100
set ip precedence critical
set interface ATM0/0.2
!
!
!
control-plane
!
!
!
voice-port 2/0
input gain 8
output attenuation 14
echo-cancel coverage 32
cptone ES
timeouts interdigit 5
description PUERTO_0_FXS
station-id number numero.telefono
caller-id enable
!
voice-port 2/1
input gain 6
output attenuation 14
echo-cancel coverage 32
cptone ES
timeouts interdigit 5
description puerto_1_FXS
caller-id enable
!
voice-port 3/0
output attenuation 7
echo-cancel coverage 32
compand-type a-law
cptone ES
timeouts interdigit 5
description PUERTO_0_RDSI_
!
voice-port 3/1
output attenuation 7
echo-cancel coverage 32
compand-type a-law
cptone ES
timeouts interdigit 5
description PUERTO_1_RDSI_
!
!
!
!
!
dial-peer cor custom
!
!
!
dial-peer voice 1 pots
huntstop
destination-pattern numero.telefono
incoming called-number .
direct-inward-dial
port 2/0
!
dial-peer voice 1201986 voip
description SALIENTES NACIONALES-MOVILES 9 DIG PUERTO FAX Y ENTRANTES FAX
huntstop
destination-pattern numero.telefono
translate-outgoing called 1201
no modem passthrough
voice-class codec 1
voice-class source interface Loopback0
session target ras
incoming called-number .
fax rate disable
fax protocol none
ip qos dscp cs5 media
ip qos dscp cs5 signaling
no vad
!
dial-peer voice 12011234 voip
description SALIENTES RESTO FAX
huntstop
destination-pattern .T
translate-outgoing called 1201
no modem passthrough
voice-class codec 1
voice-class source interface Loopback0
session target ras
fax rate disable
fax protocol none
ip qos dscp cs5 media
ip qos dscp cs5 signaling
no vad
!
dial-peer voice 2 pots
incoming called-number .
direct-inward-dial
port 3/0
!
dial-peer voice 3 pots
incoming called-number .
direct-inward-dial
port 3/1
!
num-exp 1201090 1201333
gateway
timer receive-rtp 1200
!
!
line con 0
line aux 0
line vty 0 4
access-class 23 in
password password
login
!
ntp clock-period 17208156
ntp server hora.rediris.es source FastEthernet0/0 prefer
end
zeusII#

Deja una respuesta

Tu dirección de correo electrónico no será publicada. Los campos obligatorios están marcados con *