Skip to content

Instantly share code, notes, and snippets.

@juaoose
Last active April 2, 2017 21:43
Show Gist options
  • Select an option

  • Save juaoose/aaf0e5f980054493b58bd8294c6e1fa8 to your computer and use it in GitHub Desktop.

Select an option

Save juaoose/aaf0e5f980054493b58bd8294c6e1fa8 to your computer and use it in GitHub Desktop.
NGN: Redes de próxima generación. G01
##Router 1
show ip interface brief
interface G0/0
no shutdown
interface G0/1.5
encapsulation dot1q 5
ip address 192.10.20.1 255.255.255.0
exit
interface G0/1.10
encapsulation dot1q 10
ip address 192.10.30.1 255.255.255.0
exit
##Verificar en router con
show ip interface brief
show interface G0/1.5
show interface G/1.10
show ip route
##Carga firmware en routers
tftp-server flash0:apps41.9-3-1ES26.sbn
tftp-server flash0:cnu41.9-3-1ES26.sbn
tftp-server flash0:cvm41sccp.9-3-1ES26.sbn
tftp-server flash0:dsp41.9-3-1ES26.sbn
tftp-server flash0:jar41sccp.9-3-1ES26.sbn
tftp-server flash0:SCCP41.9-3-1SR4-1S.loads
tftp-server flash0:term41.default.loads
tftp-server flash0:term61.default.loads
ntp master
telephony-service
create cnf-files version-stamp Aug 09 2016 00:00:00
no create cnf-files
load 7941 SCCP41.9-3-1SR4-1S
create cnf-files
max-ephones 3
max-dn 3
ip source-address 192.10.20.1 port 2000
auto assign 1 to 3
system message VoIP_LabIntercom
##Config telefonos router 1
ephone-dn 1
number 101
name IP_Phone1
label IP_Phone1
exit
ephone-dn 2
number 102
name SoftPhone2
label SoftPhone2
exit
ephone 1
no multicast-moh
mac-address <telefono1>
type 7941
button 1:1
exit
ephone 2
no multicast-moh
mac-address <computador1>
type CIPC
exit
## DHCP
ip dhcp excluded-address 192.10.20.1
ip dhcp excluded-address 192.10.30.1
ip dhcp pool poolVoz
network 192.10.20.0 255.255.255.0
domain-name VoIP_LabIntercom
option 150 ip 192.10.20.1
default-router 192.10.20.1
exit
ip dhcp pool poolDatos
network 192.10.30.0 255.255.255.0
default-router 192.10.30.1
domain-name datosLabIntercom
dial-peer voice 10 pots
destination-pattern 100
port 0/0/1
exit
dial-peer voice 11 voip
destination-pattern 10.
session target ipv4:192.10.20.1
exit
dial-peer voice 22 voip
destination-pattern 20.
session target ipv4:192.30.30.2
exit
##pongo la interfaz de este router
interface G0/0
ip address 192.30.30.1 255.255.255.0
no shutdown
##Rip
router rip
version 2
no auto-summary
network 192.30.30.0
network 192.10.20.0
network 192.10.30.0
##Router 2
interface G0/1.5
encapsulation dot1q 5
ip address 192.10.40.1 255.255.255.0
exit
interface G0/1.10
encapsulation dot1q 10
ip address 192.10.50.1 255.255.255.0
exit
##Carga firmware en routers
tftp-server flash0:apps41.9-3-1ES26.sbn
tftp-server flash0:cnu41.9-3-1ES26.sbn
tftp-server flash0:cvm41sccp.9-3-1ES26.sbn
tftp-server flash0:dsp41.9-3-1ES26.sbn
tftp-server flash0:jar41sccp.9-3-1ES26.sbn
tftp-server flash0:SCCP41.9-3-1SR4-1S.loads
tftp-server flash0:term41.default.loads
tftp-server flash0:term61.default.loads
ntp master
telephony-service
create cnf-files version-stamp Aug 09 2016 00:00:00
no create cnf-files
load 7941 SCCP41.9-3-1SR4-1S
create cnf-files
max-ephones 3
max-dn 3
ip source-address 192.10.40.1 port 2000
auto assign 1 to 3
system message VoIP_LabIntercom
##Config telefonos router 2
ephone-dn 1
number 201
name IP_Phone1.1
label IP_Phone1
exit
ephone-dn 2
number 202
name SoftPhone2.1
label SoftPhone2.1
exit
ephone 1
no multicast-moh
mac-address <telefono2>
type 7941
button 1:1
exit
ephone 2
no multicast-moh
mac-address <computador2>
type CIPC
exit
##falta configurar el softphone en router 2 (PC)
##DHCP
ip dhcp excluded-address 192.10.40.1
ip dhcp excluded-address 192.10.50.1
ip dhcp pool poolVoz
network 192.10.40.0 255.255.255.0
domain-name VoIP_LabIntercom
option 150 ip 192.10.40.1
default-router 192.10.40.1
exit
ip dhcp pool poolDatos
network 192.10.50.0 255.255.255.0
default-router 192.10.50.1
domain-name datosLabIntercom
exit
dial-peer voice 11 voip
destination-pattern 10.
session target ipv4:192.30.30.1
exit
dial-peer voice 22 voip
destination-pattern 20.
session target ipv4:192.10.40.1
exit
##pongo la interfaz de este router
interface G0/0
ip address 192.30.30.2 255.255.255.0
no shutdown
##Rip
router rip
version 2
no auto-summary
network 192.30.30.0
network 192.10.40.0
network 192.10.50.0
##Switch 1
vlan 5
exit
vlan 10
exit
show vlan brief
##creo el dot1q trunk
show interface brief
interface FastEthernet0/1
switchport trunk encapsulation dot1q
switchport mode trunk
switchport trunk native vlan 99
switchport trunk allowed vlan 99,5,10
spanning-tree portfast
exit
show interfaces trunk
interface FastEthernet0/2
switchport access vlan 10
switchport voice vlan 5
spanning-tree portfast
exit
show interfaces FastEthernet0/2 status
##Switch 2
vlan 5
exit
vlan 10
exit
show vlan brief
##todo enlace troncal
show interface brief
interface FastEthernet0/1
switchport trunk encapsulation dot1q
switchport mode trunk
switchport trunk native vlan 99
switchport trunk allowed vlan 99,5,10
spanning-tree portfast
interface FastEthernet0/2
switchport mode access
switchport access vlan 10
spanning-tree portfast
no shutdown
exit
interface FastEthernet0/3
switchport mode access
switchport voice vlan 5
spanning-tree portfast
no shutdown
exit
show interfaces <2 o 3> status
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment