2013년 1월 8일 화요일

VOICE LAB #02 : CUCM post installation initial configuration (SUI)

VOICE LAB #02 : CUCM post installation initial configuration (SUI)

1. Active all the services
2. Restart CTI Manager Service
3. Remove DNS relience

4. Enterprise parameter
5. Service parameter




1. Active all the services

voice lab을 시작하기 전에 CUCM의 모든 서비스를 시작해 준다. 모든 기능을 사용하지는 않지만 만약의 경우를 대비해서 모두 활성화 시켜준다.

CUCM이 DHCP 서비스를 제공해 주기는 하나, 일반적으로 DHCP 는 네트워크에서 담당하므로 DHCP만 disable 상태로 만들어준다. 
   
   Navigation => Serviceability 

   Tool => Service Activation (DHCP 서비스 제외)

2. Restart CTI Manager Service 

   CTI란? computer telephony integration (CTI) 로 CUCM 과 IP폰이 통신할 수 있게 하는 프로토콜이라 생각하면 된다. 서비스를 시작하기 전에 CTI 재실행 시켜줘서 CTI가 제대로 동작하게 하는 것이다. 


3. Remove DNS relience
   
   System => server

HOST name을 IP address 로 변경해준다. 이유는 DNS 서버에 대한 의존도를 제거하는데 있다. 만일 DNS 서버가 동작 안하더라도 CUCM에는 영향이 없게 하는게 목적이다. 


4. Enterprise parameter 

enterprise parameter 에서는 URL과 Connection Monitor Duration 을 변경해 준다. 

 위치 : System => Enterprise Parameter
    
   - Connection Monitor Duration : 10 sec 

  -  Phone URL Parameters 


 5. Service parameter
   
  CM Administration => System => service Parameter => Cisco CallManager => T302 (5 sec)
   
   CM Administration => System => service Parameter =>Cisco CallManager =>  "Forward No Answer Timer(20 sec)
   





VOICE LAB #01 : basic configuration for routers and switches

VOICE LAB #01 : basic configuration for routers and switches

- switch : vlan 
- router : DHCP, subinterface and IGRP(ospf or eigrp)

1. switch 

   HQ-VOICE : 102
   HQ-DATA  : 202
 
   SB-VOICE : 302
   SB-DATA : 402

   SERVERS : 100
 
2. router 

- DHCP setting 

- subinterface for TRUNK 

- IGRP 
  

   
  
    

virtualbox OS 복사 방법


VMware 에서는 그냥 파일을 복사해서 import 하면 간단하게 복사가 되었는데,
virtualbox는 복사만 해서는 안되는거 같네요.. 혹시 다른 방법을 알고 계시면 댓글로 알려주세요..

virtualbox 메뉴에서  머신 > 복제

이렇게 하면 기존에 있는 게스트OS를 그대로 복제해서 사용할수 있습니다.


새로운 게스트 OS의 이름 설정 
복제 방식 선택 : 완전한 복제
이렇게만 설정하면 복제(cloning) 작업이 시작됩니다. 

대략 10분정도 소요되는 같네요 ...


이제 지루한 윈도우 설치 작업을 안해도 될꺼 같네요.. 

2013년 1월 6일 일요일

My Big Mistake Today : erase flash on cisco router

My Big Mistake Today : erase flash on cisco router 



GR2HQ#show flash:

CompactFlash directory:
File  Length   Name/status
  1   50889300  c2800nm-spservicesk9-mz.124-24.T4.bin
  2   2412     hoss-test1
  3   2735     hoss-test2
  4   2301     Ori060512
  5   2966     Paulus [deleted]
  6   3425     Paulus [deleted]
  7   3378     paulus [deleted]
  8   3406     paulus
  9   3815     bak_startup_20121120.cfg
 10   1561     bak_startup_20121127.cfg [deleted]
 11   1561     bak_startup_20121127.cfg
 12   3183     Geoff_cfg_20121127.txt [deleted]
 13   3183     Geoff_cfg_20121127.txt [deleted]
 14   3183     Geoff_cfg_20121127.txt [deleted]
 15   3477     Geoff_cfg_20121127.txt [deleted]
 16   3477     Geoff_cfg_20121127.txt
[50934416 bytes used, 13290860 available, 64225276 total]
62720K bytes of ATA CompactFlash (Read/Write)

GR2HQ#copy run flash
GR2HQ#copy run flash:bak_20130107.cfg
Destination filename [bak_20130107.cfg]?
Erase flash: before copying? [confirm]
Erasing the flash filesystem will remove all files! Continue? [confirm]
Erasing device... eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee

System Bootstrap, Version 12.4(13r)T, RELEASE SOFTWARE (fc1)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 2006 by cisco Systems, Inc.

Initializing memory for ECC
.
c2811 platform with 262144 Kbytes of main memory
Main memory is configured to 64 bit mode with ECC enabled


Readonly ROMMON initialized
boot: cannot determine first executable file name on device "flash:"
c2811 platform with 262144 Kbytes of main memory
Main memory is configured to 64 bit mode with ECC enabled


Readonly ROMMON initialized
boot: cannot determine first executable file name on device "flash:"
c2811 platform with 262144 Kbytes of main memory
Main memory is configured to 64 bit mode with ECC enabled


Readonly ROMMON initialized
rommon 1 >
rommon 1 >



In order to solve the problem....follow the below process

set up th tftp server and upload IOS image file to the tftp server..

and  then, download the file from tftp server to the router..


Router fa0/0 ----CROSSOVER---- TFTP Server


rommon 1 > IP_ADDRESS=10.0.0.1
rommon 2 > IP_SUBNET_MASK=255.0.0.0
rommon 3 > DEFAULT_GATEWAY=10.0.0.2
rommon 4 > TFTP_SERVER=10.0.0.2
rommon 5 > TFTP_FILE=c2801-adventerprisek9_ivs-mz.124-22.T.bin

rommon 6 > tftpdnld








rommon 15 > tftpdnld

          IP_ADDRESS: 10.10.10.1
      IP_SUBNET_MASK: 255.0.0.0
     DEFAULT_GATEWAY: 10.0.0.2
         TFTP_SERVER: 10.0.0.2
           TFTP_FILE: c2800nm-spservicesk9-mz.124-24.T4.bin
        TFTP_VERBOSE: Progress
    TFTP_RETRY_COUNT: 18
        TFTP_TIMEOUT: 7200
       TFTP_CHECKSUM: No
        TFTP_MACADDR: 00:1d:46:f3:97:08
             FE_PORT: Fast Ethernet 0
       FE_SPEED_MODE: Auto

Invoke this command for disaster recovery only.
WARNING: all existing data in all partitions on flash: will be lost!
Do you wish to continue? y/n:  [n]:  y
.
Receiving c2800nm-spservicesk9-mz.124-24.T4.bin from 10.0.0.2 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
(omitted...)
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
File reception completed.
Copying file c2800nm-spservicesk9-mz.124-24.T4.bin to flash:.


virtualbox 마우스 빠져나오기

virtualbox 마우스 빠져나오기

VMware 를 사용할때는 ctrl+alt 를 통해서 가상머신에서 호스트OS로 빠져 나왔는데, 

VirtualBox 에서는 마우스가 빠졌다가 간신히 ctrl + alt + del 로 빠져나왔네요.. 

인터넷 검색해보니 virtualBox 에는 간단히  "오른쪽 Ctrl" 만 누르면 된다고 하네요 ..

VirtualBox에서 가상 머신과 원래의 윈도우 사이를 전환하는 단축키는 오른쪽에 있는 Ctrl키 입니다. 화면 전환 이오에 주로 사용하는 VirtualBox의 단축키는 다음과 같습니다.

* 오른쪽 Ctrl : 마우스의 호스트/가상머신 전환
* 오른쪽 Alt : 가상머신내에서 한/영전환
* 오른쪽 Ctrl+F : 가상머신 전체화면

아래 화면은 VirtualBox에서 가상 머신을 실행했을때 나오는 화면입니다.


2013년 1월 2일 수요일

CUCM에서 H323 gateway 설정하기


H.323 Gateway 구현하기 

CUCM and H323 Gateway configuration

H.323 Gateway는 Voice 탑재된 라우터로서, PSTN call 과 IP망에서의 통화를 연결 시켜주는 기능을 한다. 


CUCM에 H323 Gateway 등록하기 

Step 1. go to CUCM Administration > Device > Gateway > Add New

Step 2. choose H322 Gateway from Gateway Type

참고로, H.323 gate는 CUCM 에 등록되지 않으므로 registraton status 를 보면 항상 Unknown 으로 되어 있다.


 Voice Router 에서 H.323 설정하기 

Step 1. h.323 voip 인터페이스 

Step 2. Voip Dial-Peer 설정하기

    H.323 Gateway 로 들어오는 모든 incoming call 을 CUCM (ip : 10.1.1.1) 으로 보내라는 dial-peer 이다. 

Step 3. CUCM Redundancy on H.323 Gateway : H.323 ==> CUCM
H.323 Voice Class Configuration

Step 4. H.323 Gateway Call Survivability

   CUCM 와 H.323 gateway 의 TCP 연결은 H.225 keepalive 에 의해서 모니터링이 되고 있다. 만일 이 둘 사이에 communication 이 실패하면, 통화는 drop 된다. 통화중에 call 이 끊기는 것을 방지하기 위해서는 no h225 timeout keepalive 를 설정해 주면된다. 참고로, h225 keepalive 는 TDM-to-VOIP call 에만 적용되는 값이다. 
Keepalive configuration
  
Step 5. CUCM Call Survivability 

   앞에서 설명한 것처럼 "no h225 timeout keepalive" 는 PSTN-VoIP call 는 적용된다. VoIP-VoIP 연결을 유지하기 위해서는 h.323 voice class 를 생성하고 call preserve parameter를 설정해주면 된다.  


















2013년 1월 1일 화요일

cisco voice translation rule setting & testing

cisco voice translation rule setting



Example 1

This example replaces any five-digit number that begins with "40" with the number "6666000".
voice translation-rule 1
 rule 1 /^40.../ /6666000/
router#test voice translation-rule 1 40123
Matched with rule 1
Original number: 40123    Translated number: 6666000


Example 2

This example replaces all numbers with "5554000".
voice translation-rule 2
 rule 1 /.*/ /5554000/
router#test voice translation-rule 2 123
Matched with rule 1
Original number: 123    Translated number: 5554000

router#test voice translation-rule 2 86573
Matched with rule 1
Original number: 86573  Translated number: 5554000

router#test voice translation-rule 2 ""
Matched with rule 1
Original number:   Translated number: 5554000

Example 3

This example provides further detail:
voice translation-rule 1
 rule 1 /^\(12\)3\(45\)$/ /6\1\2/
  • Set 1: 12
  • Set 2: 45
  • Ignore: 3
router#test voice translation-rule 1 12345
Matched with rule 1 
Original number: 12345 Translated number: 61245



Pattern Match with Wildcards

These tables define wildcard and wildcard combinations and show some examples.
WildcardDefinition
.Any single digit
0 to 9,*,#Any specific character
[0-9]Any range or sequence of characters
*Modifier—match none or more occurrences
+Modifier—match one or more occurrences
?Modifier—match none or one occurrence
Wildcard CombinationDefinition
.*Any digit followed by none or more ocurrences. This is effectively anything, including null.
.+Any digit followed by one or more ocurrences. This is effectively anything, except null.
^$No digits, null

Number Slice

You can use number slice when you need to copy parts of a matched number across to the replacement number. You slice the matched number into sets that you can keep or ignore.
CharacterDescription
\In the match pattern, indicates where to slice up the number.
\In the replacement pattern, indicates where to copy the sets to keep.
( )Indicates which sets in the matched number to keep.
Character UsageDescription
(a\)Keep expression "a".
b\Ignore expression "b".
\1Copy the first set into the replacement number.

Apply Rules

Voice Translation Rules are applied to Voice Translation Profiles. These profiles are then applied to dial peers or voice ports. Profiles can be applied to VoIP or POTS dial peers or voice ports, and can be applied to inbound or outbound calls. A profile can translate Called, Calling, or Redirecting numbers.
voice translation-rule 3 
 rule 1 /123/ /456/ 

voice translation-profile profile1
 translate calling 3 

dial-peer voice 10 pots
 translation-profile outgoing profile1

reference
http://www.cisco.com/en/US/tech/tk652/tk90/technologies_tech_note09186a0080325e8e.shtml