Cisco VG224 Voice Gateway Software Configuration Guide Corporate Headquarters Cisco Systems, Inc. 170 West Tasman Drive San Jose, CA 95134-1706 USA http://www.cisco.
THE SPECIFICATIONS AND INFORMATION REGARDING THE PRODUCTS IN THIS MANUAL ARE SUBJECT TO CHANGE WITHOUT NOTICE. ALL STATEMENTS, INFORMATION, AND RECOMMENDATIONS IN THIS MANUAL ARE BELIEVED TO BE ACCURATE BUT ARE PRESENTED WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED. USERS MUST TAKE FULL RESPONSIBILITY FOR THEIR APPLICATION OF ANY PRODUCTS.
CONTENTS Preface vii Objectives Audience vii vii Document Organization viii Related and Referenced Documents viii To Access Online User Documentation (PDF and HTML Formats) viii Access User Documentation on the Documentation CD-ROM (HTML format only) viii Obtaining Documentation x Cisco.
Contents Configuring Global Parameters 2-2 Configuring Controller and Interface Parameters 2-5 Configuring Fast Ethernet and Serial Interface Parameters Fast Ethernet Interface Configuration 2-6 Completing the Configuration Where to Go Next CHAPTER 2-6 2-7 Configuring with the Command-Line Interface 3 2-5 3-1 Configuring the Host Name and Password 3-2 Verifying the Host Name and Password 3-3 Configuring Fast Ethernet Interfaces Saving Configuration Changes Where to Go Next CHAPTER Prerequisites
Contents ROM Monitor Syntax Conventions C-3 Command Descriptions C-3 Debugging Commands C-5 Configuration Register Commands C-5 Using the show rom-monitor command C-6 Using the upgrade rom-monitor Command C-7 Recovering Boot and System Images C-8 Using the xmodem Command C-8 Using the tftpdnld Command C-9 INDEX Cisco VG224 Voice Gateway Software Configuration Guide OL-5005-01 v
Contents Cisco VG224 Voice Gateway Software Configuration Guide vi OL-5005-01
Preface This preface discusses the objectives, audience, organization, and conventions of this software configuration guide, and where to get the latest version of this guide.
Preface Document Organization Document Organization The major sections of this document are summarized below: Chapter Title Description Chapter 1 Understanding Interface Numbering and Cisco IOS Software Basics Provides an overview of the interface numbering conventions for the Cisco VG224. Also provides a basic understanding of Cisco IOS software. Chapter 2 Using the setup Command Describes how to use the setup command facility to configure your router.
Preface Related and Referenced Documents Tip To navigate up to the next higher level in the documentation hierarchy, click on CONTENTS in the navigation bar at the top of each page. Cisco Product Document Title Cisco VG224 Voice Gateway Cisco IOS software Note Refer to the modular reference publication that corresponds to the Cisco IOS software release installed on your server.
Preface Obtaining Documentation Obtaining Documentation Cisco provides several ways to obtain documentation, technical assistance, and other technical resources. These sections explain how to obtain technical information from Cisco Systems. Cisco.com You can access the most current Cisco documentation on the World Wide Web at this URL: http://www.cisco.com/univercd/home/home.htm You can access the Cisco website at this URL: http://www.cisco.
Preface Documentation Feedback Documentation Feedback You can submit e-mail comments about technical documentation to bug-doc@cisco.com. You can submit comments by using the response card (if present) behind the front cover of your document or by writing to the following address: Cisco Systems Attn: Customer Document Ordering 170 West Tasman Drive San Jose, CA 95134-9883 We appreciate your comments.
Preface Obtaining Additional Information TAC Case Priority Definitions To ensure that all cases are reported in a standard format, Cisco has established case priority definitions. Priority 1 (P1)—Your network is “down” or there is a critical impact to your business operations. You and Cisco will commit all necessary resources around the clock to resolve the situation.
Preface Obtaining Additional Information • What’s New in Cisco Product Documentation is an online publication that provides information about the latest documentation releases for Cisco products. Updated monthly, this online publication is organized by product category: http://www.cisco.com/en/US/docs/general/whatsnew/whatsnew.html • Access international Cisco websites at: http://www.cisco.com/public/countries_languages.
Preface Obtaining Additional Information Cisco VG224 Voice Gateway Software Configuration Guide xiv OL-5005-01
C H A P T E R 1 Understanding Interface Numbering and Cisco IOS Software Basics This chapter provides an overview of interface numbering in the Cisco VG224 voice gateway (VG). It also describes how to use the Cisco IOS software commands.
Chapter 1 Understanding Interface Numbering and Cisco IOS Software Basics Port Numbering Conventions Port Numbering Conventions The Cisco VG224 is used as an example. See Figure 1-2 on page 1-2.
Chapter 1 Understanding Interface Numbering and Cisco IOS Software Basics Understanding Cisco IOS Software Basics Understanding Cisco IOS Software Basics This section describes what you need to know about the Cisco IOS software before you configure the router using the command-line interface (CLI).
Chapter 1 Understanding Interface Numbering and Cisco IOS Software Basics Understanding Cisco IOS Software Basics Table 1-1 Timesaver Common Command Modes Command Mode Access Method Router Prompt Displayed User EXEC Log in. Router> Privileged EXEC From user EXEC mode, Router# enter the enable command. To exit to user EXEC mode, use the disable, exit, or logout command. Global configuration From the privileged EXEC mode, enter the configure terminal command.
Chapter 1 Understanding Interface Numbering and Cisco IOS Software Basics Upgrading to a New Cisco IOS Release Saving Configuration Changes You need to enter the copy running-config startup-config command to save your configuration changes to nonvolatile random-access memory (NVRAM), so the changes are not lost if there is a system reload or power outage. For example: Router# copy running-config startup-config Building configuration... It might take a minute or two to save the configuration to NVRAM.
Chapter 1 Understanding Interface Numbering and Cisco IOS Software Basics Where to Go Next • To disable a feature, generally enter the keyword no before the command; for example, no ip routing. • You need to save your configuration changes to NVRAM so the changes are not lost if there is a system reload or power outage. Proceed to Chapter 2, “Using the setup Command,” to begin configuring the router.
C H A P T E R 2 Using the setup Command This chapter describes how to use the setup command facility to configure your Cisco VG224. The setup command facility prompts you to enter information needed to start a router functioning quickly. The facility steps you through a basic configuration, including LAN and WAN interfaces.
Chapter 2 Using the setup Command Using the setup Command Using the setup Command The setup command facility is displayed in your PC terminal emulation program window. To create a basic configuration for your Cisco VG224, do the following: Note • Complete the steps in “Configuring Global Parameters” section on page 2-2. • Complete the steps in “Configuring Controller and Interface Parameters” section on page 2-5. • Complete the steps in “Completing the Configuration” section on page 2-6.
Chapter 2 Using the setup Command Configuring Global Parameters program load complete, entry point:0x80008000, size:0xa0e0 program load complete, entry point:0x8001f000, size:0x942e80 Self decompressing the image :######################################################################################### ########################## [OK] Smart Init is enabled smart init is sizing iomem ID MEMORY_REQ TYPE 00045B 0X004A528C 24 Analog FXS's, 2 FE 0X000F3BB0 public buffer pools 0X00211000 public particle pools TO
Chapter 2 Using the setup Command Configuring Global Parameters Would you like to enter the initial configuration dialog? [yes/no]: yes At any point you may enter a question mark '?' for help. Use ctrl-c to abort configuration dialog at any prompt. Default settings are in square brackets '[]'.
Chapter 2 Using the setup Command Configuring Controller and Interface Parameters Community string [public]: Configure LAT? [no]: Configure IP? [yes]: Configure IGRP routing? [yes]: Your IGRP autonomous system number [1]: 1 Note If you answer no to IGRP, you are prompted to configure RIP. Configure bridging? [no]: Step 9 (Optional) Configure CHAP: All users dialing in through the PRI will need to be authenticated using CHAP. The username and password are case sensitive.
Chapter 2 Using the setup Command Completing the Configuration • Fast Ethernet Interface Configuration Fast Ethernet Interface Configuration This section contains a sample configuration for the Fast Ethernet interface. Enter the values appropriate for your Cisco VG224 and network. The messages you see may vary.
Chapter 2 Using the setup Command Where to Go Next • Modify the existing configuration or configure additional features with the CLI as described in Chapter 3, “Configuring with the Command-Line Interface.” Where to Go Next At this point you can proceed to the following: • “Chapter 3, “Configuring with the Command-Line Interface,” to learn how to use the CLI to configure additional features.
Chapter 2 Using the setup Command Where to Go Next Cisco VG224 Voice Gateway Software Configuration Guide 2-8 OL-5005-01
C H A P T E R 3 Configuring with the Command-Line Interface This chapter describes how to use the Cisco IOS software command-line interface (CLI) to configure basic Cisco VG224 functionality.
Chapter 3 Configuring with the Command-Line Interface Configuring the Host Name and Password Configuring the Host Name and Password One of the first configuration tasks you might want to do is to configure the host name and set an encrypted password. Configuring a host name allows you to distinguish multiple Cisco VG224s and routers from each other. Setting an encrypted password allows you to prevent unauthorized configuration changes.
Chapter 3 Configuring with the Command-Line Interface Configuring the Host Name and Password Verifying the Host Name and Password To verify that you configured the correct host name and password: Step 1 Enter the show config command: Router(config)# show config Using 1888 out of 126968 bytes ! version XX.X . . . ! hostname VG224 ! enable secret 5 $1$60L4$X2JYOwoDc0.kqa1loO/w8/ . . . Check the host name and encrypted password displayed near the top of the command output.
Chapter 3 Configuring with the Command-Line Interface Configuring Fast Ethernet Interfaces Configuring Fast Ethernet Interfaces To configure a Fast Ethernet interface, use the configuration software provided with your Cisco VG224 or network module, if any. Otherwise, for greatest power and flexibility, use configuration mode (manual configuration). Note Before you begin, disconnect all WAN cables from the Cisco VG224 to keep it from trying to run the AutoInstall process.
Chapter 3 Configuring with the Command-Line Interface Saving Configuration Changes Command Purpose Step 7 Router(config-if)# exit Exits back to global configuration mode. Repeat Step 4 through Step 6 if your Cisco VG224 has more than one interface that you need to configure. Step 8 Router(config-if)# Ctrl-z When you finish configuring interfaces, returns to enable mode.
Chapter 3 Configuring with the Command-Line Interface Where to Go Next Cisco VG224 Voice Gateway Software Configuration Guide 3-6 OL-5005-01
C H A P T E R 4 Configuring Voice over IP This chapter explains how to configure voice interfaces and ports, which convert telephone voice signals for transmission over an IP network. This chapter presents the following major topics: • Prerequisites, page 4-1 • Configuring the Voice Interface, page 4-1 • Where to Go Next, page 4-3 Voice over IP (VoIP) enables your Cisco VG224 to carry live voice traffic (for example, telephone calls and faxes) over an IP network.
Chapter 4 Configuring Voice over IP Configuring the Voice Interface To configure the voice interface configuration mode, follow this procedure: Step 1 Connect a console to the Cisco VG224. If you need instructions for connecting a console, refer to the installation chapter of your Cisco VG224 installation and configuration guide. Step 2 Power on the Cisco VG224.
Chapter 4 Configuring Voice over IP Where to Go Next Step 10 The results of the show running-config and show startup-config commands differ from each other if you have made changes to the configuration, but have not yet written them to NVRAM. To write your changes to NVRAM, making them permanent, enter the copy running-config startup-config command at the enable prompt: Router# copy running-config startup-config Building configuration. . .
Chapter 4 Configuring Voice over IP Where to Go Next Cisco VG224 Voice Gateway Software Configuration Guide 4-4 OL-5005-01
A P P E N D I X A Cisco VG224 Configuration Example This appendix presents the following sample configurations for the Cisco VG224. Current configuration : 2612 bytes ! version 12.3(4)T service timestamps debug datetime msec service timestamps log datetime msec no service password-encryption ! hostname swell-China ! ! ip subnet-zero ! ! ! ! ! ! ! ! ! ! no voice hpi capture buffer no voice hpi capture destination ! ! mta receive maximum-recipients 0 ! ! ! ! ! ! interface FastEthernet0/0 ip address 1.3.21.
Appendix A Cisco VG224 Configuration Example no ip http secure-server ip classless ip route 0.0.0.0 0.0.0.0 1.2.0.
Appendix A Cisco VG224 Configuration Example voice-port 2/8 cptone HK ! voice-port 2/9 cptone HK ! voice-port 2/10 cptone HK ! voice-port 2/11 ! voice-port 2/12 ! voice-port 2/13 ! voice-port 2/14 ! voice-port 2/15 ! voice-port 2/16 ! voice-port 2/17 ! voice-port 2/18 ! voice-port 2/19 ! voice-port 2/20 ! voice-port 2/21 ! voice-port 2/22 ! voice-port 2/23 ! ! mgcp profile default ! dial-peer cor custom ! ! ! dial-peer voice 1 pots service stcapp 1000 port 2/0 ! dial-peer voice 2 pots service stcapp 2000
Appendix A Cisco VG224 Configuration Example port 2/5 ! dial-peer voice 10 voip destination-pattern 2... session target ipv4:1.2.125.
A P P E N D I X B Formatting the Compact Flash Memory Cards This appendix describes how to format the compact flash memory into a Class B flash file system, known as the low-end file system (LEFS), or into a Class C flash file system, which is similar to the standard DOS file system. It also describes how to perform file and directory operations in each file system.
Appendix B Formatting the Compact Flash Memory Cards Formatting Procedures for Compact Flash Memory Cards The following examples show sample outputs for Class B and Class C flash file systems: External Card with Class B Flash File System The geometry and format information is not displayed for this format: Router# show slot0: all Partition Mode 1 Size 31360K Used Free 6502K 24857K Bank-Size 0K State Copy Read/Write Direct Slot0 CompactFlash directory: File Length Name/status addr fcksum ccksu
Appendix B Formatting the Compact Flash Memory Cards Formatting Procedures for Compact Flash Memory Cards System CompactFlash directory: File Length Name/status addr fcksum ccksum 1 6658376 cvg224-i-mz 0x40 0xE0FF 0xE0FF 2 14221136 cvg224-telcoent-mz 0x6599C8 0x5C3D 0x5C3D [20879640 bytes used, 107308776 available, 128188416 total] 125184K bytes of ATA System CompactFlash (Read/Write) Chip information NOT available.
Appendix B Formatting the Compact Flash Memory Cards File and Directory Operations eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
Appendix B Formatting the Compact Flash Memory Cards File and Directory Operations The following example shows sample output for copying a Cisco IOS file from an internal compact flash memory card (flash:) to an external compact flash memory card (slot0:): Router# copy flash:cvg224-i-mz.tmp slot0: Destination filename [cvg224-i-mz.
Appendix B Formatting the Compact Flash Memory Cards File and Directory Operations The following example shows sample output for displaying the contents of an external compact flash memory card using the show slot0: command: Router# show slot0: System CompactFlash directory: File Length Name/status 1 5190020 cvg224-i-mz 2 6458584 cvg224-i-mz 3 16535740 cvg224-telcoent-mz [28184536 bytes used, 100266024 available, 128450560 total] 125440K bytes of ATA System CompactFlash (Read/Write) Delete Files from Co
Appendix B Formatting the Compact Flash Memory Cards File and Directory Operations Squeeze operation may take a while. Continue? [confirm] squeeze in progress... sssssssssssssssssssssssseeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee Rebuild file system directory... Squeeze of slot0 complete Displaying File Content To display the content of a file in compact flash memory, use the more {flash: | slot0:} command.
Appendix B Formatting the Compact Flash Memory Cards File and Directory Operations CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC
Appendix B Formatting the Compact Flash Memory Cards File and Directory Operations ******** ATA Flash Card Geometry/Format Info ******** ATA CARD GEOMETRY Number of Heads: Number of Cylinders Sectors per Cylinder Sector Size Total Sectors ATA CARD FORMAT Number of FAT Sectors Sectors Per Cluster Number of Clusters Number of Data Sectors Base Root Sector Base FAT Sector Base Data Sector 4 490 32 512 62720 31 8 7796 62560 155 93 187 Delete Files from Compact Flash Memory To delete a file from a compact
Appendix B Formatting the Compact Flash Memory Cards File and Directory Operations 63930368 bytes total (51007488 bytes free) Displaying File Content To display the content of a file in a compact flash memory card, use the more {flash: | slot0:} command. The following example shows sample output from the more {flash: | slot0:} command on an internal compact flash card: Router# more flash:cvg224-i-mz.
Appendix B Formatting the Compact Flash Memory Cards File and Directory Operations Create directory filename [/config/test-config]? Created dir flash:/config/test-config Router# dir flash: Directory of flash:/ 3 -rw1580 drw- 6458208 Mar 01 1993 00:04:08 cvg224-i-mz.
Appendix B Formatting the Compact Flash Memory Cards File and Directory Operations • Displaying the contents of the home directory • Entering the /config directory • Verifying that you are in the /config directory • Entering the home directory of a compact flash memory card in an external slot (slot0:/) • Verifying that you are in the slot0:/ directory • Returning to the home directory (flash:/) • Verifying that you are in the home directory Router# cd Router# pwd flash: Router# dir Directo
A P P E N D I X C Using the ROM Monitor This appendix describes the ROM monitor (also called the bootstrap program), which is the firmware that runs when you power on or restart the Cisco VG224 voice gateway. During normal operation, the ROM monitor helps to initialize the processor hardware and boot the operating system software. You can also use the ROM monitor to help you isolate or rule out hardware problems encountered when installing your router.
Appendix C Using the ROM Monitor Entering the ROM Monitor Mode To enter the ROM monitor mode, do the following: Configuring Command or Action Purpose Step 1 Router> reload Restarts the Cisco VG224. Step 2 Press the Break key during the first 60 seconds while Forces the router to stop booting and enter the ROM monitor mode. the system is starting up.
Appendix C Using the ROM Monitor Entering the ROM Monitor Mode reset set showcookie showfpga stack sync sysret tftpdnld unalias unset xmodem rommon 2 > Note system reset display the monitor variables display cookie information display the current selected FPGA produce a stack trace write monitor environment to NVRAM print out info from last system return tftp image download unset an alias unset a monitor variable x/ymodem image download You can abort any command by pressing the Break key at the console
Appendix C Using the ROM Monitor Entering the ROM Monitor Mode • You can override the default boothelper image setting by setting the BOOTLDR Monitor environment variable to point to another image. Any system image can be used for this purpose. • Options to the boot command are -x, load image but do not execute, and -v, verbose. • Use the Cisco IOS commands show version and show hardware to display the source of the currently running image.
Appendix C Using the ROM Monitor Entering the ROM Monitor Mode • reset or i—Reset and initialize the router, similar to power-on. • tftpdnld—Download an image using Trivial File Transfer Protocol (TFTP) from a remote server. • show rom-monitor—Shows version of read-only ROMMON, and if present, the upgrade version of ROMMON. It also shows the current version of ROMMON, which version will be selected for execution when the Cisco IOS software is booted again.
Appendix C Using the ROM Monitor Entering the ROM Monitor Mode To change the virtual configuration register from the ROM monitor, enter confreg by itself for menu mode, or enter the new value of the register in hexadecimal. • Note confreg [hexnum]—Change the virtual configuration register to the value specified. The value is always interpreted as hexadecimal.
Appendix C Using the ROM Monitor Entering the ROM Monitor Mode Router# show rom-monitor ReadOnly ROMMON version: System Bootstrap, Version 12.3(4)T, RELEASE SOFTWARE (fc1) TAC Support: http://www.cisco.com/tac Copyright (c) 2001 by cisco Systems, Inc.
Appendix C Using the ROM Monitor Entering the ROM Monitor Mode System Bootstrap, Version 12.3(4)T, RELEASE SOFTWARE (fc1) TAC Support: http:_//www.cisco.com/tac Copyright (c) 2002 by cisco Systems, Inc. cvg224 processor with 196608 Kbytes of main memory Main memory is configured to 64 bit mode with parity disabled Upgrade ROMMON initialized rommon 1 > Following output example a configuration that has been saved: Router# upgrade rom-monitor file tftp://223.225.254.254/ajayhn/cvg224_BM2.
Appendix C Using the ROM Monitor Entering the ROM Monitor Mode • -r—Copies the image to DRAM for launch • -x—Does not launch image on completion of download Using the tftpdnld Command The tftpdnld command downloads a Cisco IOS software image from a remote server into flash memory using TFTP. tftpdnld—Begins the TFTP copy command. The following variables are required: – IP_ADDRESS—IP address for the router you are using. – IP_SUBNET_MASK—Subnet mask for the router you are using.
Appendix C Using the ROM Monitor Entering the ROM Monitor Mode Cisco VG224 Voice Gateway Software Configuration Guide C-10 OL-5005-01
INDEX context A Analog FXS user interfaces with Metro Ethernet interface 1-5 C-5 D debugging commands dir B back-panel functions and options C-5 C-4 1-2 F boot ROM monitor C-3 figures Analog FXS User Interfaces with Metro Ethernet Interface 1-5 C Back-Panel Functions and Options Cisco IOS Identifying Cisco VG224 1-3, 1-4, 1-5 command fpga C-8 1-2 1-1 C-5 frame C-5 commands configuration register debugging C-5 G C-5 exec-timeout 3-2 global configuration command mode ROM monito
Index M U meminfo upgrade C-4 C-5, C-7 user EXEC command mode Using N network modules 1-4 2-2 V configuring Voice over IP 2-6 configuring 4-1 P privileged EXEC command mode 1-4 R recovering boot and system images reset C-8 C-5 ROM monitor diagnostics rommon C-5 C-5 S saving configuration changes show C-6 showfpga C-4 showmon C-5 stack 3-5 C-5 sysret C-5 T tables Common Command Modes tftpdnld 1-4 C-5 timeout, disabling 3-2 Cisco VG224 Voice Gateway Software Configurat