Lab 3: Basic Device Configuration
1. Objectives of this Lab
i. To use CLI mode to configure basic commands in network devices.
ii. To assign IP address in Router and PC.
iii. To check successful connectivity between PC and Router using Ping command.
iv. To access the network devices through a virtual terminal using telnet.
2. Topology and Addressing Table
Figure 1: Network Topology
Device Interface IP Address Subnet Mask Default Gateway
CoreRouter Fa0/0 192.168.1.1 255.255.255.0
PC1 Fa0 192.168.1.2 255.255.255.0 192.168.1.1
Table 1: Addressing Table
3. Activities
3.1. Task 1: Build the Network Topology
Add the devices as shown in the given network topology, then connect and rename them
accordingly.
3.2. Task 2: Configuring Network Devices (Router and Switch) using CLI
Step 1: Set the display name for the router/switch according to the topology.
Step 2: Go to Configuration Mode
Go to CLI tab of the router/switch (as shown in the figure below), then type no and press
enter.
Figure 2: Accessing CLI of Router
Note: Refer to the following table to understand configuration modes in router/switch
Configuration Modes in router/switch Command to go
Router > User executive mode Comes default in the console/terminal
Router # Privilege executive mode Router > enable
Router (config) # Global configuration mode Router # configure terminal
Router(config-if)# Interface level within configuration mode Router(config)# interface <name>
Router(config-line)# Line level within configuration mode Router(config)# line console/vty
Router(config-router)# Routing level within configuration mode Router(config)#router <routing protocol>
Once you got the user exec mode, use the following commands to get global configuration
mode.
Router > enable
Router # configure terminal
Router (config) #
Step 3: Configure the hostname of the router/switch.
Router (config) # hostname CoreRouter
CoreRouter (config) #
Step 4: Disable domain lookup.
CoreRouter (config) # no ip domain-lookup
Step 5: Configure the exec mode password for the network devices as ‘cisco’.
CoreRouter (config) # enable password cisco
Note: This command saves the password in plain text and can be seen in network device’s
running configuration. Network device’s running configuration can be viewed by entering
show running-config
Step 6: Configuring the console
CoreRouter (config) # line console 0
CoreRouter (config-line) # password conpass
CoreRouter (config-line) # login
CoreRouter (config-line) # exit
CoreRouter (config) #
Step 7: Configuring the virtual terminal
CoreRouter (config) # line vty 0 4
CoreRouter (config-line) # password vtypass
CoreRouter (config-line) # login
CoreRouter (config-line) # exit
Step 8: Configure the switch as similar to the router using the above commands (Step 2 –
Step 7).
3.3. Task 3: Configure Router Interface
Step 1: Configure the FastEthernet0/0 interface on CoreRouter.
CoreRouter (config) # interface fa0/0
CoreRouter (config-if) # ip address 192.168.1.1 255.255.255.0
CoreRouter (config-if) # description Connection to LAN
CoreRouter (config-if) # no shutdown
CoreRouter (config-if) # exit
Step 2: View the interface configuration of the router.
CoreRouter (config) # end
CoreRouter # show ip interface brief
Step 3: View the current running configuration of the router.
CoreRouter (config) # do show running-config
Step 4: Save the current configuration to the NVRAM.
CoreRouter # copy running-config startup-config
Or
CoreRouter # write
3.4. Task 4: Assigning IP address to PC.
Assign the IP address to the PC1 as specified in the addressing table (192.168.1.2).
3.5. Task 5: Test connectivity between the router and the PC using the Ping
command.
Click the PC1. In the Desktop tab, click Command Prompt.
PC > ping 192.168.1.1
Ping should be successful. Otherwise check the configurations for troubleshooting.
3.6. Task 6: Access the router from the PC using a virtual terminal.
PC > telnet 192.168.1.1
Use vtypass as the password.
Note: The password will not appear while typing. Just enter the password correctly and press
the enter key.
End