Escenario de telefonía IP en la capacitación como instructor de
Cisco Voice Primer
Fecha: 4 de marzo del 2015
Este
escenario lo desarrollamos como escanario de prácticas con mis compañeros
instructores de Córdoba, Alberto Hued
y
Sergio Maiorano, y Santa Cruz (Bolivia) Water Mendez Hurtado, en la
capacitación como instructores del curso de VoIP
Cisco
Voice Primer, así como el mérito de nuestro instructor Leonardo Cabano por su
receptividad.
La
sinergia que se logró en aula, no la había experimentado en otras
capacitaciones, al menos en laboratorios, cada uno
aportó
ideas, mano de obra y experiencia, para vadear los obstáculos de la
implementación. Parecía que jugábamos.
Para
mi fue un tanto especial, ya que se cumplían casi 20 años de mi primer
capacitación de telefonía a este nivel (ver),
y
así, es como que cierro un ciclo (aunque esto nunca termina).
Debo
agradecer eternamente a mi mentor, Eduardo Negri, por haberme mandado a
estudiar a Siemens, allá por el 94’.
Escenario
Este
escenario fue “mutando” de menor a mayor hasta alcanzar el vínculo entre una
red 100% Cisco y una red con
una
central Asterix virtualizada y softphones, instalados en smartphones conectados
vía WiFi mediante un AP Cisco.
Detalle de la mutación
Escenario inicial:
Porqué no agregarle una sucursal para probar dial-peers ?
Y si le agregamos un Asterix con un troncal SIP
? ah, y los teléfonos por wireless, la cereza del pastel.
Todo
el escenario se concentró en este rack, el AP no está en la imagen pero es un
Aironet 1200.
Lamada entre teléfnos Cisco
de la misma red
Llamadas entre teléfonos Cisco (interno 2001) y softphones SIP
Configuraciones
de los equipos (sólo lo más relevante)
Call manager 1
!
version
12.4
!
hostname
CME_1
!
interface
FastEthernet0/0 (conexión al SW de capa 3)
ip
address 172.16.150.2 255.255.255.0
!
interface Serial0/0/0
ip
address 172.16.0.1 255.255.255.252
clock
rate 14400 (jugamos con el ancho
de banda WAN para analizar cuando la calidad
! del tráfico se volvía inaceptable)
ip
route 0.0.0.0 0.0.0.0 172.16.0.2
!
dial-peer
voice 1 voip (teléfonos IP del otro lado de la WAN)
destination-pattern
200.
session
target ipv4:172.16.0.2
!
dial-peer
voice 2 voip (teléfonos SIP en el Asterix)
destination-pattern
10.
session
target ipv4:172.16.0.2
!
telephony-service
max-ephones
10
max-dn 10
ip
source-address 172.16.150.2 port 2000
!
ephone-dn
1
number
5001
!
ephone-dn
2
number
5002
!
ephone-dn
3
number
5003
!
ephone
2
device-security-mode
none
mac-address
0001.979B.948C
type
7960
button
1:2
!
ephone
1
device-security-mode
none
mac-address 0090.21E1.3CA6
type
7960
button
1:1
!
ephone
3
device-security-mode
none
mac-address
00E0.8FC9.AE01
type
ata
button
1:3
!
end
SW de core (sólo lo mas relevante)
!
version 12.2
!
hostname SW_3560
!
ip routing
ip dhcp excluded-address
172.16.150.2
!
ip dhcp pool Datos
network 172.16.10.0
255.255.255.0
default-router
172.16.10.1
!
ip dhcp pool Voice
network
172.16.150.0 255.255.255.0
default-router
172.16.150.1
option 150 ip
172.16.150.2
!
vlan 10
name Datos
!
vlan 150
name Voice
!
interface FastEthernet0/1 (call manager)
switchport access
vlan 150
switchport mode
access
spanning-tree
portfast
!
interface FastEthernet0/24 (SW con los teléfonos IP, ATA y PC)
switchport trunk
encapsulation dot1q
switchport mode trunk
!
interface Vlan10 (gateway vlan 10)
ip address
172.16.10.1 255.255.255.0
!
interface Vlan150 (gateway vlan 150)
ip address
172.16.150.1 255.255.255.0
!
ip classless
ip route 0.0.0.0 0.0.0.0
172.16.150.2 (gateway vía call manager 1)
!
end
Switch de
acceso al call manager 1 (sólo lo mas relevante)
!
version 12.2
!
hostname Switch
!
interface FastEthernet0/1 (teléfono + PC)
switchport access
vlan 10
switchport mode
access
switchport voice vlan
150
switchport
port-security maximum 2
switchport port-security
switchport
port-security mac-address sticky
switchport
port-security mac-address sticky 94de.805f.6bd4
switchport
port-security mac-address sticky 0017.956d.a58f vlan voice
spanning-tree
portfast
!
interface FastEthernet0/2 (teléfono)
switchport voice vlan
150
spanning-tree
portfast
!
interface FastEthernet0/3 (ATA con teléfono analógico)
switchport voice vlan
150
spanning-tree
portfast
!
interface FastEthernet0/21 (solamente PC)
switchport access
vlan 10
switchport mode
access
!
interface FastEthernet0/24
switchport mode trunk
!
interface Vlan10 (interface de
administración)
ip address
172.16.10.15 255.255.255.0
!
interface Vlan150 (interface de administración)
ip address
172.16.150.15 255.255.255.0
!
monitor session 1 source interface
Fa0/1 (interface monitoreada para captura de paquetes)
monitor session 1 destination
interface Fa0/21 encapsulation replicate (PC con wireshark)
!
end
Call manager
con una pata en la red Asterix (TrixBox) (sólo lo mas relevante)
!
version 12.4
!
hostname CME_2
!
ip dhcp pool VOICE (DHCP para teléfonos Cisco)
network
192.168.150.0 255.255.255.0
default-router
192.168.150.1
option 150 ip
192.168.150.1
!
interface FastEthernet0/0
ip address
192.168.150.1 255.255.255.0
!
interface FastEthernet0/1
ip address 10.0.0.1
255.255.255.0
!
interface Serial0/1/0
ip address 172.16.0.2
255.255.255.252
!
ip route 0.0.0.0 0.0.0.0
172.16.0.1
!
dial-peer voice 1 voip (para alcanzar teléfonos Cisco del otro call manager)
destination-pattern
5...
session target ipv4:172.16.0.1
!
dial-peer voice 100 voip (para alcanzar teléfonos SIP del Asterix)
preference 1
destination-pattern
10.
progress_ind setup enable 3
session protocol
sipv2
session target
ipv4:10.0.0.254:5060 (central Asterix)
session transport udp
incoming
called-number 10.
dtmf-relay rtp-nte
codec g711ulaw
no vad
!
gateway
timer receive-rtp
1200
!
sip-ua
retry invite 3
retry response 3
retry bye 3
retry cancel 3
timers trying 1000
sip-server
ipv4:10.0.0.254 (central Asterix)
!
!
telephony-service
max-ephones 2
max-dn 1
ip source-address
192.168.150.1 port 2000
max-conferences 8
gain -6
transfer-system
full-consult
after-hours block
pattern 3 5002
after-hours day Tue
16:00 16:20
create cnf-files
version-stamp Jan 01 2002 00:00:00
!
!
ephone-dn 1
number 2001
!
!
ephone 1
device-security-mode
none
mac-address
0018.19D1.9101
button 1:1
!
end
Central Asterix
SW entre CME3,
Asterix y el AP (sólo lo mas relevante)
Current configuration
: 2950 bytes
!
version 12.2
!
hostname S1
!
interface FastEthernet0/1
switchport trunk
allowed vlan 150
switchport mode
access
spanning-tree
portfast
!
interface FastEthernet0/2
switchport mode
access
switchport voice vlan
150
spanning-tree
portfast
!
monitor session 1 source interface
Fa0/1 , Fa0/3 , Fa0/5 (para captura y análisis del
tráfico)
monitor session 1 destination
interface Fa0/21 encapsulation replicate (PC con wireshark)
end
AP Aironet 1200 para smartphones (sólo lo mas relevante)
!
version 12.3
!
hostname ap
!
ip dhcp pool MOBILE (DHCP para los smartphones)
network 10.0.0.0
255.255.255.0
default-router
10.0.0.1
!
bridge irb
!
short-slot-time
speed basic-1.0
basic-2.0 basic-5.5 6.0 9.0 basic-11.0 12.0 18.0 24.0 36.0 48.0 54.0
station-role root
bridge-group 1
bridge-group 1
subscriber-loop-control
bridge-group 1
block-unknown-source
no bridge-group 1
source-learning
no bridge-group 1
unicast-flooding
bridge-group 1
spanning-disabled
!
interface FastEthernet0
no ip address
no ip route-cache
bridge-group 1
no bridge-group 1
source-learning
bridge-group 1
spanning-disabled
!
interface BVI1
ip address 10.0.0.5
255.255.255.0
no ip route-cache
!
end
(2015) Networking is not funny for
my pretty girlfriends
Rosario, Argentina