November 10, 2018 | Author: swatcat666 | Category: N/A
Download Escenarios de VoIP Con Routers Cisco...
Escenarios de VoIP con Routers Cisco
Edgar Velarde
[email protected]
Escenario 1 Central
(1) 1000
3020
R1700 2FXS+ 2FXO
2800
FXS1
R1 Fa0
R3 Fa1
10.10.10.0/30
FXS2
.1
R2600 2FXS
2800
R2 Fa0
3030
Remoto
Dial-peer voip A
Fa0
R4 Fa1
10.10.10.4/30 .2
.5
FXS1
Fa0 10.10.10.8/30
.6
.9
.10
FXS2
1001 FXo1
201
(2) 101
Dial-peer voip B Loopback 0 2.2.2.1/32
Loopback 0 2.2.2.2/32
PBX Panasonic
Un usua usuario rio en el el siti sitio o “Remot “Remoto” o” levant levanta a el teléfo teléfono no 1000 1000 (1) y su puerto puerto FXS1 FXS1 disca disca los dígito dígitos s 201 201 automáti automáticame camente nte para enrutar enrutar la llamada llamada hacia la PBX (2) ubicada ubicada en la sede “Central”. “Central”.
Conf Config igur urac ació ión n – Part Parte e 1/2 1/2 Configurando el router R1 (1700)
*** Configurando el voice port FX0
Router>enable
Router(config)#voice port 1/0
Router#configure terminal
Router(config-dial-port)#signal loop-start
*** Configurando las interfaces
Router(config-dial-port)#cptone PE
Router(config)#interface fastEthernet 0/0 Router(config-if)#ip address address 10.10.10.1 mask 255.255.255.252 Router(config-if)#no shutdown Router(config-if)# exit
Router(config-dial-port)#no shutdown Router(config-dial-port)#exit *** Configurando el dial-peer voip “A” Router(config)#dial-peer voice 1000 voip Router(config-dial-peer)#destination-pattern 1...
Router(config)#interface loopback 0
Router(config-dial-peer)#session target ipv4:2.2.2.2
Router(config-if)#ip address 2.2.2.1 255.255.255.255
Router(config-dial-peer)#no shutdown
Router(config-if)#no shutdown
Router(config-dial-peer)#exit
Router(config-if)# exit
*** Configurando el enrutamiento estático
*** Configurando los dial-peer POTS para cada puerto FXS
Router(config)#ip route 2.2.2.2 255.255.255.255 10.10.10.2
Router(config)#dial-peer voice 1 pots
Router(config Router(config)#ip )#ip route 10.10.10.4 255.255.255.2 255.255.255.252 52 10.10.10.2 10.10.10.2
Router(config-dial-peer)#destination pattern 3020
Router(config Router(config)#ip )#ip route 10.10.10.8 255.255.255.2 255.255.255.252 52 10.10.10.2 10.10.10.2
Router(config-dial-peer)#port 0/0/0
Configurando el router R2
Router(config-dial-peer)#no shutdown
Router>enable
Router(config-dial-peer)#exit Router(config Router(config)#dial-p )#dial-peer eer voice 2 pots Router(config-dial-peer)#destination pattern 3030 Router(config-dial-peer)#port 0/0/1 Router(config-dial-peer)#no shutdown
*** Configurando las interfaces Router#configure terminal Router(config)#interface fastEthernet 0/0 Router(config-if)#ip address address 10.10.10.2 mask 255.255.255.252 Router(config-if)#no shutdown Router(config-if)# exit
Router(config-dial-peer)#exit
Router(config)#interface fastEthernet 0/1
*** Configurando Configurando el dial-peer dial-peer POTS del puerto FXO
Router(config-if)#ip address address 10.10.10.5 mask 255.255.255.252
Router(config Router(config)#dial-p )#dial-peer eer voice 3 pots
Router(config-if)#no shutdown
Router(config-dial-peer)#destination pattern 201
Router(config-if)# exit
Router(config-dial-peer)#port 1/0
*** Configurando el enrutamiento estático
Router(config-dial-peer)#no shutdown
Router(config)#ip route 2.2.2.1 255.255.255.255 10.10.10.1
Router(config-dial-peer)#exit
Router(config)#ip route 2.2.2.2 255.255.255.255 10.10.10.6 Router(config)#ip route 10.10.10.8 255.255.255.255 10.10.10.6
Conf Config igur urac ació ión n – Part Parte e 2/2 2/2 Configurando el router R3
Router(config)#dial-peer voice 1 pots
Router>enable
Router(config-dial-peer)#destination pattern 1000
*** Configurando las interfaces
Router(config-dial-peer)#port 0/0/0
Router#configure terminal
Router(config-dial-peer)#no shutdown
Router(config)#interface fastEthernet 0/0
Router(config-dial-peer)#exit
Router(config-if)#ip address address 10.10.10.6 mask 255.255.255.252
*** Configurando el voice port FXS1
Router(config-if)#no shutdown
Router(config)#voice port 0/0/0
Router(config-if)# exit
Router(config-dial-port)#cptone PE
Router(config)#interface fastEthernet 0/1
Router(config-dial-port)#connection plar 1000
Router(config-if)#ip address address 10.10.10.9 mask 255.255.255.252
Router(config-dial-port)# no shutdown
Router(config-if)#no shutdown
Router(config-dial-port)#exit
Router(config-if)# exit
Router(config Router(config)#dial-p )#dial-peer eer voice 2 pots
*** Configurando el enrutamiento estático
Router(config-dial-peer)#destination pattern 1001
Router(config)#ip route 2.2.2.1 255.255.255.255 10.10.10.5
Router(config-dial-peer)#port 0/0/1
Router(config)#ip route 2.2.2.2 255.255.255.255 10.10.10.10
Router(config-dial-peer)#no shutdown
Router(config)#ip route 10.10.10.0 255.255.255.255 10.10.10.5
Router(config-dial-peer)#exit
Configurando el router R4 (2600)
*** Configurando el dial-peer voip “B”
Router>enable
Router(config)#dial-peer voice 1000 voip
Router#configure terminal
Router(config-dial-peer)#destination-pattern 30..
*** Configurando las interfaces
Router(config-dial-peer)#session target ipv4:2.2.2
Router(config)#interface fastEthernet 0/0
Router(config-dial-peer)#no shutdown
Router(config-if)#ip address 10.10.10.10 mask 255.255.255.252
Router(config-dial-peer)#exit
Router(config-if)#no shutdown
Router(config Router(config)#dial-p )#dial-peer eer voice 1001 voip
Router(config-if)# exit
Router(config-dial-peer)#destination-pattern 2..
Router(config)#interface loopback 0
Router(config-dial-peer)#session target ipv4:2.2.2
Router(config-if)#ip address 2.2.2.2 255.255.255.255
Router(config-dial-peer)#no shutdown
Router(config-if)#no shutdown
Router(config-dial-peer)#exit
Router(config-if)# exit *** Configurando los dial-peer POTS para cada puerto FXS
Escenario 2 (1)
Dial-peer voip A
Remoto
Central
1000 FXS1
2800 R2600
1001 FXS2
R1 S0
1.1.1.0/30
.1 Fa0
1002
2800
S0 .2
2.2.2.0/30
Fa0
PBX Panasonic R1700
R2 S1
1.1.1.4/30
S0
2.2.2.4/30
Fa0
.5 Fa1
.6
.9 Fa1
FX01
.10 2.2.2.8/30
Fa0
201
FXS3
1003
FXS4
Dial-peer voip B Loopback 0 3.3.3.3/32
Loopback 0 3.3.3.4/32
Un usuario usuario de la sede “Central” “Central” levanta levanta la extensió extensión n 101 (2) con la intenció intención n de llamar llamar a la extensión extensión 1000 1000 (1) en la sede “Remot “Remoto”. o”.
101
(2)
102
Configuración – Parte 1/3 Configurando el router 2600
*** Configurando los dial-peer POTS para cada puerto FXS
*** Averiguando los puertos FXS del router
Router(config)#dial-peer voice 10 pots
Router>enable
Router(config-dial-peer)#destination pattern 1000
Router#show running-config
Router(config-dial-peer)#port 1/0/0
Building configuration... … ! voice-port 1/0/0 !
Router(config-dial-peer)#no shutdown Router(config-dial-peer)#exit Router(config)#dial-peer voice 11 pots Router(config-dial-peer)#destination pattern 1001
voice-port 1/0/1
Router(config-dial-peer)#port 1/0/1
!
Router(config-dial-peer)#no shutdown
voice-port 1/1/0
Router(config-dial-peer)#exit
!
Router(config)#dial-peer voice 12 pots
voice-port 1/1/1
Router(config-dial-peer)#destination pattern 1002
!
Router(config-dial-peer)#port 1/1/0
…
Router(config-dial-peer)#no shutdown
!
Router(config-dial-peer)#exit
end
Router(config)#dial-peer voice 13 pots
Router#configure terminal *** Configurando las interfaces Router(config)#interface fastEthernet 0/0 Router(config-if)#ip address 2.2.2.1 mask 255.255.255.252 Router(config-if)#no shutdown Router(config-if)# exit
Router(config-dial-peer)#destination pattern 1003 Router(config-dial-peer)#port 1/1/1 Router(config-dial-peer)#no shutdown Router(config-dial-peer)#exit Router(config)#exit
Router(config)#interface serial 0/0/0
*** Salvando configuración
Router(config-if)#ip address 1.1.1.1 255.255.255.252
Router#rw
Router(config-if)#no shutdown
Router#configure terminal
Router(config-if)# exit
*** Configurando el dial-peer voip “A”
Router(config)#interface loopback 0
Router(config)#dial-peer voice 1000 voip
Router(config-if)#ip address 3.3.3.3 255.255.255.255
Router(config-dial-peer)#destination-pattern 2..
Router(config-if)#no shutdown
Router(config-dial-peer)#session target ipv4:3.3.3.4
Router(config-if)# exit
Router(config-dial-peer)#no shutdown Router(config-dial-peer)#exit
Configuración – Parte 3/3 Configurando router 1700
*** Configurando el enrutamiento estático
Router>enable
Router(config)#ip route 3.3.3.3 255.255.255.255 2.2.2.9
Router#configure terminal
Router(config)#ip route 2.2.2.4 255.255.255.252 2.2.2.9
*** Configurando las interfaces
Router(config)#ip route 1.1.1.4 255.255.255.252 2.2.2.9
Router(config)#interface fastEthernet 0/0
Router(config)#ip route 2.2.2.0 255.255.255.252 2.2.2.9
Router(config-if)#ip address 2.2.2.10 mask 255.255.255.252
Router(config)#ip route 1.1.1.0 255.255.255.252 2.2.2.9
Router(config-if)#no shutdown
Router(config)#exit
Router(config-if)# exit Router(config)#interface loopback 0 Router(config-if)#ip address 3.3.3.4 255.255.255.255 Router(config-if)#no shutdown Router(config-if)# exit *** Configurando Configurando el dial-peer dial-peer POTS del puerto FXO Router(config)#dial-peer voice 1 pots Router(config-dial-peer)#destination pattern 201 Router(config-dial-peer)#port 1/0 Router(config-dial-peer)#no shutdown Router(config-dial-peer)#exit *** Configurando el voice port FXO Router(config)#voice port 1/0 Router(config-dial-port)#signal loop-start Router(config-dial-port)#cptone PE Router(config-dial-port)#connection plar 1000 Router(config-dial-port)# no shutdown Router(config-dial-port)#exit *** Configurando el dial-peer voip “B” Router(config)#dial-peer voice 1000 voip Router(config-dial-peer)#destination-pattern 1... Router(config-dial-peer)#session target ipv4:3.3.3.3 Router(config-dial-peer)#no shutdown Router(config-dial-peer)#exit