Introduction  
This Interface Lab gives you the opportunity to issue Cisco IOS® commands in every user level and command mode on a Cisco router.

You are working on the Cisco Interactive Mentor simulation environment (CIM-SE) console (displayed in your browser).

 

Step 1 Display the available commands in user EXEC mode.
When you open a console session in a router, you are automatically in user EXEC command mode. The EXEC commands available at the user level are a subset of those available at the privileged level. In general, the user EXEC commands allow you to connect to remote devices, change terminal settings on a temporary basis, perform basic tests, and list system information.

You'll notice that the router displays a Router> prompt. The greater-than sign (>) in the prompt indicates that the router is at the user EXEC level. The user EXEC level does not contain any commands that might control (for example, reload or configure) the operation of the router. To list the commands available at the user EXEC level, type ? at the Router> prompt. (This feature is referred to as context-sensitive help.)

Task Command 
1 List the available user EXEC commands. ?

The CIM-SE supports a subset of the commands found on a real router. This first Interface Lab is an enhanced CIM-SE, in which context-sensitive help displays a larger command subset than normal. However, only the commands shown in the CIM-SE tutorial title bar are supported. In all subsequent labs, context-sensitive help will show only those commands that are supported in that particular simulation environment.

 

Step 2 Enter privileged EXEC mode and display the available commands.
Critical commands (for example, configuration and management) require that the user be logged into privileged EXEC level. To change to the privileged EXEC level, type enable at the Router> prompt. The router prompt changes to Router#. The privileged EXEC mode prompt consists of the host name of the device followed by the pound sign (#). Then use the help system to display the commands available in privileged EXEC mode.

Privileged EXEC level can be password protected to allow only authorized users the ability to configure or manage the router.

This router is unconfigured, so there is no password required to enter privileged EXEC mode. It is possible to have an enable password, which will require a user to enter the correct password before accessing privileged EXEC mode using the enable command.

Remember that a real router will display many more commands than the CIM-SE.

To access and list the privileged EXEC commands, complete the following tasks on Router1:

Task Commands
1 Enter the privileged EXEC mode.  enable
2 List privileged EXEC commands. ?

 

Step 3 Enter global configuration mode and list the available commands.
Global configuration commands apply to features that affect the system as a whole. Use the configure privileged EXEC command to enter global configuration mode. When you enter this command, the system EXEC prompts you for the source of the configuration commands:

Configuring from terminal, memory, or network [terminal]?

You can then specify either the terminal, nonvolatile random-access memory (NVRAM), or a file stored on a network server as the source of configuration commands. Configuring from the terminal is the system default. You can specify the source of the commands when first entering the command, by entering configure terminal, configure memory, or configure network. For now, press Return to select the default, terminal configuration.

This CIM uses the configure terminal form of this command exclusively, so from now on we will specify that syntax.

The configure memory command loads the startup configuration from NVRAM as the running configuration. This is exactly the same as using the copy startup-config running-config command, which is covered later in this course.

The configure network command loads a configuration from a network source as the running configuration. The connectivity issues are the same as those involved in downloading a system image from a Trivial File Transfer Protocol (TFTP) server, which is covered in a later lab in this course.

When the global configuration mode is entered, the router prompt changes to Router(config)#. Then use the help system to display the commands available in global configuration mode.

To access and list the global configuration commands on the router, complete the following tasks:

Task Command 
1 At the terminal, from the privileged EXEC mode, enter global configuration mode. configure 

<CR>

2 List the global configuration commands. ?

 

Step 4 Enter interface configuration mode for the Serial 0 interface and list the available commands.
From global configuration mode, you can access many other command modes, the following being the most commonly accessed:

Interface configuration commands modify the operation of an interface such as an Ethernet, Token Ring, or serial port. In order to configure a specific interface, you need to enter interface configuration mode, from global configuration mode, by entering the interface interface_type port_number command. Enter interface configuration mode on the serial 0 interface by entering interface serial 0. The prompt Router(config-if)# indicates that you are in interface configuration mode. Then use the help system to display the commands available in interface configuration mode.

To exit interface configuration mode and return to global configuration mode, enter the exit command.

To access and list the interface configuration commands, complete the following tasks:

Task Command
1 From global configuration mode, enter interface configuration mode for the Serial 0 interface. interface serial 0
2 List the interface configuration commands. ?
3 From interface configuration mode, return to global configuration mode. exit

 

Step 5 Configure Frame Relay encapsulation and explore subinterface configuration mode.
You can configure multiple virtual interfaces, called subinterfaces, on a single physical interface. This feature is supported on serial interfaces with Frame Relay encapsulation. You can create and configure subinterfaces from interface configuration mode.

Subinterfaces appear to be distinct physical interfaces to the various protocols. For example, Frame Relay networks provide multiple point-to-point links called permanent virtual circuits (PVCs). PVCs can be grouped under separate subinterfaces that are in turn configured on a single physical interface.

First, enter interface configuration mode on the serial 1 interface. Then configure Frame Relay encapsulation on this interface, by entering the encapsulation frame-relay command. Frame Relay encapsulation is used as an example in this lab; don't worry about the details of Frame Realy at this point. Then configure Subinterface 1 on the Serial 1 interface, by entering the interface command. Use serial as the interface type, and separate the interface and subinterface numbers with a period: 1.1. The Router(config-subif)# prompt indicates that you are in subinterface configuration mode. Then use the help system to display the commands available in subinterface configuration mode.

To exit subinterface configuration mode and return to interface configuration mode, enter the exit command.

To access and list the subinterface configuration commands, complete the following tasks:

Task Command
1 From global configuration mode, enter interface configuration mode on Interface Serial 1. interface serial 1
2 From interface configuration mode, configure Frame Relay encapsulation and configure a virtual interface. encapsulation frame-relay

interface serial 1.1

3 List the subinterface configuration commands. ?
4 From interface configuration mode, return to global configuration mode. exit

 

Step 6 Explore router configuration mode.
Router configuration mode is accessed from global configuration mode by configuring a routing protocol with the router routing_protocol command. When a routing protocol is configured, the router is in router configuration mode.

Configure Routing Information Protocol (RIP) on the router by entering the router rip command in global configuration mode. The Router(config-router)# prompt indicates that you are in router configuration mode. Then use the help system to display the available commands in router configuration mode.

To exit router configuration mode and return to global configuration mode, enter the exit command.

To access and list the router configuration commands, complete the following tasks:

Task Command
1 From global configuration mode, enter router configuration mode. router ?

router rip

2 List the router configuration commands.  ?
3 From router configuration mode, return to global configuration mode. exit

 

Step 7 Explore line configuration mode.
To modify the operation of a terminal line (for example, the console line this Telnet session is running over), you must be in line configuration mode. Enter line configuration mode, from global configuration mode, by entering the line line_type line_number ending_line_number command. The four types of lines are aux, con, tty, and vty.

Aux lines are lines connected to the auxiliary port of the router. The auxiliary port can be used for modem and asynchronous connections.

Con lines are lines connected to the console port of the router. This simulated Telnet session is "running" over a console line.

Tty lines are standard asynchronous lines.

Vty lines are virtual terminal lines used for remote console access. A virtual terminal line is not associated with either the auxiliary or console port.

Configure a virtual terminal line. Use a starting-line number of 0 and an ending-line number of 4. The Router(config-line)#  prompt indicates line configuration mode.

Display the commands available in line configuration mode. These commands are generally used to connect to remote routers or access servers, change terminal parameter settings either on a line-by-line basis or for a range of line, and set up the auxiliary port modem configuration to support dial-on-demand routing (DDR).

To exit line configuration mode and return to privileged EXEC mode, enter the end command, or press Ctrl-Z. The end command returns you to privileged EXEC mode from any other mode or level in the Cisco IOS Software. Then exit the EXEC completely by entering the exit command.

To access and list the console port, auxiliary port, physical terminal (if installed), and virtual terminal line configuration commands, complete the following tasks:

Task Command
1 From global configuration mode, configure a range of five vty lines from 0 to 4. line vty 0 4
2 List the line configuration commands. ?
3 From line configuration mode, return to privileged EXEC mode. end or Ctrl-Z
4 From privileged EXEC mode, exit the EXEC completely. exit

 

Step 8 You have now completed the lab.
You are finished with the Interface Lab. Close the CIM-SE window and continue with the next section of this CIM.

 

All contents are Copyright © 2000-2002 Cisco Systems, Inc. All rights reserved. Important Notices and Privacy Statement.