Laboratorio 24/11/2014 How to: Creare una Rete VoIP Virtuale con GNS3 ConfigurazioneReteVoIP 1x CISCO 7940G 1x CISCO 3725 with cme-full-7.0.0.1.tar 1x CISCO IP Communicator Startup Config router CISCO 3725 Procedura Operativa: Topologia di rete Operazioni preliminary sul CISCO 3725 Router 3725 Cisco IOS Software, 3700 Software (C3725-ADVENTERPRISEK9_SNA-M), Version 12.4(25d), RELEASE SOFTWARE (fc1) with 64Mbit di Flash Format flash: del Router R1#copy run flash: Destination filename [r1-confg]? Erase flash: before copying? [confirm]n Verifying checksum... OK (0x6C65) 901 bytes copied in 2.980 secs (302 bytes/sec) R1#format flash: Format operation may take a while. Continue? [confirm] Format operation will destroy all data in "flash:". Continue? [confirm] ________________________________________________________________________________________ Ing. Nicola Cappuccio – www.studiocappuccio.net – [email protected] 1 Laboratorio 24/11/2014 How to: Creare una Rete VoIP Virtuale con GNS3 Current Low End File System flash card in flash will be formatted into DOS File System flash card! Continue? [confirm] Format: Drive communication & 1st Sector Write OK... Writing Monlib sectors. ................................................................................. ........................................ Monlib write complete Format: All system sectors written. OK... Format: Total sectors in formatted partition: 130911 Format: Total bytes in formatted partition: 67026432 Format: Operation completed successfully. Format of flash complete interfaces Fastethernet 0/0 192.168.100.1/24 Operazioni preliminari sul PC Abilitare un’interfaccia di loopback 192.168.100.2/24 e collegare via Ethernet il pc ed il 7940G Abilitare il server TFTP sull’indirizzo di loopback 192.168.100.2/24 Download via TFTP del cme-full-7.0.0.1.tar from PC to CISCO Router router#archive tar /xtract tftp://<local host>/cme-full-7.0.0.1.tar flash: Configurare DHCP su CISCO 3725 Abilititare server dhcp router# configure terminal router (config)# ip dhcp excluded-address 192.168.100.1 192.168.100.10 router (config)# ip dhcp pool VOICE_SCOPE router (dhcp-config)# network 192.168.100.0 255.255.255.0 router (dhcp-config)# default-router 192.168.100.1 router (dhcp-config)# option 150 ip 192.168.100.1 router (dhcp-config)# dns-server 4.2.2.2 ________________________________________________________________________________________ Ing. Nicola Cappuccio – www.studiocappuccio.net – [email protected] 2 Laboratorio 24/11/2014 How to: Creare una Rete VoIP Virtuale con GNS3 Abilitare il debug router#debug ip dhcp server events Configurare I Servizi Telefonici router # dir flash:/phone/7940-7960 Directory of flash:/phone/7940-7960/ 98 -rw- 129824 May 12 2008 21:33:56 -07:00 P00308000500.bin 99 -rw- 458 May 12 2008 21:33:56 -07:00 P00308000500.loads 100 -rw- 705536 May 12 2008 21:34:00 -07:00 P00308000500.sb2 101 -rw- 130228 May 12 2008 21:34:00 -07:00 P00308000500.sbn 129996800 bytes total (28583936 bytes free) router # configure terminal Enter configuration commands, one per line. End with CNTL/Z. router (config)# tftp-server flash:/phone/7940-7960/P00308000500.bin alias P00308000500.bin router (config)# tftp-server flash:/phone/7940-7960/P00308000500.loads alias P00308000500.loads router (config)# tftp-server flash:/phone/7940-7960/P00308000500.sb2 alias P00308000500.sb2 router (config)# tftp-server flash:/phone/7940-7960/P00308000500.sbn alias P00308000500.sbn router (config)# telephony-service router (config-telephony)# ip source-address 192.168.100.1 router(config-telephony)#create cnf-files router (config-telephony)#do sh flash -#- --length-- -----date/time------ path 1 0 Mar 1 2002 01:58:18 +01:00 bacdprompts ……. 46 0 Mar 1 2002 02:00:12 +01:00 phone 47 0 Mar 1 2002 02:00:12 +01:00 phone/7940-7960 48 49 129824 Mar 1 2002 02:00:16 +01:00 phone/7940-7960/P00308000500.bin 458 Mar 1 2002 02:00:16 +01:00 phone/7940-7960/P00308000500.loads ________________________________________________________________________________________ Ing. Nicola Cappuccio – www.studiocappuccio.net – [email protected] 3 Laboratorio 24/11/2014 How to: Creare una Rete VoIP Virtuale con GNS3 50 705536 Mar 1 2002 02:00:42 +01:00 phone/7940-7960/P00308000500.sb2 51 130228 Mar 1 2002 02:00:46 +01:00 phone/7940-7960/P00308000500.sbn ……. router(config-telephonyr)#load 7960-7940 P00308000500 Updating CNF files CNF files updating complete router(config-telephonyr)#reset sequence-all router(config-telephony)#create cnf-files router(config-telephony)#reset sequence-all router(config-telephony)#exit router (config-telephony)# max-ephones ? <1-30> Maximum phones to support router (config-telephony)# max-ephones 10 router (config-telephony)# max-dn ? <1-150> Maximum directory numbers supported <cr> router (config-telephony)# max-dn 10 router (config)#ephone-dn 1 router (config-ephone-dn)#number 1000 router (config-ephone-dn)#exit router (config)#ephone-dn 2 router (config-ephone-dn)#number 2000 router (config-ephone-dn)#exit router # show ephone */restituisce la lista degli ephone presenti sulla rete con il mac-address */associazione IP-Phone Numeri e Linee router (config)# ephone 1 router (config-ephone)# mac-address XXXX.XXXX.XXXX router (config-ephone)# button 1:1 router (config-ephone)# restart ________________________________________________________________________________________ Ing. Nicola Cappuccio – www.studiocappuccio.net – [email protected] 4 Laboratorio 24/11/2014 How to: Creare una Rete VoIP Virtuale con GNS3 router (config-ephone)# exit router (config)# ephone 2 router (config-ephone)# mac-address YYYY.YYYY.YYYY router (config-ephone)# button 1:1 router (config-ephone)# restart router (config-ephone)# exit Setting the Clock of a Cisco Device with NTP router #clock set 11:13:00 28 Nov 2014 router # *Nov 28 11:13:00.000: %SYS-6-CLOCKUPDATE: System clock has been updated from 00:01:13 UTC Fri Mar 1 2002 to 11:13:00 UTC Fri Nov 28 2014, configured from console by console. router # router #configure terminal router (config)#ntp server 193.204.114.232 router (config)#clock timezone ITALY +1 router (config)#ntp master Startup-config 3725 ! ! Last configuration change at 02:08:08 ITALY Fri Mar 1 2002 ! NVRAM config last updated at 02:27:07 ITALY Fri Mar 1 2002 ! version 12.4 service timestamps debug datetime msec service timestamps log datetime msec no service password-encryption ! hostname R1 ! boot-start-marker boot-end-marker ! ! ________________________________________________________________________________________ Ing. Nicola Cappuccio – www.studiocappuccio.net – [email protected] 5 Laboratorio 24/11/2014 How to: Creare una Rete VoIP Virtuale con GNS3 no aaa new-model memory-size iomem 5 clock timezone ITALY 1 no ip icmp rate-limit unreachable ip cef ! ! no ip dhcp use vrf connected ip dhcp excluded-address 192.168.100.1 192.168.100.10 ! ip dhcp pool VOICE_SCOPE network 192.168.100.0 255.255.255.0 default-router 192.168.100.1 option 150 ip 192.168.100.1 ! ! no ip domain lookup ip auth-proxy max-nodata-conns 3 ip admission max-nodata-conns 3 ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ip tcp synwait-time 5 ip ssh version 1 ! ! ! ! ! interface FastEthernet0/0 ip address 192.168.100.1 255.255.255.0 duplex auto speed auto ! interface FastEthernet0/1 no ip address shutdown duplex auto speed auto ! ! ip forward-protocol nd ! ! ________________________________________________________________________________________ Ing. Nicola Cappuccio – www.studiocappuccio.net – [email protected] 6 Laboratorio 24/11/2014 How to: Creare una Rete VoIP Virtuale con GNS3 no ip http server no ip http secure-server ! no cdp log mismatch duplex ! ! tftp-server flash:/phone/7940-7960/P00308000500.bin alias P00308000500.bin tftp-server flash:/phone/7940-7960/P00308000500.loads alias P00308000500.loads tftp-server flash:/phone/7940-7960/P00308000500.sb2 alias P00308000500.sb2 tftp-server flash:/phone/7940-7960/P00308000500.sbn alias P00308000500.sbn ! control-plane ! ! ! ! ! ! ! ! ! ! telephony-service load 7960-7940 P00308000500 max-ephones 10 max-dn 10 ip source-address 192.168.100.1 port 2000 create cnf-files version-stamp 7960 Mar 01 2002 01:38:27 max-conferences 8 gain -6 ! ! ephone-dn 1 number 1000 ! ! ephone-dn 2 number 2000 ! ! ephone 1 mac-address 001F.6C80.7F50 button 1:1 ! ! ! ephone 2 mac-address 0200.4C4F.4F50 button 1:2 ! ! ! line con 0 exec-timeout 0 0 privilege level 15 logging synchronous line aux 0 exec-timeout 0 0 privilege level 15 logging synchronous line vty 0 4 ________________________________________________________________________________________ Ing. Nicola Cappuccio – www.studiocappuccio.net – [email protected] 7 Laboratorio 24/11/2014 How to: Creare una Rete VoIP Virtuale con GNS3 login ! ntp master 1 ntp server 193.204.114.232 ! end ApplicationNote 7940G direttamente connesso alla porta Ethernet del PC. Disattivare windows firewall ________________________________________________________________________________________ Ing. Nicola Cappuccio – www.studiocappuccio.net – [email protected] 8
© Copyright 2024 Paperzz