Cisco VG202/VG202XM and Cisco VG204/VG204XM Voice Gateways Software Configuration Guide
Configuring with the Command-Line Interface
Downloads: This chapterpdf (PDF - 217.0KB) The complete bookPDF (PDF - 2.74MB) | Feedback

Configuring Your Voice Gateway Using the CLI

Table Of Contents

Configuring Your Voice Gateway Using the CLI

Configuring the Hostname and Password

Verifying the Hostname and Password

Configuring Fast Ethernet Interfaces

Saving Configuration Changes


Configuring Your Voice Gateway Using the CLI


Follow the procedures in this chapter to manually configure the voice gateway or to change the configuration after you have run the setup command described in the "Configuring Your Voice Gateway Using the setup Command" section.

Configuring the Hostname and Password

Configuring Fast Ethernet Interfaces

Saving Configuration Changes


NoteThis chapter does not describe every configuration possible—only a small portion of the most commonly used configuration procedures. For advanced configuration topics, see the Cisco IOS configuration guide and command reference publications.

If you skipped Chapter 2 "Configuring Your Voice Gateway Using the setup Command," and you have never configured a voice gateway before, read it now. That chapter contains important information that you need for configuring your voice gateway.


Configuring the Hostname and Password

One of the first configuration tasks is to configure the hostname and set an encrypted password. Configuring a hostname allows you to distinguish multiple voice gateways and routers from each other. Setting an encrypted password allows you to prevent unauthorized configuration changes.

Restriction

You can only specify a hostname if the voice gateway has a DNS server available for hostname resolution.

SUMMARY STEPS

1. enable

2. configure terminal

3. hostname name

4. enable secret password

5. line configuration line

6. exec-timeout minutes seconds

7. exit

DETAILED STEPS

 
Command or Action
Purpose

Step 1 

enable

Example:

VG# enable

Enters privileged EXEC mode.

Step 2 

configure terminal

Example:

VG# configure terminal

Enters global configuration mode. You have entered global configuration mode when the prompt changes to VG(config)#.

Step 3 

hostname name

Example:

VG(config)# hostname VG204

Changes the name of the voice gateway to a meaningful name.

Step 4 

enable secret password

Example:

VG(config)# enable secret guessme

Enters an enable secret password. This password provides access to privileged EXEC mode. When you press enter at the user EXEC prompt (VG>), you must enter the enable secret password to gain access to configuration mode. Substitute your enable secret password for guessme.

Step 5 

line configuration line

Example:

VG(config)# line configuration 0

Enters line configuration mode to configure the console port. When you enter line configuration mode, the prompt changes to VG(config-line)#.

Step 6 

exec-timeout minutes seconds

Example:

VG(config-line)# exec-timeout 0 0

Prevents the voice gateway's EXEC facility from timing out if you do not type any information on the console screen for an extended period.

Step 7 

exit

Example:

VG(config-line)# exit

Exits to global configuration mode.

Verifying the Hostname and Password

To verify that you configured the correct hostname and password, follow these steps.

Procedure


Step 1 Enter the show config command:

VG# show config
 
   
Using 1888 out of 126968 bytes
!
version XX.X
.
.
.
!
hostname VG204
!
enable secret 5 $1$60L4$X2JYOwoDc0.kqa1loO/w8/
.
.
.
 
   

Step 2 Check the hostname and encrypted password displayed near the top of the command output.

Step 3 Exit global configuration mode and attempt to reenter it, using the new enable password:

VG# exit
.
.
.
VG con0 is now available
Press RETURN to get started.
VG> enable
Password: guessme
VG#


Tip If you are having trouble, ensure the following:

Caps lock is off.

You entered the correct passwords. Passwords are case sensitive.


Configuring Fast Ethernet Interfaces

To configure a Fast Ethernet interface, use the configuration software provided with your voice gateway. Otherwise, for greatest power and flexibility, use configuration mode (manual configuration).

This section describes basic Fast Ethernet interface configuration, including enabling the interface and specifying IP routing. Depending on your own requirements and the protocols you plan to route, you might also need to enter other configuration commands.

Before You Begin

Connect a console to the voice gateway.

Power on the voice gateway by plugging in the external power supply.

SUMMARY STEPS

1. enable

2. configure terminal

3. ip routing

4. interface type number

5. ip address ip address subnet mask

6. exit

7. Ctrl-z

DETAILED STEPS

 
Command or Action
Purpose

Step 1 

enable

Example:

VG# enable

Enters privileged EXEC mode.

Step 2 

configure terminal

Example:

VG# configure terminal

Enters global configuration mode.

Step 3 

ip routing

Example:

VG(config)# ip routing

Enables routing protocols as required for your global configuration. This example uses IP routing.

Step 4 

interface type [number]

Example:

VG(config)# interface fastethernet 0/0

Enters interface configuration mode. You have entered interface configuration mode when the prompt changes to VG(config-if)#.

Step 5 

ip address ip address subnet mask

Example:

VG(config-if)# ip address 172.16.74.3 255.255.255.0

Assigns an IP address and subnet mask to the interface.

Step 6 

exit

Example:

VG(config-if)# exit

Exits to global configuration mode.

Repeat Step 4 through Step 6 if your voice gateway has more than one interface to configure.

Step 7 

Ctrl-z

Example:

VG# Ctrl-z

Returns to enable mode when you finish configuring interfaces.

Example

The following example shows how to configure the Fast Ethernet interface on the voice gateway:

VG-204(config)#int fa0/0
VG-204(config-if)#ip add
VG-204(config-if)#ip address 9.13.38.149 255.255.255.0
VG-204(config-if)#do sh runn int fa0/0
Building configuration...
 
   
Current configuration : 96 bytes
!
interface FastEthernet0/0
 ip address 9.13.38.149 255.255.255.0
 speed auto
 half-duplex
end

Saving Configuration Changes

Perform the following steps to save the voice gateway configuration.

SUMMARY STEPS

1. enable

2. copy running-config startup-config

3. Ctrl-z

DETAILED STEPS

 
Command or Action
Purpose

Step 1 

enable

Example:

VG# enable

Enters privileged EXEC mode.

Step 2 

copy running-config startup-config

Example:

VG# copy running-config startup-config

Saves the configuration changes to NVRAM so that they are not lost during resets, power cycles, or power outages.

Step 3 

Ctrl-z

Example:

VG# Ctrl-z

Returns to enable mode when you finish configuring the interfaces.