Guest

Cisco VG200 Series Gateways

Configuring with the Command-Line Interface

Table Of Contents

Configuring with the Command-Line Interface

Configuring the Hostname and Password

Verifying the Hostname and Password

Configuring Fast Ethernet Interfaces

Saving Configuration Changes


Configuring with the Command-Line Interface


This chapter describes how to use the Cisco IOS software command-line interface (CLI) to configure basic Cisco voice gateway (VG) functionality.

This chapter presents the following major topics:

Configuring the Hostname and Password

Configuring Fast Ethernet Interfaces

Saving Configuration Changes

Follow the procedures in this chapter to configure the Cisco VG manually or, if you wish, to change the configuration after you have run the setup command facility (see the "Using the setup Command Facility" section on page 2-1).

This 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. See the "Obtaining Documentation and Submitting a Service Request" section on page -vi.


Note If you skipped Chapter 2, "Using the setup Command Facility," and you have never configured a Cisco VG, return to Chapter 2, "Using the setup Command Facility" and read it now. The chapter contains important information that you need for configuring your Cisco VG.



Note Cisco VG202 and Cisco VG204 voice gateways are fixed voice gateways and do not support interface cards.


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 Cisco VGs and routers from each other. Setting an encrypted password allows you to prevent unauthorized configuration changes.


Note A hostname can be specified only when the VG has a DNS server available for hostname resolution.


Perform the following steps to configure the hostname and password.

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 Cisco VG 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 Cisco VG'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:


Step 1 Enter the show config command:

VG(config)# show config

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

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

Step 2 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 Cisco VG. 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 configuring the interfaces, make sure to do the following:

Connect a console to the Cisco VG.

Power on the Cisco VG by plugging in the external power supply.

Perform the following steps to configure Fast Ethernet interfaces.

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 Cisco IAD 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 VG:


VG-204(config-if)#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 prevent loss of the Cisco VG 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.