COMPUTER NETWORK AND SECURITY

LAB 5: BASIC ROUTER CONFIGURATION  AND STATIC ROUTING

PLATFORM: PACKET TRACER

 BASIC ROUTER CONFIGURATION

 

 

Router user interface modes

Router> User EXEC

Router> enable

Password:

 

Router# Privileged EXEC

Router# disable

 

Router> User EXEC

 

Router Modes

 

Router> User EXEC mode

 

Router# Privileged EXEC mode

 

Router(config)# Global configuration mode

 

Router(config-...)# Specific configuration mode, for example:

Router(config-if)# Interface configuration mode

 

Router(config-subif)# Subinterface configuration mode

 

Router(config-line)# Line configuration mode

 

Configuring Global Parameters

To configure the global parameters for your router, follow these steps.

DETAILED STEPS

 

 

Command

Purpose

Step 1

configure terminal

Example:

Router> enable

Router# configure terminal

Enters global configuration mode, when using the console port.

Step 2

hostname name

Example:

Router(config)# hostname Router

Specifies the name for the router.

Step 3

enable secret password

Example:

Router(config)# enable secret cr1ny5ho

 

Specifies an encrypted password to prevent unauthorized access to the router.

Show commands

  • show version: Displays version information

  •  show running-config: Displays current configuration (RAM)

  •  show startup-config: Displays startup configuration (NVRAM)

  •  show flash: Shows IOS file and flash space

  •  show interfaces: View the status of interfaces

  •  show interfaces e0: for Ethernet 0

  •  show arp: Displays ARP table of router

  •  show ip route: Displays IP routing table

  •  show protocols: Displays the interface specific status of any configured protocols

Configuring Gigabit Ethernet 

1. configure terminal

2. interface gigabitethernet slot/port

3. ip address ip-address mask

4. no shutdown

5. exit

DETAILED STEPS

 

 

Command

Purpose

Step 1

configure terminal

Example:

Router# configure terminal

Enters global configuration mode.

Step 2

interface gigabitethernet slot/port

Example:

Router(config)# interface gigabitethernet 0/8

 

Enters the configuration mode for a Gigabit Ethernet interface on the router.

 

Step 3

ip address ip-address mask

Example:

Router(config-if)# ip address 192.168.12.2 255.255.255.0

 

Sets the IP address and subnet mask for the specified GE interface.

Step 4

no shutdown

Example:

Router(config-if)# no shutdown

 

Enables the GE interface, changing its state from administratively down to administratively up.

Step 5

exit

Example:

Router(config-if)# exit

 

Exits configuration mode for the GE interface and returns to global configuration mode.

ACTIVITIES

 

  1. Configure above Router as shown in figure .
  2. Assign IP and Subnet Mask to each PCs.
  3. What is the color of the bubble on wire before and after the configuration.
  4. Ping from PC0 TO PC1 and write the observation.

 

  1. Configure the Router and PCs as shown above. Assign appropriate IP to PCs yourself.
  2. How many networks are there in the above configuration.
  3. Ping from all PCs to others and write the observations .
  4. Assign Gateway to each PCs and perform the ping operation again. Write the observation.

 

  1. How many networks are there in the above diagram.
  2. Configure above network and Ping from PC0 to PC1. Write the output.