Sunteți pe pagina 1din 162

HUB BASED NETWORK CONFIGURATION

Definition

A common connection point for devices in a network. Hubs are commonly used to
connect segments of a LAN. A hub contains multiple ports. When a packet arrives at one
port, it is copied to the other ports so that all segments of the LAN can see all packets.

Block Diagram

Device Configuration

DEVICE INTERFACE IP ADDRESS SUBNET MASK


PC1 Fast Ethernet 192.168.1.1 255.255.255.0
PC2 Fast Ethernet 192.168.1.2 255.255.255.0
PC3 Fast Ethernet 192.168.1.3 255.255.255.0
PC4 Fast Ethernet 192.168.1.4 255.255.255.0
PC5 Fast Ethernet 192.168.1.5 255.255.255.0
PC6 Fast Ethernet 192.168.1.6 255.255.255.0
Simulation of Hub Based Network

1. PC1 Sending Data to the PC5.

2. Hub is a Broadcast Device (One Sender All Receiver )

Hub Support only Half Duplex Communication.

Half-duplex data transmission means that data can be transmitted in both directions on
a signal carrier, but not at the same time.
Collision Occur
PC1 and PC5 Sending Data Simultaneously.

The Collision has been Occur.


SWITCH BASED NETWORK CONFIGURATION

Definition
A network switch is a computer networking device that is used to connect many
devices together on a computer network. A switch is considered more advanced than a hub
because a switch will only send a message to the device that needs or requests it, rather than
broadcasting the same message out of each of its ports

Block Diagram

Device Configuration

DEVICE INTERFACE IP ADDRESS SUBNET MASK


PC1 Fast Ethernet 192.168.1.1 255.255.255.0
PC2 Fast Ethernet 192.168.1.3 255.255.255.0
PC9 Fast Ethernet 192.168.1.4 255.255.255.0
PC3 Fast Ethernet 192.168.1.5 255.255.255.0
PC5 Fast Ethernet 192.168.1.6 255.255.255.0
PC6 Fast Ethernet 192.168.1.7 255.255.255.0
PC7 Fast Ethernet 192.168.1.8 255.255.255.0
PC8 Fast Ethernet 192.168.1.9 255.255.255.0
Simulation of Switch Based Network

3. PC1 Sending Data to the PC5.

4. Switch send data using Unicast Transmission


(One Sender One Receiver)
Switch Support Full Duplex Communication.

The transmission of data in two directions simultaneously. For example, a telephone


is a full-duplex device because both parties can talk at once.

No Collision

PC1 and PC5 Sending Data Simultaneously. No Collision Occur.


ROUTER BASED NETWORK

Definition
A router is a networking device that forwards data from one network to another.
And connect two different Networks.

Block Diagram

Device Configuration

DEVICE INTERFACE IP ADDRESS SUBNET MASK GATEWAY


DNS Fast Ethernet 11.11.11.11 255.0.0.0 11.1.1.1
Google
Fast Ethernet 11.12.13.14 255.0.0.0 11.1.1.1
Server
Yahoo
Fast Ethernet 150.151.152.153 255.255.0.0 150.151.1.1
Server
Client Fast Ethernet 150.152.1.10 255.255.0.0 150.151.1.1
Fast Ethernet0/0 11.1.1.1 255.0.0.0 N/A
Router
Fast Ethernet1/0 150.151.1.1 255.255.0.0 N/A

Router Configuration
Router>enable
Router# configure terminal
Device Name and Particular interface Configuration
Router(config)#hostname Router
Router(config)#interface FastEthernet0/0
Router(config-if)#no shutdown
Router(config-if)#ip address 11.1.1.1 255.0.0.0
Router(config-if)#exit

Router(config)#interface FastEthernet1/0
Router(config-if)#no shutdown
Router(config-if)#ip address 150.151.1.1 255.255.0.0
Router(config-if)#exit

Save the running Configuration file to NVRAM

Router#copy running-config startup-config


Destination filename [startup-config]?
Building configuration...
[OK]
Router#

DNS Server Configuration


HTTP Server Configuration

Client Machine Configuration


Client Access to the Different Network such as Google and Yahoo
DHCP CONFIGURATION

Definition
Dynamic host configuration protocol is used to Automatically assign the IP address to
the Client machine when the user log on.

Block Diagram

Device Configuration

IP SUBNET
DEVICE INTERFACE IP ADDRESS GATEWAY
ALLOCATION MASK
DHCP
Fast Ethernet Static 192.168.100.100 255.255.255.0 N/A
Server
Assign Assign Assign
PC1 Fast Ethernet DHCP
Dynamically Dynamically Dynamically
Assign Assign Assign
PC2 Fast Ethernet DHCP
Dynamically Dynamically Dynamically
Assign Assign Assign
PC3 Fast Ethernet DHCP
Dynamically Dynamically Dynamically
Assign Assign Assign
PC4 Fast Ethernet DHCP
Dynamically Dynamically Dynamically
DHCP Server Configuration

Assigning IP Address to the DHCP Server

Configure IP Address Range of Dynamic Allocation


Client Configuration
Client Receive IP Address Using DHCP Server

Advantages

There is no need to manually configure each client with an IP address.


You don't need to keep a record of the IP addresses that you have assigned.
You can automatically assign a new IP address if you move a client to a different
subnet.
You can release the IP address of a computer that is offline and reassign the
address to another computer.
Address duplication is eliminated as DHCP automatically tracks IP address
assignments.
DNS CONFIGURATION

Definition

Domain Name Service Protocol (DNS) is used to resolve Internet names to IP


addresses.

Block Diagram

Device Configuration

DEVICE INTERFACE IP ADDRESS SUBNET MASK DNS


DNS Server Fast Ethernet 10.10.10.10 255.0.0.0 N/A
Google Server Fast Ethernet 10.20.20.20 255.0.0.0 N/A
Yahoo Server Fast Ethernet 10.30.30.30 255.0.0.0 N/A
Facebook Fast Ethernet 10.40.40.40 255.0.0.0 N/A
Cisco Fast Ethernet 10.50.50.50 255.0.0.0 N/A
Pioneer Fast Ethernet 10.60.60.60 255.0.0.0 N/A
SRKV Fast Ethernet 10.70.70.70 255.0.0.0 N/A
PC1 Fast Ethernet 10.200.200.1 255.0.0.0 10.10.10.10
PC2 Fast Ethernet 10.200.200.2 255.0.0.0 10.10.10.10
PC3 Fast Ethernet 10.200.200.3 255.0.0.0 10.10.10.10
PC4 Fast Ethernet 10.200.200.4 255.0.0.0 10.10.10.10

DNS Server Configuration

Assigning IP Address to the DNS Server


Adding Web Address to the DNS Server

Entire Web Address of DNS Server


Enabling HTTP Service

Client Configuration
Client Access to the Webpage using Domain Name

Client Access to the Webpage using IP Address


Advantages

DNS stands for Domain Name Server and its primary duty is to resolve host names to
IP Address....host name mean the name of the system and ip address given in the TCP/IP
properties. on large network either LAN or WAN when point to point communication is
required IP address is the basic requirement .therefore DNS server keep the record of all the
computers in the network their Host names and their IP address in its database.

DNS Domain Name Hierarchy

Some DNS Top-level Domain Names

DNS Domain Name Type of Organization


com Commercial organizations
edu Educational institutions
org Non-profit organizations
net Networks (the backbone of the Internet)
gov Non-military government organizations
mil Military government organizations
arpa Reverse DNS
xx Two-letter country code (i.e. us, au, ca, fr)
TELNET CONFIGURATION

Definition

Telnet, a terminal emulation protocol, is used to provide remote access to servers and
networking devices.

Block Diagram

Device Configuration

DEVICE INTERFACE IP ADDRESS SUBNET MASK GATEWAY


ISP Fast Ethernet0/0 200.200.200.200 255.255.255.0 N/A
PC1 Console Port Not Require N/A N/A
PC2 Fast Ethernet 200.200.200.1 255.255.255.0 200.200.200.200
PC3 Fast Ethernet 200.200.200.2 255.255.255.0 200.200.200.200
Local configuration using Console Port

Go to start Programs Accessories Communications HyperTerminal

Before Configuring Telnet to the Device

Remote Machine PC2 Access the ISP Device


ISP Configuration

Router>enable
Router# configure terminal

Changing Host Name

Router(config)#hostname ISP

Configuring Fast Ethernet Port

ISP(config)#interface FastEthernet0/0
ISP(config-if)#no shutdown
ISP(config-if)#ip address 200.200.200.200 255.255.255.0
ISP(config-if)#exit

Assigning Consol port Password

ISP(config)#line console 0
ISP(config-line)#password cisco
ISP(config-line)#login
ISP(config-line)#exit

Configuring Telnet Access

ISP(config)#line vty ?
<0-15> First Line number

ISP(config)#line vty 0 4
ISP(config-line)#password cisco
ISP(config-line)#login
ISP(config-line)#exit
Banner MOTD Multi Line Command

ISP(config)#banner motd ^
Enter TEXT message. End with the character '^'.
------------------------------------
********************************
WELCOME TO ISP ROUTER
********************************
------------------------------------
^
Assigning Privilege Mode password

ISP(config)#enable secret class


ISP(config)#

After Configuring Telnet to the Device

Remote Machine PC2 Access the ISP Device


Advantages

One of its advantages is that it allows users to log on to a remote system and run
programs on that system just as if it were an actual connected mainframe terminal.

Telnet is a type of software that makes it possible to connect remotely to another


computer or Network Device. Having access to a software program of this nature can assist
computer repair technicians and network administrators substantially. Telnet is a text-based
program that allows you to connect to other computers, with permission.
Save Time
Easy to Use

Telnet access from Windows

Access using the default Telnet client


Windows has, by default, a telnet client accessible from a Command Prompt
window invoking:

c:\> telnet 192.168.0.90


MAIL SERVER CONFIGURATION IN SAME NETWOR

Block Diagram

Device Configuration

DEVICE INTERFACE IP ADDRESS SUBNET MASK GATEWAY DNS


PC1 Fast Ethernet 192.168.1.1 255.255.255.0 192.168.1.150 192.168.1.100
PC2 Fast Ethernet 192.168.1.2 255.255.255.0 192.168.1.150 192.168.1.100
Yahoo Fast Ethernet 192.168.1.150 255.255.255.0 NA NA
DNS Fast Ethernet 192.168.1.100 255.255.255.0 NA NA
Google Fast Ethernet 192.168.1.200 255.255.255.0 NA NA
PC3 Fast Ethernet 192.168.1.10 255.255.255.0 192.168.1.200 192.168.1.100
PC2 Fast Ethernet 192.168.1.20 255.255.255.0 192.168.1.200 192.168.1.100
Configuration Procedure

Step 1

YAHOO Server Configuration

Go to configuration tab Select EMAIL Option Once you restart SMTP


And POP3 Service

Next Add Domain Name as ymail.com and Add user such as


rkm and password is rkm
rmvand password is rmv
Step 2

GOOGLE Server Configuration

Go to configuration tab Select EMAIL Option Once you restart SMTP


And POP3 Service

Next Add Domain Name as gmail.com and Add user such as


rmk and password is a rkm
rmn and password is rmn
Step 3

DNS Server Configuration

Go to configuration tab Select DNS Option Once you restart DNS Service

Next
Add Domain Name as ymail.com and ip address is 192.168.1.150

Add Domain Name as gmail.com and ip address is 192.168.1.200


Step 4

PC1 Mail Server Configuration

Go to Desktop Tab and Select Email option


Step 5

PC3 Mail Server Configuration

Go to Desktop Tab and Select Email option


FTP AND BACKUP SERVER CONFIGURATION

Block Diagram

Device Configuration

DEVICE INTERFACE IP ADDRESS SUBNET MASK GATEWAY


R1 Fast Ethernet 192.168.1.10 255.255.255.0 NA
FTP Client Fast Ethernet 192.168.1.1 255.255.255.0 NA
FTP Server Fast Ethernet 192.168.1.100 255.255.255.0 NA

R1 Configuration
Router>enable
Router#configure terminal

Router Host Name and Interface Configuration


Router(config)#hostname MCA
MCA(config)#interface fastEthernet 0/0
MCA(config-if)#no shutdown
MCA(config-if)#ip address 192.168.1.10 255.255.255.0
MCA(config-if)#exit
Router Console Port Password Configuration

MCA(config)#line console 0
MCA(config-line)#password 12345
MCA(config-line)#login
MCA(config-line)#exit

Router Password Encryption

MCA(config)#service password-encryption
MCA(config)#

Router FTP User Configuration

MCA(config)#ip ftp username admin


MCA(config)#ip ftp password admin
MCA(config)#exit
MCA#

Copying file to FTP or Backup Server

MCA#copy running-config ftp:

Address or name of remote host []? 192.168.1.100


Destination filename [MCA-confg]? RKMSTUDENT HOME

Writing running-config...
[OK - 691 bytes]

691 bytes copied in 0.16 secs (4000 bytes/sec)

MCA#
View the Router Running Configuration files

MCA#show running-config

Building configuration...

Current configuration : 691 bytes


!
version 12.2
no service timestamps log datetime msec
no service timestamps debug datetime msec
service password-encryption
!
hostname MCA
!
!
ip ftp username admin
ip ftp password admin
!
!
interface FastEthernet0/0
ip address 192.168.1.10 255.255.255.0
duplex auto
speed auto
!
!
line con 0
password 7 08701E1D5D4C
login

MCA#

View the Router Permanent Configuration files

MCA#show startup-config
startup-config is not present
MCA#
Restart the Router
I forget to store file in Router startup configuration.
But I have taken a backup to the FTP or Backup Server.
Its possible to import Backup Files

MCA#reload

Proceed with reload? [confirm]

Router#show running-config
Building configuration...

Current configuration : 651 bytes


!
version 12.2
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname Router
!
!
ip ftp username admin
ip ftp password admin
!
!
interface FastEthernet0/0
no ip address
duplex auto
speed auto
shutdown
!
!
line con 0
line vty 0 4
login
!
!
End

Router#show startup-config
startup-config is not present
Router#
Receiving back up in FTP Server

Router#
Router#config terminal
Router(config)#interface fastEthernet 0/0
Router(config-if)#no shutdown
Router(config-if)#ip address 192.168.1.10 255.255.255.0
Router(config-if)#exit
Router(config)#exit
Router#

Router#copy ftp: running-config

Address or name of remote host []? 192.168.1.100


Source filename []? RKMSTUDENT HOME
Destination filename [running-config]?
Accessing ftp://192.168.1.100/RKMSTUDENT HOME...
[OK - 691 bytes]
691 bytes copied in 0.04 secs (17275 bytes/sec)

MCA#

MCA#show running-config
Building configuration...

Current configuration : 691 bytes


!
version 12.2
no service timestamps log datetime msec
no service timestamps debug datetime msec
service password-encryption
!
hostname MCA
!
!
ip ftp username admin
ip ftp password admin
interface FastEthernet0/0
ip address 192.168.1.10 255.255.255.0
duplex auto
speed auto
!
!
line con 0
password 7 08701E1D5D4C
login
!
!
End

Store the file in startup-configuration (NVRAM)

MCA#copy running-config startup-config


Destination filename [startup-config]?
Building configuration...
[OK]
MCA#

FTP SERVER Configuration

Adding New FTP User


New User Added

New File Stored in FTP Server


FTP Client Access

Log in to the FTP Server

List the FTP Files


ROUTER BASIC CONFIGURATION

Block Diagram

Configuration

Router> // User Exce Mode

Router>enable // Chnange to Privillage Exec Mode

Router# // Privillage Exec Mode

Router#configure terminal // Change to Global Configuration Mode

Router(config)# // Global Configuration Mode

Router(config)#interface fastEthernet 0/0 // Change to Other Configuration Mode

Router(config-if)# // Other Configuration Mode(Interface)

Router(config-line)# // Other Configuration Mode(Console)

Router(config-router)# // Other Configuration Mode(RIP)


Changing Host Name
Router(config)#hostname DCE2014
DCE2014(config)#

Assigning Consol port Password


DCE2014(config)#line console 0
DCE2014(config-line)#password cisco
DCE2014(config-line)#login
DCE2014(config-line)#exit

Assigning VTY Password

DCE2014(config)#line vty 0 4
DCE2014(config-line)#password dce123
DCE2014(config-line)#login
DCE2014(config-line)#exit

Assigning Privilege Mode password

DCE2014(config)#enable secret class

Encrypt All password

DCE2014(config)#service password-encryption

Banner MOTD Multi Line Command


DCE2014(config)#banner motd ^
Enter TEXT message. End with the character '^'.
**********************
-------------------------
D C E 2014
------------------------
**********************
^
Banner MOTD single Line Command

DCE2014(config)#banner motd # WELCOME #


DCE2014(config)#

Configuring Fast Ethernet Port

DCE2014(config)#interface fastEthernet 0/0


DCE2014(config-if)#no shutdown
DCE2014(config-if)#ip address 192.168.1.100 255.255.255.0
DCE2014(config-if)#exit

Configuring Serial Port

DCE2014(config)#interface serial 2/0


DCE2014(config-if)#no shutdown
DCE2014(config-if)#clock rate 9600
DCE2014(config-if)#ip address 100.10.10.10 255.0.0.0
DCE2014(config-if)#

Save the running configuration into NVRAM

DCE2014#copy running-config startup-config


Destination filename [startup-config]?
Building configuration...
[OK]
DCE2014#
CONNECTING TWO DIFFERENT NETWORK USING ROUTER

Block Diagram

Device Configuration

DEVICE INTERFACE IP ADDRESS NETMASK GATEWAY


PC4 Fast Ethernet 192.168.10.1 255.255.255.0 192.168.10.10
PC1 Fast Ethernet 192.168.10.2 255.255.255.0 192.168.10.10
PC2 Fast Ethernet 192.168.20.1 255.255.255.0 192.165.20.10
PC3 Fast Ethernet 192.168.20.2 255.255.255.0 192.168.20.10

Fast Ethernet0/0 192.168.10.10 255.255.255.0 N/A


R1
Fast Ethernet1/0 192.168.20.10 255.255.255.0 N/A

R1 Configuration

Router>enable
Router# configure terminal
Device Name and Particular interface Configuration

Router(config)#hostname R1

R1(config)#interface fastEthernet 1/0


R1(config-if)#no shutdown
R1(config-if)#ip address 192.168.20.10 255.255.255.0
R1(config-if)#exit

R1(config)#interface fastEthernet 0/0


R1(config-if)#no shutdown
R1(config-if)#ip address 192.168.10.10 255.255.255.0
R1(config-if)#exit
R1(config)#
CONNECTING TWO DIFFERENT SUB NETWORK USING ROUTER

Block Diagram

Device Configuration

DEVICE INTERFACE IP ADDRESS NET MASK GATEWAY


PC4 Fast Ethernet 192.168.10.1 255.255.255.128 192.168.10.2
PC1 Fast Ethernet 192.168.10.3 255.255.255.128 192.168.10.2
PC2 Fast Ethernet 192.168.10.129 255.255.255.128 192.168.10.130
PC3 Fast Ethernet 192.168.10.131 255.255.255.128 192.168.10.130

R1 Fast Ethernet 0/0 192.168.10.2 255.255.255.128 N/A


Fast Ethernet 1/0 192.168.10.130 255.255.255.128 N/A

R1 Configuration
Router>enable
Router# configure terminal
Device Name and Particular interface Configuration

Router(config)#hostname R1

R1(config)#interface fastEthernet 1/0


R1(config-if)#no shutdown
R1(config-if)#ip address 192.168.10.130 255.255.255.128
R1(config-if)#exit

R1(config)#interface fastEthernet 0/0


R1(config-if)#no shutdown
R1(config-if)#ip address 192.168.10.2 255.255.255.128
R1(config-if)#exit
R1(config)#
CONNECTING DIFFERENT SUB NETWORK USING ROUTER
/26 NETWORK PREFIX OF CLASS C IP ADDRESS

Block Diagram

Device Configuration

DEVICE INTERFACE IP ADDRESS NET MASK GATEWAY


PC0 Fast Ethernet 192.168.10.1 255.255.255.192 192.168.10.3
PC1 Fast Ethernet 192.168.10.2 255.255.255.192 192.168.10.3
PC2 Fast Ethernet 192.168.10.65 255.255.255.192 192.168.10.66
PC3 Fast Ethernet 192.168.10.7 255.255.255.192 192.168.10.66

PC4 Fast Ethernet 192.168.10.129 255.255.255.192 192.168.10.130


PC5 Fast Ethernet 192.168.10.131 255.255.255.192 192.168.10.130

R1 Serial 3/0 192.168.10.194 255.255.255.192 N/A

Fast Ethernet 0/0 192.168.10.130 255.255.255.192 N/A


Serial 2/0 192.168.10.193 255.255.255.192 N/A
R2 Fast Ethernet 0/0 192.168.10.3 255.255.255.192 N/A
Fast Ethernet 1/0 192.168.10.66 255.255.255.192 N/A
R1 Configuration
Router>enable
Router# configure terminal

Device Name and Particular interface Configuration


Router(config)#hostname R1

R1(config)#interface fastEthernet 0/0


R1(config-if)#no shutdown
R1(config-if)#ip address 192.168.10.130 255.255.255.192
R1(config-if)#exit

R1(config)#interface serial 3/0


R1(config-if)#no shutdown
R1(config-if)#ip address 192.168.10.194 255.255.255.192
R1(config-if)#exit
R1#configure terminal
R1(config)#router eigrp 1
R1(config-router)#network 192.168.10.128 0.0.0.63
R1(config-router)#network 192.168.10.192 0.0.0.63
R1(config-router)#exit
R1(config)#

R2 Configuration
Router>enable
Router# configure terminal

Device Name and Particular interface Configuration


Router(config)#hostname R2
R2(config)#interface fastEthernet 1/0
R2(config-if)#no shutdown
R2(config-if)#ip address 192.168.10.66 255.255.255.192
R2(config-if)#exit
R2(config)#interface fastEthernet 0/0
R2(config-if)#no shutdown
R2(config-if)#ip address 192.168.10.3 255.255.255.192
R2(config-if)#exit

R2(config)#interface serial 2/0


R2(config-if)#no shutdown
R2(config-if)#ip address 192.168.10.193 255.255.255.192
R2(config-if)#clock rate 125000
R2(config-if)#exit

R2(config)#router eigrp 1
R2(config-router)#network 192.168.10.0 0.0.0.63
R2(config-router)#network 192.168.10.64 0.0.0.63
R2(config-router)#network 192.168.10.192 0.0.0.63
R2(config-router)#exit
CONNECTING DIFFERENT SUB NETWORK USING ROUTER
/27 NETWORK PREFIX OF CLASS C IP ADDRESS

Block Diagram

Device Configuration

DEVICE INTERFACE IP ADDRESS NET MASK GATEWAY


PC0 Fast Ethernet 192.168.10.65 255.255.255.224 192.168.10.66
PC1 Fast Ethernet 192.168.10.67 255.255.255.224 192.168.10.66
PC2 Fast Ethernet 192.168.10.99 255.255.255.224 192.168.10.98
PC4 Fast Ethernet 192.168.10.129 255.255.255.224 192.168.10.130

PC5 Fast Ethernet 192.168.10.131 255.255.255.224 192.168.10.130


PC6 Fast Ethernet 192.168.10.161 255.255.255.224 192.168.10.162

PC7 Fast Ethernet 192.168.10.163 255.255.255.224 192.168.10.162

PC9 Fast Ethernet 192.168.10.193 255.255.255.224 192.168.10.194

PC8 Fast Ethernet 192.168.10.195 255.255.255.224 192.168.10.194

PC10 Fast Ethernet 192.168.10.225 255.255.255.224 192.168.10.226


PC11 Fast Ethernet 192.168.10.227 255.255.255.224 192.168.10.226
Serial 2/0 192.168.10.1 255.255.255.224 N/A

R1 Fast Ethernet 0/0 192.168.10.66 255.255.255.224 N/A

Fast Ethernet 1/0 192.168.10.98 255.255.255.224 N/A


Serial 2/0 192.168.10.2 255.255.255.224 N/A

Serial 3/0 192.168.10.33 255.255.255.224 N/A


R2
Fast Ethernet 0/0 192.168.10.130 255.255.255.224 N/A

Fast Ethernet 1/0 192.168.10.162 255.255.255.224 N/A

Serial 2/0 192.168.10.34 255.255.255.224 N/A

R3 Fast Ethernet 0/0 192.168.10.194 255.255.255.224 N/A

Fast Ethernet 1/0 192.168.10.226 255.255.255.224 N/A

R1 Configuration

Router>enable
Router# configure terminal

Device Name and Particular interface Configuration

Router(config)#hostname R1
R1(config)#interface fastEthernet 1/0
R1(config-if)#no shutdown
R1(config-if)#ip address 192.168.10.98 255.255.255.224
R1(config-if)#exit

R1(config)#interface fastEthernet 0/0


R1(config-if)#no shutdown
R1(config-if)#ip address 192.168.10.66 255.255.255.224
R1(config-if)#exit

R1(config)#interface serial 2/0


R1(config-if)#no shutdown
R1(config-if)#clock rate 125000
R1(config-if)#ip address 192.168.10.1 255.255.255.224
R1(config-if)#exit

R1(config)#router eigrp 1
R1(config-router)#network 192.168.10.64 0.0.0.31
R1(config-router)#network 192.168.10.96 0.0.0.31
R1(config-router)#network 192.168.10.0 0.0.0.31
R1(config-router)#exit

R2 Configuration

Router>enable
Router# configure terminal

Device Name and Particular interface Configuration

Router(config)#hostname R2

R2(config)#interface fastEthernet 1/0


R2(config-if)#no shutdown
R2(config-if)#ip address 192.168.10.162 255.255.255.224
R2(config-if)#exit

R2(config)#interface fastEthernet 0/0


R2(config-if)#no shutdown
R2(config-if)#ip address 192.168.10.130 255.255.255.224
R2(config-if)#exit

R2(config)#interface serial 2/0


R2(config-if)#no shutdown
R2(config-if)#ip address 192.168.10.2 255.255.255.224
R2(config-if)#exit
R2(config)#interface serial 3/0
R2(config-if)#no shutdown
R2(config-if)#ip address 192.168.10.33 255.255.255.224
R2(config-if)#clock rate 125000
R2(config-if)#exit

R2(config)#router eigrp 1
R2(config-router)#network 192.168.10.160 0.0.0.31
R2(config-router)#network 192.168.10.128 0.0.0.31
R2(config-router)#network 192.168.10.0 0.0.0.31
R2(config-router)#network 192.168.10.32 0.0.0.31
R2(config-router)#exit
R2(config)#

R3Configuration

Router>enable
Router# configure terminal

Device Name and Particular interface Configuration

Router(config)#hostname R3
R3(config)#interface fastEthernet 1/0
R3(config-if)#no shutdown
R3(config-if)#ip address 192.168.10.226 255.255.255.224
R3(config-if)#exit

R3(config)#interface fastEthernet 0/0


R3(config-if)#no shutdown
R3(config-if)#ip address 192.168.10.194 255.255.255.224
R3(config-if)#exit
R3(config)#interface serial 2/0
R3(config-if)#no shutdown
R3(config-if)#ip address 192.168.10.34 255.255.255.224
R3(config-if)#exit

R3(config)#router eigrp 1
R3(config-router)#network 192.168.10.194 0.0.0.255
R3(config-router)#network 192.168.10.226 0.0.0.255
R3(config-router)#network 192.168.10.34 0.0.0.255
R3(config-router)#exit
R3(config)#
STATIC ROUTE CONFIGURATION

Topology Diagram

Device Configuration

DEVICE INTERFACE IP ADDRESS SUBNET MASK GATEWAY


PC1 Fast Ethernet 192.168.1.1 255.255.255.0 192.168.1.10

PC2 Fast Ethernet 192.168.1.2 255.255.255.0 192.168.1.10

Fast Ethernet 0/0 192.168.1.10 255.255.255.0 NA


R1
Serial 2/0 10.1.1.1 255.255.255.252 NA
Serial 2/0 10.1.1.2 255.255.255.252 NA
R2
Serial 3/0 10.1.1.5 255.255.255.252 NA
Fast Ethernet 0/0 192.168.2.10 255.255.255.0 NA
R3
Serial 3/0 10.1.1.6 255.255.255.252 NA
PC3 Fast Ethernet 192.168.2.1 255.255.255.0 192.168.2.10
PC4 Fast Ethernet 192.168.2.2 255.255.255.0 192.168.2.10
R1 Configuration
Router>enable
Router#configure terminal

Changing Host Name


Router(config)#hostname R1

Assigning Consol port Password

R1(config)#line console 0
R1(config-line)#password cisco
R1(config-line)#login
R1(config-line)#exit

Assigning VTY Password

R1(config)#line vty 0 4
R1(config-line)#password cisco
R1(config-line)#login
R1(config-line)#exit

Assigning Privillage Mode password

R1(config)#enable secret class

Encrypt All password

R1(config)#service password-encryption

Banner MOTD Command

R1(config)#banner motd # WELCOME TO R1 #


R1(config)#
Configuring Fast Ethernet Port

R1(config)#interface FastEthernet0/0
R1(config-if)#no shutdown
R1(config-if)#ip address 192.168.1.10 255.255.255.0
R1(config-if)#end

Configuring Serial Port

R1(config)#interface Serial2/0
R1(config-if)#no shutdown
R1(config-if)#clock rate 9600
R1(config-if)#ip address 10.1.1.1 255.255.255.252
R1(config-if)#exit

Static Route Configuration Command

R1(config)#ip route 192.168.2.0 255.255.255.0 serial 2/0


R1(config)#exit

Save the running configuration into NVRAM

R1#copy running-config startup-config


R1#

R2 Configuration
Router>enable
Router#configure terminal
Router(config)#hostname R2

R2(config)#interface Serial2/0
R2(config-if)#no shutdown
R2(config-if)#ip address 10.1.1.2 255.255.255.252
R2(config-if)#exit
R2(config)#interface Serial3/0
R2(config-if)#no shutdown
R2(config-if)#clock rate 9600
R2(config-if)#ip address 10.1.1.5 255.255.255.252
R2(config-if)#exit

Static Route Configuration Command

R2(config)#ip route 192.168.2.0 255.255.255.0 serial 3/0


R2(config)#ip route 192.168.1.0 255.255.255.0 serial 2/0
R2(config)#^Z

Save the running configuration into NVRAM

R2#copy running-config startup-config


R2#

R3 Configuration
Router>enable
Router#configure terminal
Router(config)#hostname R3

R3(config)#interface FastEthernet0/0
R3(config-if)#no shutdown
R3(config-if)#ip address 192.168.2.10 255.255.255.0
R3(config-if)#exit

R3(config)#interface Serial3/0
R3(config-if)#no shutdown
R3(config-if)#ip address 10.1.1.6 255.255.255.252
R3(config-if)#exit
Static Route Configuration Command

R3(config)#ip route 192.168.1.0 255.255.255.0 serial 3/0


R3(config)#^Z

Save the running configuration into NVRAM

R3#copy running-config startup-config


R3#
STATIC ROUTE CONFIGURATION

Block Diagram

Device Configuration

DEVICE INTERFACE IP ADDRESS SUBNET MASK GATEWAY


PC1 Fast Ethernet 192.168.1.1 255.255.255.0 192.168.1.10
PC2 Fast Ethernet 192.168.1.2 255.255.255.0 192.168.1.10
PC3 Fast Ethernet 192.168.2.1 255.255.255.0 192.168.2.10
PC4 Fast Ethernet 192.168.3.1 255.255.255.0 192.168.3.10
PC5 Fast Ethernet 192.168.4.1 255.255.255.0 192.168.4.10
PC6 Fast Ethernet 192.168.4.2 255.255.255.0 192.168.4.10
Fast Ethernet0/0 192.168.1.10 255.255.255.0 N/A
R1 Fast Ethernet1/0 192.168.2.10 255.255.255.0 N/A
Serial 2/0 11.1.1.1 255.255.255.252 N/A
Serial 2/0 11.1.1.2 255.255.255.252 N/A
R2
Serial 3/0 11.1.1.5 255.255.255.252 N/A
Fast Ethernet0/0 192.168.3.10 255.255.255.0 N/A
R3 Fast Ethernet1/0 192.168.4.10 255.255.255.0 N/A
Serial 3/0 11.1.1.6 255.255.255.252 N/A
R1 Configuration
Router>enable
Router# configure terminal

Device Name and Particular interface Configuration


Router(config)#hostname R1

R1(config)#interface FastEthernet0/0
R1(config-if)#no shutdown
R1(config-if)#ip address 192.168.1.10 255.255.255.0
R1(config-if)#exit

R1(config)#interface FastEthernet1/0
R1(config-if)#no shutdown
R1(config-if)#ip address 192.168.2.10 255.255.255.0
R1(config-if)#exit

R1(config)#interface Serial2/0
R1(config-if)#no shutdown
R1(config-if)#clock rate 72000
R1(config-if)#ip address 11.1.1.1 255.255.255.252
R1(config-if)#

Static Route Configuration Command


R1(config)#ip route 192.168.3.0 255.255.255.0 serial 2/0
R1(config)#ip route 192.168.4.0 255.255.255.0 serial 2/0
R1(config)#end

Save the running Configuration file to NVRAM

R1#copy running-config startup-config


Destination filename [startup-config]?
Building configuration...
[OK]
R1#
Verify the Static Routing on the Routing Table

R1#show ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP

Gateway of last resort is not set


11.0.0.0/30 is subnetted, 1 subnets
C 11.1.1.0 is directly connected, Serial2/0
C 192.168.1.0/24 is directly connected, FastEthernet0/0
C 192.168.2.0/24 is directly connected, FastEthernet1/0
S 192.168.3.0/24 is directly connected, Serial2/0
S 192.168.4.0/24 is directly connected, Serial2/0
R1#

R2 Configuration
Router>enable
Router#configure terminal

Device Name and Particular interface Configuration

Router(config)#hostname R2

R2(config)#interface Serial2/0
R2(config-if)#no shutdown
R2(config-if)#no clock rate
This command applies only to DCE interfaces
R2(config-if)#ip address 11.1.1.2 255.255.255.252
R2(config-if)#exit

R2(config)#interface Serial3/0
R2(config-if)#no shutdown
R2(config-if)#clock rate 72000
R2(config-if)#ip address 11.1.1.5 255.255.255.252
R2(config-if)#exit
Static Route Configuration Command

R2(config)#ip route 192.168.3.0 255.255.255.0 serial 3/0


R2(config)#ip route 192.168.4.0 255.255.255.0 serial 3/0
R2(config)#ip route 192.168.1.0 255.255.255.0 11.1.1.1
R2(config)#ip route 192.168.2.0 255.255.255.0 11.1.1.1
R2(config)#end

Save the running Configuration file to NVRAM

R2#copy running-config startup-config


Destination filename [startup-config]?
Building configuration...
[OK]

Verify the Static Routing on the Routing Table

R2#show ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
Gateway of last resort is not set
11.0.0.0/30 is subnetted, 2 subnets
C 11.1.1.0 is directly connected, Serial2/0
C 11.1.1.4 is directly connected, Serial3/0
S 192.168.1.0/24 [1/0] via 11.1.1.1
S 192.168.2.0/24 [1/0] via 11.1.1.1
S 192.168.3.0/24 is directly connected, Serial3/0
S 192.168.4.0/24 is directly connected, Serial3/0
R2#

R3 Configuration

Router>enable
Router#configure terminal
Device Name and Particular interface Configuration
Router(config)#hostname R3

R3(config)#interface FastEthernet0/0
R3(config-if)#no shutdown
R3(config-if)#ip address 192.168.3.10 255.255.255.0
R3(config-if)#exit

R3(config)#interface FastEthernet1/0
R3(config-if)#no shutdown
R3(config-if)#ip address 192.168.4.10 255.255.255.0
R3(config-if)#exit

R3(config)#interface Serial3/0
R3(config-if)#no shutdown
R3(config-if)#no clock rate
This command applies only to DCE interfaces
R3(config-if)#ip address 11.1.1.6 255.255.255.252
R3(config-if)#exit

Static Route Configuration Command

R3(config)#ip route 192.168.1.0 255.255.255.0 11.1.1.5


R3(config)#ip route 192.168.2.0 255.255.255.0 11.1.1.5
R3(config)#end

Save the running Configuration file to NVRAM

R3#copy running-config startup-config


Destination filename [startup-config]?
Building configuration...
[OK]
R3#
Verify the Static Routing on the Routing Table

R3#show ip route

Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP


D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP

Gateway of last resort is not set


11.0.0.0/30 is subnetted, 1 subnets
C 11.1.1.4 is directly connected, Serial3/0
S 192.168.1.0/24 [1/0] via 11.1.1.5
S 192.168.2.0/24 [1/0] via 11.1.1.5
C 192.168.3.0/24 is directly connected, FastEthernet0/0
C 192.168.4.0/24 is directly connected, FastEthernet1/0

R3#
DEFAULT ROUTE CONFIGURATION

Block Diagram

Device Configuration

DEVICE INTERFACE IP ADDRESS SUBNET MASK GATEWAY


PC1 Fast Ethernet 192.168.1.1 255.255.255.0 192.168.1.10
PC2 Fast Ethernet 192.168.1.2 255.255.255.0 192.168.1.10
PC3 Fast Ethernet 192.168.2.1 255.255.255.0 192.168.2.10
PC4 Fast Ethernet 192.168.3.1 255.255.255.0 192.168.3.10
PC5 Fast Ethernet 192.168.4.1 255.255.255.0 192.168.4.10
PC6 Fast Ethernet 192.168.4.2 255.255.255.0 192.168.4.10
Fast Ethernet0/0 192.168.1.10 255.255.255.0 N/A
R1 Fast Ethernet1/0 192.168.2.10 255.255.255.0 N/A
Serial 2/0 11.1.1.1 255.255.255.252 N/A
Serial 2/0 11.1.1.2 255.255.255.252 N/A
R2
Serial 3/0 11.1.1.5 255.255.255.252 N/A
Fast Ethernet0/0 192.168.3.10 255.255.255.0 N/A
R3 Fast Ethernet1/0 192.168.4.10 255.255.255.0 N/A
Serial 3/0 11.1.1.6 255.255.255.252 N/A
R1 Configuration
Router>enable
Router# configure terminal

Device Name and Particular interface Configuration


Router(config)#hostname R1

R1(config)#interface FastEthernet0/0
R1(config-if)#no shutdown
R1(config-if)#ip address 192.168.1.10 255.255.255.0
R1(config-if)#exit

R1(config)#interface FastEthernet1/0
R1(config-if)#no shutdown
R1(config-if)#ip address 192.168.2.10 255.255.255.0
R1(config-if)#exit

R1(config)#interface Serial2/0
R1(config-if)#no shutdown
R1(config-if)#clock rate 72000
R1(config-if)#ip address 11.1.1.1 255.255.255.252
R1(config-if)#

Default Route Configuration Command

R1(config)#ip route 0.0.0.0 0.0.0.0 serial 2/0


R1(config)#end

Save the running Configuration file to NVRAM

R1#copy running-config startup-config


Destination filename [startup-config]?
Building configuration...
[OK]
R1#
Verify the Default Route on the Routing Table

R1#show ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
* - candidate default, U - per-user static route, o - ODR

Gateway of last resort is 0.0.0.0 to network 0.0.0.0


11.0.0.0/30 is subnetted, 1 subnets
C 11.1.1.0 is directly connected, Serial2/0
C 192.168.1.0/24 is directly connected, FastEthernet0/0
C 192.168.2.0/24 is directly connected, FastEthernet1/0
S* 0.0.0.0/0 is directly connected, Serial2/0

R2 Configuration
Router>enable
Router#configure terminal

Device Name and Particular interface Configuration

Router(config)#hostname R2

R2(config)#interface Serial2/0
R2(config-if)#no shutdown
R2(config-if)#no clock rate
This command applies only to DCE interfaces

R2(config-if)#ip address 11.1.1.2 255.255.255.252


R2(config-if)#exit

R2(config)#interface Serial3/0
R2(config-if)#no shutdown
R2(config-if)#clock rate 72000
R2(config-if)#ip address 11.1.1.5 255.255.255.252
R2(config-if)#exit
Default Route Configuration Command

R2(config)#ip route 0.0.0.0 0.0.0.0 serial 3/0


R2(config)#ip route 0.0.0.0 0.0.0.0 serial 2/0
R2(config)#end

Save the running Configuration file to NVRAM


R2#copy running-config startup-config
Destination filename [startup-config]?
Building configuration...
[OK]

Verify the Default Route on the Routing Table

R2#show ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
* - candidate default, U - per-user static route, o - ODR
P - periodic downloaded static route

Gateway of last resort is 0.0.0.0 to network 0.0.0.0

11.0.0.0/30 is subnetted, 2 subnets


C 11.1.1.0 is directly connected, Serial2/0
C 11.1.1.4 is directly connected, Serial3/0
S* 0.0.0.0/0 is directly connected, Serial3/0
is directly connected, Serial2/0
R2#

R3 Configuration

Router>enable
Router#configure terminal
Device Name and Particular interface Configuration

Router(config)#hostname R3

R3(config)#interface FastEthernet0/0
R3(config-if)#no shutdown
R3(config-if)#ip address 192.168.3.10 255.255.255.0
R3(config-if)#exit

R3(config)#interface FastEthernet1/0
R3(config-if)#no shutdown
R3(config-if)#ip address 192.168.4.10 255.255.255.0
R3(config-if)#exit

R3(config)#interface Serial3/0
R3(config-if)#no shutdown
R3(config-if)#no clock rate
This command applies only to DCE interfaces
R3(config-if)#ip address 11.1.1.6 255.255.255.252
R3(config-if)#exit

Default Route Configuration Command

R3(config)#ip route 0.0.0.0 0.0.0.0 11.1.1.5


R3(config)#end

Save the running Configuration file to NVRAM

R3#copy running-config startup-config


Destination filename [startup-config]?
Building configuration...
[OK]
R3#
Verify the Default Route on the Routing Table

R3#show ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
* - candidate default, U - per-user static route, o - ODR
P - periodic downloaded static route

Gateway of last resort is 11.1.1.5 to network 0.0.0.0

11.0.0.0/30 is subnetted, 1 subnets


C 11.1.1.4 is directly connected, Serial3/0
C 192.168.3.0/24 is directly connected, FastEthernet0/0
C 192.168.4.0/24 is directly connected, FastEthernet1/0
S* 0.0.0.0/0 [1/0] via 11.1.1.5
R3#
ROUTE SUMMARIZATION CONFIGURATION

Definition

Multiple static routes can be summarized into a single static route.

Block Diagram

Device Configuration

DEVICE INTERFACE IP ADDRESS SUBNET MASK GATEWAY


PC1 Fast Ethernet 192.168.1.1 255.255.255.0 192.168.1.10
PC2 Fast Ethernet 192.168.1.2 255.255.255.0 192.168.1.10
PC3 Fast Ethernet 192.168.2.1 255.255.255.0 192.168.2.10
PC4 Fast Ethernet 192.168.3.1 255.255.255.0 192.168.3.10
PC5 Fast Ethernet 192.168.4.1 255.255.255.0 192.168.4.10
PC6 Fast Ethernet 192.168.4.2 255.255.255.0 192.168.4.10
Fast Ethernet0/0 192.168.1.10 255.255.255.0 N/A
R1 Fast Ethernet1/0 192.168.2.10 255.255.255.0 N/A
Serial 2/0 11.1.1.1 255.255.255.252 N/A
Serial 2/0 11.1.1.2 255.255.255.252 N/A
R2
Serial 3/0 11.1.1.5 255.255.255.252 N/A
Fast Ethernet0/0 192.168.3.10 255.255.255.0 N/A
R3 Fast Ethernet1/0 192.168.4.10 255.255.255.0 N/A
Serial 3/0 11.1.1.6 255.255.255.252 N/A

R1 Configuration

Router>enable
Router# configure terminal

Device Name and Particular interface Configuration

Router(config)#hostname R1

R1(config)#interface FastEthernet0/0
R1(config-if)#no shutdown
R1(config-if)#ip address 192.168.1.10 255.255.255.0
R1(config-if)#exit

R1(config)#interface FastEthernet1/0
R1(config-if)#no shutdown
R1(config-if)#ip address 192.168.2.10 255.255.255.0
R1(config-if)#exit

R1(config)#interface Serial2/0
R1(config-if)#no shutdown
R1(config-if)#clock rate 72000
R1(config-if)#ip address 11.1.1.1 255.255.255.252
R1(config-if)#
Route Summarization Configuration Command

Static Route Configuration Command


R1(config)#ip route 192.168.3.0 255.255.255.0 serial 2/0
R1(config)#ip route 192.168.4.0 255.255.255.0 serial 2/0
R1(config)#end

Summarizing Routes to Reduce the Size of the Routing Table

R1(config)#ip route 192.168.0.0 255.255.248.0 11.1.1.2


R1(config)#

Save the running Configuration file to NVRAM

R1#copy running-config startup-config


Destination filename [startup-config]?
Building configuration...
[OK]
R1#

Verify the Static Routing on the Routing Table

R1#show ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2

Gateway of last resort is not set


11.0.0.0/30 is subnetted, 1 subnets
C 11.1.1.0 is directly connected, Serial2/0
S 192.168.0.0/21 [1/0] via 11.1.1.2
C 192.168.1.0/24 is directly connected, FastEthernet0/0
C 192.168.2.0/24 is directly connected, FastEthernet1/0
R1#
R2 Configuration
Router>enable
Router#configure terminal

Device Name and Particular interface Configuration


Router(config)#hostname R2

R2(config)#interface Serial2/0
R2(config-if)#no shutdown
R2(config-if)#no clock rate
This command applies only to DCE interfaces
R2(config-if)#ip address 11.1.1.2 255.255.255.252
R2(config-if)#exit
R2(config)#interface Serial3/0
R2(config-if)#no shutdown
R2(config-if)#clock rate 72000
R2(config-if)#ip address 11.1.1.5 255.255.255.252
R2(config-if)#exit

Route Summarization Configuration Command

Static Route Configuration Command


R2(config)#ip route 192.168.3.0 255.255.255.0 serial 3/0
R2(config)#ip route 192.168.4.0 255.255.255.0 serial 3/0
R2(config)#ip route 192.168.1.0 255.255.255.0 11.1.1.1
R2(config)#ip route 192.168.2.0 255.255.255.0 11.1.1.1
R2(config)#end

Summarizing Routes to Reduce the Size of the Routing Table

R2(config)#ip route 192.168.0.0 255.255.248.0 serial 2/0


R2(config)#ip route 192.168.0.0 255.255.248.0 serial 3/0
Save the running Configuration file to NVRAM
R2#copy running-config startup-config
Destination filename [startup-config]?
Building configuration...
[OK]

Verify the Static Routing on the Routing Table

R2#show ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2

Gateway of last resort is not set


11.0.0.0/30 is subnetted, 2 subnets
C 11.1.1.0 is directly connected, Serial2/0
C 11.1.1.4 is directly connected, Serial3/0
S 192.168.0.0/21 is directly connected, Serial2/0
is directly connected, Serial3/0
R2#

R3 Configuration
Router>enable
Router#configure terminal

Device Name and Particular interface Configuration


Router(config)#hostname R3
R3(config)#interface FastEthernet0/0
R3(config-if)#no shutdown
R3(config-if)#ip address 192.168.3.10 255.255.255.0
R3(config-if)#exit

R3(config)#interface FastEthernet1/0
R3(config-if)#no shutdown
R3(config-if)#ip address 192.168.4.10 255.255.255.0
R3(config-if)#exit
R3(config)#interface Serial3/0
R3(config-if)#no shutdown
R3(config-if)#no clock rate
This command applies only to DCE interfaces
R3(config-if)#ip address 11.1.1.6 255.255.255.252
R3(config-if)#exit

Route Summarization Configuration Command

Static Route Configuration Command


R3(config)#ip route 192.168.1.0 255.255.255.0 11.1.1.5
R3(config)#ip route 192.168.2.0 255.255.255.0 11.1.1.5
R3(config)#end

Summarizing Routes to Reduce the Size of the Routing Table

R3(config)#ip route 192.168.0.0 255.255.252.0 11.1.1.5

Save the running Configuration file to NVRAM


R3#copy running-config startup-config
Destination filename [startup-config]?
Building configuration...
[OK]
R3#

Verify the Static Routing on the Routing Table


R3#show ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2

Gateway of last resort is not set


11.0.0.0/30 is subnetted, 1 subnets
C 11.1.1.4 is directly connected, Serial3/0
S 192.168.0.0/22 [1/0] via 11.1.1.5
C 192.168.3.0/24 is directly connected, FastEthernet0/0
C 192.168.4.0/24 is directly connected, FastEthernet1/0
R3#
RIPv1 PROTOCOL CONFIGURATION

Block Diagram

Device Configuration

DEVICE INTERFACE IP ADDRESS SUBNET MASK GATEWAY


PC1 Fast Ethernet 192.168.1.1 255.255.255.0 192.168.1.10
PC2 Fast Ethernet 192.168.1.2 255.255.255.0 192.168.1.10
PC3 Fast Ethernet 192.168.2.1 255.255.255.0 192.168.2.10
PC4 Fast Ethernet 192.168.3.1 255.255.255.0 192.168.3.10
PC5 Fast Ethernet 192.168.4.1 255.255.255.0 192.168.4.10
PC6 Fast Ethernet 192.168.4.2 255.255.255.0 192.168.4.10
Fast Ethernet0/0 192.168.1.10 255.255.255.0 N/A
R1 Fast Ethernet1/0 192.168.2.10 255.255.255.0 N/A
Serial 2/0 11.1.1.1 255.255.255.252 N/A
Serial 2/0 11.1.1.2 255.255.255.252 N/A
R2
Serial 3/0 11.1.1.5 255.255.255.252 N/A
Fast Ethernet0/0 192.168.3.10 255.255.255.0 N/A
R3 Fast Ethernet1/0 192.168.4.10 255.255.255.0 N/A
Serial 3/0 11.1.1.6 255.255.255.252 N/A
R1 Configuration
Router>enable
Router# configure terminal

Device Name and Particular interface Configuration

Router(config)#hostname R1

R1(config)#interface FastEthernet0/0
R1(config-if)#no shutdown
R1(config-if)#ip address 192.168.1.10 255.255.255.0
R1(config-if)#exit

R1(config)#interface FastEthernet1/0
R1(config-if)#no shutdown
R1(config-if)#ip address 192.168.2.10 255.255.255.0
R1(config-if)#exit

R1(config)#interface Serial2/0
R1(config-if)#no shutdown
R1(config-if)#clock rate 72000
R1(config-if)#ip address 11.1.1.1 255.255.255.252
R1(config-if)#

RIPv1 Configuration Command

R1(config)#router rip
R1(config-router)#version 1
R1(config-router)#network 192.168.1.0
R1(config-router)#network 192.168.2.0
R1(config-router)#network 11.0.0.0
R1(config-router)#exit
Save the running Configuration file to NVRAM
R1#copy running-config startup-config
Destination filename [startup-config]?
Building configuration...
[OK]
R1#

Verify the RIPv1

R1#show ip protocols
Routing Protocol is "rip"
Sending updates every 30 seconds, next due in 21 seconds
Invalid after 180 seconds, hold down 180, flushed after 240
Outgoing update filter list for all interfaces is not set
Incoming update filter list for all interfaces is not set
Redistributing: rip
Default version control: send version 1, receive 1
Interface Send Recv Triggered RIP Key-chain
FastEthernet0/0 1 1
FastEthernet1/0 1 1
Serial2/0 1 1
Automatic network summarization is in effect
Maximum path: 4
Routing for Networks:
11.0.0.0
192.168.1.0
192.168.2.0
Passive Interface(s):
Routing Information Sources:
Gateway Distance Last Update
11.1.1.2 120 00:00:27
Distance: (default is 120)
R1#

R1#show ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
* - candidate default, U - per-user static route, o - ODR
P - periodic downloaded static route
Gateway of last resort is not set
11.0.0.0/30 is subnetted, 2 subnets
C 11.1.1.0 is directly connected, Serial2/0
R 11.1.1.4 [120/1] via 11.1.1.2, 00:00:06, Serial2/0
C 192.168.1.0/24 is directly connected, FastEthernet0/0
C 192.168.2.0/24 is directly connected, FastEthernet1/0
R 192.168.3.0/24 [120/2] via 11.1.1.2, 00:00:06, Serial2/0
R 192.168.4.0/24 [120/2] via 11.1.1.2, 00:00:06, Serial2/0

R1#

R2 Configuration
Router>enable
Router#configure terminal

Device Name and Particular interface Configuration


Router(config)#hostname R2
R2(config)#interface Serial2/0
R2(config-if)#no shutdown
R2(config-if)#no clock rate
This command applies only to DCE interfaces
R2(config-if)#ip address 11.1.1.2 255.255.255.252
R2(config-if)#exit

R2(config)#interface Serial3/0
R2(config-if)#no shutdown
R2(config-if)#clock rate 72000
R2(config-if)#ip address 11.1.1.5 255.255.255.252
R2(config-if)#exit

RIPv1 Configuration Command


R2(config)#router rip
R2(config-router)#version 1
R2(config-router)#network 11.0.0.0
R2(config-router)#exit
Save the running Configuration file to NVRAM
R2#copy running-config startup-config
Destination filename [startup-config]?
Building configuration...
[OK]

Verify the RIPv1


R2#show ip protocols
Routing Protocol is "rip"
Sending updates every 30 seconds, next due in 27 seconds
Invalid after 180 seconds, hold down 180, flushed after 240
Outgoing update filter list for all interfaces is not set
Incoming update filter list for all interfaces is not set
Redistributing: rip
Default version control: send version 1, receive 1
Interface Send Recv Triggered RIP Key-chain
Serial2/0 1 1
Serial3/0 1 1
Automatic network summarization is in effect
Maximum path: 4
Routing for Networks:
11.0.0.0
Passive Interface(s):
Routing Information Sources:
Gateway Distance Last Update
11.1.1.1 120 00:00:00
11.1.1.6 120 00:00:00
Distance: (default is 120)
R2#

R2#show ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2

Gateway of last resort is not set


11.0.0.0/30 is subnetted, 2 subnets
C 11.1.1.0 is directly connected, Serial2/0
C 11.1.1.4 is directly connected, Serial3/0
R 192.168.1.0/24 [120/1] via 11.1.1.1, 00:00:00, Serial2/0
R 192.168.2.0/24 [120/1] via 11.1.1.1, 00:00:00, Serial2/0
R 192.168.3.0/24 [120/1] via 11.1.1.6, 00:00:05, Serial3/0
R 192.168.4.0/24 [120/1] via 11.1.1.6, 00:00:05, Serial3/0
R2#
R3 Configuration
Router>enable
Router#configure terminal

Device Name and Particular interface Configuration

Router(config)#hostname R3
R3(config)#interface FastEthernet0/0
R3(config-if)#no shutdown
R3(config-if)#ip address 192.168.3.10 255.255.255.0
R3(config-if)#exit

R3(config)#interface FastEthernet1/0
R3(config-if)#no shutdown
R3(config-if)#ip address 192.168.4.10 255.255.255.0
R3(config-if)#exit

R3(config)#interface Serial3/0
R3(config-if)#no shutdown
R3(config-if)#no clock rate
This command applies only to DCE interfaces
R3(config-if)#ip address 11.1.1.6 255.255.255.252
R3(config-if)#exit

RIPv1 Configuration Command

R3(config)#router rip
R3(config-router)#version 1
R3(config-router)#network 192.168.3.0
R3(config-router)#network 192.168.4.0
R3(config-router)#network 11.0.0.0
R3(config-router)#exit
Save the running Configuration file to NVRAM
R3#copy running-config startup-config
R3#

Verify the RIPv1


R3#show ip protocols
Routing Protocol is "rip"
Sending updates every 30 seconds, next due in 11 seconds
Invalid after 180 seconds, hold down 180, flushed after 240
Outgoing update filter list for all interfaces is not set
Incoming update filter list for all interfaces is not set
Redistributing: rip
Default version control: send version 1, receive 1
Interface Send Recv Triggered RIP Key-chain
FastEthernet0/0 1 1
FastEthernet1/0 1 1
Serial3/0 1 1
Automatic network summarization is in effect
Maximum path: 4
Routing for Networks:
11.0.0.0
192.168.3.0
192.168.4.0
Passive Interface(s):
Routing Information Sources:
Gateway Distance Last Update
11.1.1.5 120 00:00:15
Distance: (default is 120)
R3#

R3#show ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
P - periodic downloaded static route

Gateway of last resort is not set


11.0.0.0/30 is subnetted, 2 subnets
R 11.1.1.0 [120/1] via 11.1.1.5, 00:00:06, Serial3/0
C 11.1.1.4 is directly connected, Serial3/0
R 192.168.1.0/24 [120/2] via 11.1.1.5, 00:00:06, Serial3/0
R 192.168.2.0/24 [120/2] via 11.1.1.5, 00:00:06, Serial3/0
C 192.168.3.0/24 is directly connected, FastEthernet0/0
C 192.168.4.0/24 is directly connected, FastEthernet1/0

R3#
RIPV2 PROTOCOL CONFIGURATION

Block Diagram

Device Configuration

DEVICE INTERFACE IP ADDRESS SUBNET MASK GATEWAY


PC1 Fast Ethernet 192.168.1.1 255.255.255.0 192.168.1.10
PC2 Fast Ethernet 192.168.1.2 255.255.255.0 192.168.1.10
PC3 Fast Ethernet 192.168.2.1 255.255.255.0 192.168.2.10
PC4 Fast Ethernet 192.168.3.1 255.255.255.0 192.168.3.10
PC5 Fast Ethernet 192.168.4.1 255.255.255.0 192.168.4.10
PC6 Fast Ethernet 192.168.4.2 255.255.255.0 192.168.4.10
Fast Ethernet0/0 192.168.1.10 255.255.255.0 N/A
R1 Fast Ethernet1/0 192.168.2.10 255.255.255.0 N/A
Serial 2/0 11.1.1.1 255.255.255.252 N/A
Serial 2/0 11.1.1.2 255.255.255.252 N/A
R2
Serial 3/0 11.1.1.5 255.255.255.252 N/A
Fast Ethernet0/0 192.168.3.10 255.255.255.0 N/A
R3 Fast Ethernet1/0 192.168.4.10 255.255.255.0 N/A
Serial 3/0 11.1.1.6 255.255.255.252 N/A
R1 Configuration

Router>enable
Router# configure terminal

Device Name and Particular interface Configuration

Router(config)#hostname R1

R1(config)#interface FastEthernet0/0
R1(config-if)#no shutdown
R1(config-if)#ip address 192.168.1.10 255.255.255.0
R1(config-if)#exit

R1(config)#interface FastEthernet1/0
R1(config-if)#no shutdown
R1(config-if)#ip address 192.168.2.10 255.255.255.0
R1(config-if)#exit

R1(config)#interface Serial2/0
R1(config-if)#no shutdown
R1(config-if)#clock rate 72000
R1(config-if)#ip address 11.1.1.1 255.255.255.252
R1(config-if)#

RIPv2 Configuration Command

R1(config)#router rip
R1(config-router)#version 2
R1(config-router)#network 192.168.1.0
R1(config-router)#network 192.168.2.0
R1(config-router)#network 11.1.1.0
R1(config-router)#exit
Save the running Configuration file to NVRAM

R1#copy running-config startup-config


Destination filename [startup-config]?
Building configuration...
[OK]
R1#

Verify the RIPv2

R1#show ip protocols

Routing Protocol is "rip"


Sending updates every 30 seconds, next due in 0 seconds
Invalid after 180 seconds, hold down 180, flushed after 240
Outgoing update filter list for all interfaces is not set
Incoming update filter list for all interfaces is not set
Redistributing: rip
Default version control: send version 2, receive 2
Interface Send Recv Triggered RIP Key-chain
FastEthernet0/0 2 2
FastEthernet1/0 2 2
Serial2/0 2 2
Automatic network summarization is in effect
Maximum path: 4
Routing for Networks:
11.0.0.0
192.168.1.0
192.168.2.0
Passive Interface(s):
Routing Information Sources:
Gateway Distance Last Update
11.1.1.2 120 00:00:16
Distance: (default is 120)
R1#

R1#show ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
* - candidate default, U - per-user static route, o - ODR
P - periodic downloaded static route
Gateway of last resort is not set
11.0.0.0/30 is subnetted, 2 subnets
C 11.1.1.0 is directly connected, Serial2/0
R 11.1.1.4 [120/1] via 11.1.1.2, 00:00:24, Serial2/0
C 192.168.1.0/24 is directly connected, FastEthernet0/0
C 192.168.2.0/24 is directly connected, FastEthernet1/0
R 192.168.3.0/24 [120/2] via 11.1.1.2, 00:00:24, Serial2/0
R 192.168.4.0/24 [120/2] via 11.1.1.2, 00:00:24, Serial2/0
R1#

R2 Configuration
Router>enable
Router#configure terminal

Device Name and Particular interface Configuration


Router(config)#hostname R2

R2(config)#interface Serial2/0
R2(config-if)#no shutdown
R2(config-if)#no clock rate
This command applies only to DCE interfaces
R2(config-if)#ip address 11.1.1.2 255.255.255.252
R2(config-if)#exit

R2(config)#interface Serial3/0
R2(config-if)#no shutdown
R2(config-if)#clock rate 72000
R2(config-if)#ip address 11.1.1.5 255.255.255.252
R2(config-if)#exit

RIPv2 Configuration Command


R2(config)#router rip
R2(config-router)#version 2
R2(config-router)#network 11.1.1.0
R2(config-router)#network 11.1.1.4
R2(config-router)#exit
Save the running Configuration file to NVRAM
R2#copy running-config startup-config
Destination filename [startup-config]?
Building configuration...
[OK]

Verify the RIPv2


R2#show ip protocols
R2#show ip route

R3 Configuration
Router>enable
Router#configure terminal

Device Name and Particular interface Configuration


Router(config)#hostname R3
R3(config)#interface FastEthernet0/0
R3(config-if)#no shutdown
R3(config-if)#ip address 192.168.3.10 255.255.255.0
R3(config-if)#exit

R3(config)#interface FastEthernet1/0
R3(config-if)#no shutdown
R3(config-if)#ip address 192.168.4.10 255.255.255.0
R3(config-if)#exit

R3(config)#interface Serial3/0
R3(config-if)#no shutdown
R3(config-if)#no clock rate
This command applies only to DCE interfaces
R3(config-if)#ip address 11.1.1.6 255.255.255.252
R3(config-if)#exit
RIPv2 Configuration Command

R3(config)#router rip
R3(config-router)#version 2
R3(config-router)#network 192.168.3.0
R3(config-router)#network 192.168.4.0
R3(config-router)#network 11.1.1.4
R3(config-router)#exit

Save the running Configuration file to NVRAM

R3#copy running-config startup-config


Destination filename [startup-config]?
Building configuration...
[OK]
R3#

Verify the RIPv2

R3#show ip protocols
R3#show ip route
RIPV2 USING PASSIVE INTERFACE

Block Diagram

Device Configuration

DEVICE INTERFACE IP ADDRESS SUBNET MASK GATEWAY


PC10 Fast Ethernet 192.168.1.1 255.255.255.0 192.168.1.2
PC1 Fast Ethernet 192.168.1.3 255.255.255.0 192.168.1.2
PC2 Fast Ethernet 192.168.2.1 255.255.255.0 192.168.2.2
PC3 Fast Ethernet 192.168.2.3 255.255.255.0 192.168.2.2
PC4 Fast Ethernet 150.1.1.1 255.255.0.0 150.1.1.2
PC5 Fast Ethernet 150.1.1.3 255.255.0.0 150.1.1.2
PC6 Fast Ethernet 100.1.1.1 255.0.0.0 100.1.1.2
PC7 Fast Ethernet 100.1.1.3 255.0.0.0 100.1.1.2
PC8 Fast Ethernet 200.1.1.1 255.255.255.0 200.1.1.2
PC9 Fast Ethernet 200.1.1.3 255.255.255.0 200.1.1.2
Fast Ethernet0/0 192.168.1.2 255.255.255.0 N/A
R1 Fast Ethernet1/0 192.168.2.2 255.255.255.0 N/A
Serial 2/0 10.1.1.1 255.0.0.0 N/A
Serial 2/0 11.1.1.1 255.0.0.0 N/A
R2 Serial 3/0 10.1.1.2 255.0.0.0 N/A
Fast Ethernet0/0 150.1.1.2 255.255.0.0 N/A
Fast Ethernet0/0 100.1.1.2 255.0.0.0 N/A
R3 Fast Ethernet1/0 200.1.1.2 255.255.255.0 N/A
Serial 3/0 11.1.1.2 255.0.0.0 N/A

R1 Configuration

Router>enable
Router# configure terminal

Device Name and Particular interface Configuration

Router(config)#hostname R1

R1(config)#interface fastEthernet 1/0


R1(config-if)#no shutdown
R1(config-if)#ip address 192.168.2.2 255.255.255.0
R1(config-if)#exit

R1(config)#interface fastEthernet 0/0


R1(config-if)#no shutdown
R1(config-if)#ip address 192.168.1.2 255.255.255.0
R1(config-if)#exit

R1(config)#interface serial 2/0


R1(config-if)#no shutdown
R1(config-if)#ip address 10.1.1.1 255.0.0.0
R1(config-if)#clock rate 125000
R1(config-if)#exit
RIPv2 Configuration Command

R1(config)#router rip
R1(config-router)#version 2
R1(config-router)#network 192.168.1.0
R1(config-router)#network 192.168.2.0
R1(config-router)#network 10.0.0.0
R1(config-router)#exit

PC Receive Unwanted RIPv2 Updates

Block unwanted RIPv2 Update Message of End user Device

R1(config)#router rip
R1(config-router)#passive-interface fastEthernet 1/0
R1(config-router)#passive-interface fastEthernet 0/0
R1(config-router)#exit
R1(config)#
Routers are only Receive RIPv2 Updates

Save the running Configuration file to NVRAM

R1#copy running-config startup-config


Destination filename [startup-config]?
Building configuration...
[OK]
R1#

R2 Configuration

Router>enable
Router#configure terminal

Device Name and Particular interface Configuration

Router(config)#hostname R2

R2(config)#interface fastEthernet 0/0


R2(config-if)#no shutdown
R2(config-if)#ip address 150.1.1.2 255.255.0.0
R2(config-if)#exit
R2(config)#interface serial 3/0
R2(config-if)#no shutdown
R2(config-if)#ip address 10.1.1.2 255.0.0.0
R2(config-if)#exit

R2(config)#interface serial 2/0


R2(config-if)#no shutdown
R2(config-if)#ip address 11.1.1.1 255.0.0.0
R2(config-if)#clock rate 125000
R2(config-if)#exit

RIPv2 Configuration Command

R2(config)#router rip
R2(config-router)#version 2
R2(config-router)#network 10.0.0.0
R2(config-router)#network 11.0.0.0
R2(config-router)#network 150.1.0.0
R2(config-router)#exit
R2(config)#

Block unwanted RIPv2 Update Message of End user Device

R2(config)#router rip
R2(config-router)#passive-interface fastEthernet 0/0
R2(config-router)#exit
R2(config)#

Save the running Configuration file to NVRAM

R2#copy running-config startup-config


Destination filename [startup-config]?
Building configuration...
[OK]
R3 Configuration

Router>enable
Router#configure terminal

Device Name and Particular interface Configuration

Router(config)#hostname R3

R3(config)#interface fastEthernet 1/0


R3(config-if)#no shutdown
R3(config-if)#ip address 200.1.1.2 255.255.255.0
R3(config-if)#exit

R3(config)#interface fastEthernet 0/0


R3(config-if)#no shutdown
R3(config-if)#ip address 100.1.1.2 255.0.0.0
R3(config-if)#exit

R3(config)#interface serial 2/0


R3(config-if)#no shutdown
R3(config-if)#ip address 11.1.1.2 255.0.0.0
R3(config-if)#exit

RIPv2 Configuration Command

R3(config)#router rip
R3(config-router)#version 2
R3(config-router)#network 100.0.0.0
R3(config-router)#network 200.1.1.0
R3(config-router)#network 11.0.0.0
R3(config-router)#exit
R3(config)#
Block unwanted RIPv2 Update Message of End user Device

R3(config)#router rip
R3(config-router)#passive-interface fastEthernet 0/0
R3(config-router)#passive-interface fastEthernet 1/0
R3(config-router)#exit
R3(config)#

Save the running Configuration file to NVRAM

R3#copy running-config startup-config


Destination filename [startup-config]?
Building configuration...
[OK]
R3#

Verify the RIPv2

R3#show ip protocols
R3#show ip route
EIGRP CONFIGURATION

Block Diagram

Device Configuration

DEVICE INTERFACE IP ADDRESS SUBNET MASK GATEWAY


PC1 Fast Ethernet 192.168.1.1 255.255.255.0 192.168.1.10
PC2 Fast Ethernet 192.168.1.2 255.255.255.0 192.168.1.10
PC3 Fast Ethernet 192.168.2.1 255.255.255.0 192.168.2.10
PC4 Fast Ethernet 192.168.3.1 255.255.255.0 192.168.3.10
PC5 Fast Ethernet 192.168.4.1 255.255.255.0 192.168.4.10
PC6 Fast Ethernet 192.168.4.2 255.255.255.0 192.168.4.10
Fast Ethernet0/0 192.168.1.10 255.255.255.0 N/A
R1 Fast Ethernet1/0 192.168.2.10 255.255.255.0 N/A
Serial 2/0 11.1.1.1 255.255.255.252 N/A
Serial 2/0 11.1.1.2 255.255.255.252 N/A
R2
Serial 3/0 11.1.1.5 255.255.255.252 N/A
Fast Ethernet0/0 192.168.3.10 255.255.255.0 N/A
R3 Fast Ethernet1/0 192.168.4.10 255.255.255.0 N/A
Serial 3/0 11.1.1.6 255.255.255.252 N/A
R1 Configuration
Router>enable
Router# configure terminal

Device Name and Particular interface Configuration


Router(config)#hostname R1
R1(config)#interface FastEthernet0/0
R1(config-if)#no shutdown
R1(config-if)#ip address 192.168.1.10 255.255.255.0
R1(config-if)#exit

R1(config)#interface FastEthernet1/0
R1(config-if)#no shutdown
R1(config-if)#ip address 192.168.2.10 255.255.255.0
R1(config-if)#exit

R1(config)#interface Serial2/0
R1(config-if)#no shutdown
R1(config-if)#clock rate 72000
R1(config-if)#ip address 11.1.1.1 255.255.255.252
R1(config-if)#

EIGRP Protocol Configuration Command


R1(config)#router eigrp ?
<1-65535> Autonomous system number

R1(config)#router eigrp 10
R1(config-router)#network ?
A.B.C.D Network number

R1(config-router)#network 192.168.1.0 ?
A.B.C.D EIGRP wild card bits

R1(config-router)#network 192.168.1.0 0.0.0.255


R1(config-router)#network 192.168.2.0 0.0.0.255
R1(config-router)#network 11.1.1.0 0.0.0.3
R1(config-router)#

Save the running Configuration file to NVRAM


R1#copy running-config startup-config
Destination filename [startup-config]?
Building configuration...
[OK]
R1#

Verify the EIGRP Routing on the Routing Table

R1#show ip route

Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP


D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
* - candidate default, U - per-user static route, o - ODR
P - periodic downloaded static route

Gateway of last resort is not set


11.0.0.0/8 is variably subnetted, 3 subnets, 2 masks
D 11.0.0.0/8 is a summary, 00:34:09, Null0
C 11.1.1.0/30 is directly connected, Serial2/0
D 11.1.1.4/30 [90/21024000] via 11.1.1.2, 00:33:13, Serial2/0
C 192.168.1.0/24 is directly connected, FastEthernet0/0
C 192.168.2.0/24 is directly connected, FastEthernet1/0
D 192.168.3.0/24 [90/21026560] via 11.1.1.2, 00:32:29, Serial2/0
D 192.168.4.0/24 [90/21026560] via 11.1.1.2, 00:32:29, Serial2/0
R1#

R1#show ip protocols
Routing Protocol is "eigrp 10 "
Outgoing update filter list for all interfaces is not set
Incoming update filter list for all interfaces is not set
Default networks flagged in outgoing updates
Default networks accepted from incoming updates
EIGRP metric weight K1=1, K2=0, K3=1, K4=0, K5=0
EIGRP maximum hopcount 100
EIGRP maximum metric variance 1
Redistributing: eigrp 10
Automatic network summarization is in effect
Automatic address summarization:
11.0.0.0/8 for FastEthernet0/0, FastEthernet1/0
Summarizing with metric 20512000
Maximum path: 4
Routing for Networks:
192.168.1.0
192.168.2.0
11.1.1.0/30
Routing Information Sources:
Gateway Distance Last Update
11.1.1.2 90 188273
Distance: internal 90 external 170
R1#

R2 Configuration

Router>enable
Router#configure terminal

Device Name and Particular interface Configuration


Router(config)#hostname R2
R2(config)#interface Serial2/0
R2(config-if)#no shutdown
R2(config-if)#no clock rate
This command applies only to DCE interfaces
R2(config-if)#ip address 11.1.1.2 255.255.255.252
R2(config-if)#exit

R2(config)#interface Serial3/0
R2(config-if)#no shutdown
R2(config-if)#clock rate 72000
R2(config-if)#ip address 11.1.1.5 255.255.255.252
R2(config-if)#exit
EIGRP Protocol Configuration Command

R2(config)#router eigrp 10
R2(config-router)#network 11.1.1.0 0.0.0.3
R2(config-router)#network 11.1.1.4 0.0.0.3
R2(config-router)#

Save the running Configuration file to NVRAM

R2#copy running-config startup-config


Destination filename [startup-config]?
Building configuration...
[OK]

Verify the EIGRP Routing on the Routing Table

R2#show ip route
R2#show ip protocols

R3 Configuration
Router>enable
Router#configure terminal

Device Name and Particular interface Configuration


Router(config)#hostname R3
R3(config)#interface FastEthernet0/0
R3(config-if)#no shutdown
R3(config-if)#ip address 192.168.3.10 255.255.255.0
R3(config-if)#exit

R3(config)#interface FastEthernet1/0
R3(config-if)#no shutdown
R3(config-if)#ip address 192.168.4.10 255.255.255.0
R3(config-if)#exit
R3(config)#interface Serial3/0
R3(config-if)#no shutdown
R3(config-if)#no clock rate
This command applies only to DCE interfaces
R3(config-if)#ip address 11.1.1.6 255.255.255.252
R3(config-if)#exit

EIGRP Protocol Configuration Command

R3(config)#router eigrp 10
R3(config-router)#network 192.168.3.0 0.0.0.255
R3(config-router)#network 192.168.4.0 0.0.0.255
R3(config-router)#network 11.1.1.4 0.0.0.3
R3(config-router)#

Save the running Configuration file to NVRAM

R3#copy running-config startup-config


Destination filename [startup-config]?
Building configuration...
[OK]
R3#

Verify the EIGRP Routing on the Routing Table

R3#show ip route
R3#show ip protocols
OSPF CONFIGURATION

Block Diagram

Device Configuration

DEVICE INTERFACE IP ADDRESS SUBNET MASK GATEWAY


PC1 Fast Ethernet 192.168.1.1 255.255.255.0 192.168.1.10
PC2 Fast Ethernet 192.168.1.2 255.255.255.0 192.168.1.10
PC3 Fast Ethernet 192.168.2.1 255.255.255.0 192.168.2.10
PC4 Fast Ethernet 192.168.3.1 255.255.255.0 192.168.3.10
PC5 Fast Ethernet 192.168.4.1 255.255.255.0 192.168.4.10
PC6 Fast Ethernet 192.168.4.2 255.255.255.0 192.168.4.10
Fast Ethernet0/0 192.168.1.10 255.255.255.0 N/A
R1 Fast Ethernet1/0 192.168.2.10 255.255.255.0 N/A
Serial 2/0 11.1.1.1 255.255.255.252 N/A
Serial 2/0 11.1.1.2 255.255.255.252 N/A
R2
Serial 3/0 11.1.1.5 255.255.255.252 N/A
Fast Ethernet0/0 192.168.3.10 255.255.255.0 N/A
R3 Fast Ethernet1/0 192.168.4.10 255.255.255.0 N/A
Serial 3/0 11.1.1.6 255.255.255.252 N/A
R1 Configuration
Router>enable
Router# configure terminal

Device Name and Particular interface Configuration

Router(config)#hostname R1
R1(config)#interface FastEthernet0/0
R1(config-if)#no shutdown
R1(config-if)#ip address 192.168.1.10 255.255.255.0
R1(config-if)#exit

R1(config)#interface FastEthernet1/0
R1(config-if)#no shutdown
R1(config-if)#ip address 192.168.2.10 255.255.255.0
R1(config-if)#exit

R1(config)#interface Serial2/0
R1(config-if)#no shutdown
R1(config-if)#clock rate 72000
R1(config-if)#ip address 11.1.1.1 255.255.255.252
R1(config-if)#

OSPF Protocol Configuration Command


R1(config)#router ospf ?
<1-65535> Process ID
R1(config)#router ospf 7

R1(config-router)#network ?
A.B.C.D Network number

R1(config-router)#network 192.168.1.0 ?
A.B.C.D OSPF wild card bits
R1(config-router)#network 192.168.1.0 0.0.0.255 ?
area Set the OSPF area ID

R1(config-router)#network 192.168.1.0 0.0.0.255 area ?


<0-4294967295> OSPF area ID as a decimal value
A.B.C.D OSPF area ID in IP address format

R1(config-router)#network 192.168.1.0 0.0.0.255 area 7


R1(config-router)#network 192.168.2.0 0.0.0.255 area 7
R1(config-router)#network 11.1.1.0 0.0.0.3 area 7
R1(config-router)#

Save the running Configuration file to NVRAM


R1#copy running-config startup-config
Destination filename [startup-config]?
Building configuration...
[OK]
R1#

Verify the OSPF Routing on the Routing Table

R1#show ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
* - candidate default, U - per-user static route, o - ODR
P - periodic downloaded static route

Gateway of last resort is not set


11.0.0.0/30 is subnetted, 2 subnets
C 11.1.1.0 is directly connected, Serial2/0
O 11.1.1.4 [110/128] via 11.1.1.2, 00:04:41, Serial2/0
C 192.168.1.0/24 is directly connected, FastEthernet0/0
C 192.168.2.0/24 is directly connected, FastEthernet1/0
O 192.168.3.0/24 [110/129] via 11.1.1.2, 00:03:36, Serial2/0
O 192.168.4.0/24 [110/129] via 11.1.1.2, 00:03:36, Serial2/0
R1#
R1#show ip protocols
Routing Protocol is "ospf 7"
Outgoing update filter list for all interfaces is not set
Incoming update filter list for all interfaces is not set
Router ID 192.168.2.10
Number of areas in this router is 1. 1 normal 0 stub 0 nssa
Maximum path: 4
Routing for Networks:
192.168.1.0 0.0.0.255 area 7
192.168.2.0 0.0.0.255 area 7
11.1.1.0 0.0.0.3 area 7
Routing Information Sources:
Gateway Distance Last Update
11.1.1.5 110 00:05:18
192.168.2.10 110 00:06:30
192.168.4.10 110 00:05:18
Distance: (default is 110)
R1#

R2 Configuration
Router>enable
Router#configure terminal

Device Name and Particular interface Configuration

Router(config)#hostname R2
R2(config)#interface Serial2/0
R2(config-if)#no shutdown
R2(config-if)#no clock rate
This command applies only to DCE interfaces
R2(config-if)#ip address 11.1.1.2 255.255.255.252
R2(config-if)#exit

R2(config)#interface Serial3/0
R2(config-if)#no shutdown
R2(config-if)#clock rate 72000
R2(config-if)#ip address 11.1.1.5 255.255.255.252
R2(config-if)#exit
OSPF Protocol Configuration Command
R2(config)#router ospf 7
R2(config-router)#network 11.1.1.0 0.0.0.3 area 7
R2(config-router)#network 11.1.1.4 0.0.0.3 area 7
R2(config-router)#

Save the running Configuration file to NVRAM


R2#copy running-config startup-config
Destination filename [startup-config]?
Building configuration...
[OK]

Verify the OSPF Routing on the Routing Table


R2#show ip route
R2#show ip protocols

R3 Configuration
Router>enable
Router#configure terminal

Device Name and Particular interface Configuration

Router(config)#hostname R3
R3(config)#interface FastEthernet0/0
R3(config-if)#no shutdown
R3(config-if)#ip address 192.168.3.10 255.255.255.0
R3(config-if)#exit

R3(config)#interface FastEthernet1/0
R3(config-if)#no shutdown
R3(config-if)#ip address 192.168.4.10 255.255.255.0
R3(config-if)#exit
R3(config)#interface Serial3/0
R3(config-if)#no shutdown
R3(config-if)#no clock rate
This command applies only to DCE interfaces
R3(config-if)#ip address 11.1.1.6 255.255.255.252
R3(config-if)#exit

OSPF Protocol Configuration Command

R3(config)#router ospf 7
R3(config-router)#network 192.168.3.0 0.0.0.255 area 7
R3(config-router)#network 192.168.4.0 0.0.0.255 area 7
R3(config-router)#network 11.1.1.4 0.0.0.3 area 7
R3(config-router)#

Save the running Configuration file to NVRAM


R3#copy running-config startup-config
Destination filename [startup-config]?
Building configuration...
[OK]
R3#

Verify the OSPF Routing on the Routing Table


R3#show ip route
R3#show ip protocols
VLSM USING CIDR

Block Diagram

Device Configuration

DEVICE INTERFACE IP ADDRESS SUBNET MASK GATEWAY

PC0 Fast Ethernet 10.3.1.2 255.255.255.0 10.3.1.1


PC1 Fast Ethernet 10.4.1.2 255.255.255.0 10.4.1.1
PC2 Fast Ethernet 10.5.1.2 255.255.255.0 10.5.1.1
PC3 Fast Ethernet 10.6.1.2 255.255.255.0 10.6.1.1
Fast Ethernet0/0 10.3.1.1 255.255.255.0 N/A
R1
Serial 2/0 10.1.1.1 255.255.0.0 N/A
Serial 2/0 10.1.1.2 255.255.0.0 N/A
R2
Serial 3/0 10.2.1.1 255.255.0.0 N/A
Fast Ethernet0/0 10.4.1.1 255.255.0.0 N/A
R3 Serial 2/0 10.7.1.1 255.255.255.224 N/A
Serial 3/0 10.2.1.2 255.255.0.0 N/A
Fast Ethernet0/0 10.5.1.1 255.255.255.128 N/A
R4 Serial 2/0 10.7.1.2 255.255.255.224 N/A
Serial 3/0 10.8.1.1 255.255.255.240 N/A
Fast Ethernet0/0 10.6.1.1 255.255.255.192 N/A
R5
Serial 3/0 10.8.1.1 255.255.255.240 N/A
R1 Configuration

Router>enable
Router#configure terminal

Device Name and Particular interface Configuration

Router(config)#hostname R1

R1(config)#interface Serial2/0
R1(config-if)#no shutdown
R1(config-if)#clock rate 125000
R1(config-if)#ip address 10.1.1.1 255.255.0.0
R1(config-if)#exit

R1(config)#interface FastEthernet0/0
R1(config-if)#no shutdown
R1(config-if)#ip address 10.3.1.1 255.255.255.0
R1(config-if)#exit

Routing Protocol (RIP) Configuration

R1(config)#router rip
R1(config- router)#version 2
R1(config- router)#network 10.0.0.0
R1(config- router)#^Z

Save the running configuration files to NVRAM

R1#copy running-config startup-config


Destination filename [startup-config]?
Building configuration...
[OK]
R1#
R2 Configuration

Router>enable
Router#configure terminal

Device Name and Particular interface Configuration

Router(config)#hostname R2

R2(config)#interface Serial2/0
R2(config-if)#no shutdown
R2(config-if)#ip address 10.1.1.2 255.255.0.0
R2(config-if)#exit

R2(config)#interface Serial3/0
R2(config-if)#no shutdown
R2(config-if)#clock rate 125000
R2(config-if)#ip address 10.2.1.1 255.255.0.0
R2(config-if)#

Routing Protocol (RIP) Configuration

R2(config)#Router rip
R2(config-router)#version 2
R2(config- router)#network 10.0.0.0
R2(config- router)#^Z
R2#copy running-config startup-config
R2#

R3 Configuration

Router>enable
Router#configure terminal
Device Name and Particular interface Configuration

Router(config)#hostname R3

R3(config)#interface Serial3/0
R3(config-if)#no shutdown
R3(config-if)#ip address 10.2.1.2 255.255.0.0
R3(config-if)#exit
R3(config)#interface FastEthernet0/0
R3(config-if)#no shutdown
R3(config-if)#ip address 10.4.1.1 255.255.255.0
R3(config-if)#exit

R3(config)#interface Serial2/0
R3(config-if)#no shutdown
R3(config-if)#clock rate 125000
R3(config-if)#ip address 10.7.1.1 255.255.255.224
R3(config-if)#exit

Routing Protocol (RIP) Configuration

R3(config)#router rip
R3(config- router)#version 2
R3(config- router)#network 10.0.0.0
R3(config- router)#^Z
R3#copy running-config startup-config
R3#

R4 Configuration

Router>enable
Router#configure terminal
Device Name and Particular interface Configuration

Router(config)#hostname R4
R4(config)#interface FastEthernet0/0
R4(config-if)#no shutdown
R4(config-if)#ip address 10.5.1.1 255.255.255.128
R4(config-if)#exit

R4(config)#interface Serial2/0
R4(config-if)#no shutdown
R4(config-if)#ip address 10.7.1.2 255.255.255.224
R4(config-if)#exit

R4(config)#interface Serial3/0
R4(config-if)#no shutdown
R4(config-if)#clock rate 125000
R4(config-if)#ip address 10.8.1.1 255.255.255.240
R4(config-if)#exit

Routing Protocol (RIP) Configuration

R4(config)#router rip
R4(config- router)#version 2
R4(config- router)#network 10.0.0.0
R4(config- router)#^Z
R4#copy running-config startup-config
R4#

R5 Configuration

Router>enable
Router#configure terminal
Device Name and Particular interface Configuration
Router(config)#hostname R5

R5(config)#interface FastEthernet0/0
R5(config-if)#no shutdown
R5(config-if)#ip address 10.6.1.1 255.255.255.192
R5(config-if)#exit

R5(config)#interface Serial3/0
R5(config-if)#no shutdown
R5(config-if)#ip address 10.8.1.2 255.255.255.240
R5(config-if)#exit

Routing Protocol (RIP) Configuration


R5(config)#router rip
R5(config- router)#version 2
R5(config- router)#network 10.0.0.0
R5(config- router)#^Z
R5#copy running-config startup-config
R5#

Implementation of CIDR
10.1.1.1/16 00001010 00000001 00000001 00000001

10.2.1.1/16 00001010 00000010 00000001 00000001

10.3.1.1/24 00001010 00000011 00000001 00000001

10.4.1.1/24 00001010 00000100 00000001 00000001

10.5.1.1/25 00001010 00000101 00000001 00000001

10.6.1.1/26 00001010 00000110 00000001 00000001

10.7.1.1/27 00001010 00000111 00000001 00000001

10.8.1.1/28 00001010 00001000 00000001 00000001

Common Bits = 12

Then I use 10.0.0.0/12 and the Subnetmask 255.240.0.0 in EIGRP and OSPF

Suppose I am using RIPv2 protocol then summarized 10.0.0.0 as a network address

Example

R5(config)#router rip
R5(config- router)#version 2
R5(config- router)#network 10.0.0.0
CONNECT DIFFERENT NETWORK USING LAYER 3 SWITCH

Block Diagram

Device Configuration

Step 1

DEVICE IP ADDRESS SUBNET MASK GATEWAY


PC 1 192.168.1.10 255.255.255.0 192.168.1.1
PC 2 192.168.2.10 255.255.255.0 192.168.2.1
PC 3 192.168.3.10 255.255.255.0 192.168.3.1
PC 4 192.168.4.10 255.255.255.0 192.168.4.1
PC 5 192.168.5.10 255.255.255.0 192.168.5.1

Step 2

Select Layer 3 Switch (3560) connect pcs with layer3 switch by using
Straight through cables

PC1 - Fa0/1, PC2 - Fa0/2, PC3 - Fa0/3, PC4 - Fa0/4, PC5 - Fa0/5
Step 3:

Go to CLI of Layer3 switch


Switch>enable

Creating VLAN

Switch#vlan database
Switch(vlan)#vlan 10
Switch(vlan)#vlan 20
Switch(vlan)#vlan 30
Switch(vlan)#vlan 40
Switch(vlan)#vlan 50
Switch(vlan)#exit

Assigning IP Address to the VLAN

Switch#config ter
Switch(config)#interface vlan 10
Switch(config-if)#ip add 192.168.1.1 255.255.255.0
Switch(config-if)#no shutdown
Switch(config-if)#exit

Switch(config)#interface vlan 20
Switch(config-if)#ip add 192.168.2.1 255.255.255.0
Switch(config-if)#no shutdown
Switch(config-if)#exit

Switch(config)#interface vlan 30
Switch(config-if)#ip add 192.168.3.1 255.255.255.0
Switch(config-if)#no shutdown
Switch(config-if)#exit
Switch(config)#interface vlan 40
Switch(config-if)#ip add 192.168.4.1 255.255.255.0
Switch(config-if)#no shutdown
Switch(config-if)#exit

Switch(config)#interface vlan 50
Switch(config-if)#ip add 192.168.5.1 255.255.255.0
Switch(config-if)#no shutdown
Switch(config-if)#exit
Switch(config)#

Step 4
Goto config tab of layer 3 switch click on fast Ethernet fa0/1
Select Access Mode and VLAN 10 in the VLAN Mode

Click on fast Ethernet fa0/2


Select Access Mode and VLAN 20 in the VLAN Mode

Click on fast Ethernet fa0/3


Select Access Mode and VLAN 30 in the VLAN Mode

Click on fast Ethernet fa0/4


Select Access Mode and VLAN 40 in the VLAN Mode

Click on fast Ethernet fa0/5


Select Access Mode and VLAN 50 in the VLAN Mode

Step 5

Send the packet more different networks using layer3 switch.


DIFFERENT ROUTER WITH DIFFERENT VLAN

Block Diagram

Device Configuration

DEVICE INTERFACE IP ADDRESS SUBNET MASK GATEWAY


PC 1 Fast Ethernet 192.168.10.10 255.255.255.0 192.168.10.1
PC 2 Fast Ethernet 192.168.30.10 255.255.255.0 192.168.30.1
Fast Ethernet 192.168.10.1 255.255.255.0 N/A
R1
Serial2/0 192.168.20.1 255.255.255.0 N/A
Fast Ethernet 192.168.30.1 255.255.255.0 N/A
R2
Serial2/0 192.168.20.2 255.255.255.0 N/A

Switch 1 Configuration
Switch>
Switch>enable
Switch#vlan database
Switch(vlan)#vlan 10
Switch(vlan)#exit

Switch#config terminal
Switch(config)#interface fa0/1
Switch(config-if)#switchport mode access
Switch(config-if)#switchport access vlan 10
Switch(config-if)#exit

Switch(config)#interface vlan 10
Switch(config-if)#ip address 192.168.10.2 255.255.255.0
Switch(config-if)#no shutdown
Switch(config-if)#exit

Switch(config)#interface fa0/3
Switch(config-if)#switchport mode access
Switch(config-if)#switchport access vlan 10
Switch(config-if)#exit

Switch(config)#interface fa0/2
Switch(config-if)#switchport mode trunk
Switch(config-if)#no shutdown
Switch(config-if)#

Switch 3 Configuration

Switch>enable
Switch#vlan database
Switch(vlan)#vlan 30
Switch(vlan)#exit

Switch#configure terminal
Switch(config)#interface FastEthernet0/1
Switch(config-if)#switchport access vlan 30
Switch(config-if)#switchport mode access
Switch(config-if)#exit

Switch(config)#interface vlan 30
Switch(config-if)#ip address 192.168.30.2 255.255.255.0
Switch(config-if)#no shutdown
Switch(config-if)#exit

Switch(config)#interface FastEthernet0/2
Switch(config-if)#switchport mode trunk
Switch(config-if)#exit

Switch(config)#interface FastEthernet0/3
Switch(config-if)#switchport mode access
Switch(config-if)#switchport access vlan 30
Switch(config-if)#

Router 1Configuration

Router>enable
Router#configure terminal

Router(config)#interface Serial2/0
Router(config-if)#clock rate 64000
Router(config-if)#ip address 192.168.20.1 255.255.255.0
Router(config-if)#exit

Router(config)#interface FastEthernet0/0
Router(config-if)#no shutdown
Router(config-if)#ip address 192.168.10.1 255.255.255.0
Router(config-if)#
Router 2 Configuration

Router>enable
Router#configure terminal

Router(config)#interface Serial2/0
Router(config-if)#clock rate 64000
Router(config-if)#ip address 192.168.20.2 255.255.255.0
Router(config-if)#exit

Router(config)#interface FastEthernet0/0
Router(config-if)#no shutdown
Router(config-if)#ip address 192.168.30.1 255.255.255.0
Router(config-if)#
VLAN TRUNKING PROTOCOL

VTP
VTP allows a network manager to configure a switch so that it will propagate VLAN
configurations to other switches in the network.
The switch can be configured in the role of a
VTP server
VTP client
VTP only learns about normal-range VLANs (VLAN IDs 1 to 1005).
Extended-range VLANs (IDs greater than 1005) are not supported by VTP.

S1 Configuration

Check the VTP Status


S1#show vtp status
VTP Version :2
Configuration Revision :0
Maximum VLANs supported locally : 255
Number of existing VLANs :5
VTP Operating Mode : Server
S1#config terminal
Creating VLAN
S1(config)#vlan 10
S1(config-vlan)#name admin

S1(config-vlan)#vlan 20
S1(config-vlan)#name staff
S1(config-vlan)#exit

S1(config)#interface FastEthernet0/1
S1(config-if)#switchport mode trunk

S1(config)#interface FastEthernet1/1
S1(config-if)#switchport mode trunk

S2 Configuration

S2#configure terminal
S2(config)#vtp mode client
Setting device to VTP CLIENT mode.

S2(config)#interface FastEthernet0/1
S2(config-if)#switchport mode trunk

Check the VLAN Database


S2#show vlan
VLAN Name Status Ports
---- -------------------------------- --------- ---------------------------------------------
1 default active Fa1/1, Fa2/1, Fa3/1, Fa4/1 Fa5/1
10 admin active
20 staff active
1002 fddi-default act/unsup
1003 token-ring-default act/unsup
1004 fddinet-default act/unsup
1005 trnet-default act/unsup
Assign the VLAN to Particular Interface

S2#configure terminal
S2(config)#interface FastEthernet1/1
S2(config-if)#switchport mode access
S2(config-if)#switchport access vlan 10
S2(config-if)#exit

S2(config)#interface FastEthernet2/1
S2(config-if)#switchport mode access
S2(config-if)#switchport access vlan 20
S2(config-if)#

S3 Configuration
S3>enable

Check the VLAN Database

S3#show vlan
VLAN Name Status Ports
---- -------------------------------- --------- -------------------------------
1 default active Fa0/1, Fa1/1, Fa2/1, Fa3/1,Fa4/1, Fa5/1
1002 fddi-default act/unsup
1003 token-ring-default act/unsup
1004 fddinet-default act/unsup
1005 trnet-default act/unsup

S3#configure terminal
S3(config)#interface FastEthernet1/1
S3(config-if)#switchport mode trunk
S3(config-if)#^z
Check the VLAN Database

S3#show vlan
VLAN Name Status Ports
---- -------------------------------- --------- -------------------------------
1 default active Fa0/1, Fa2/1, Fa3/1, Fa4/1, Fa5/1
10 admin active
20 staff active
1002 fddi-default act/unsup
1003 token-ring-default act/unsup
1004 fddinet-default act/unsup
1005 trnet-default act/unsup

Assign the VLAN to Particular Interface

S3#configure terminal
S3(config)#interface FastEthernet0/1
S3(config-if)#switchport mode access
S3(config-if)#switchport access vlan 10
S3(config-if)#exit

S3(config)#interface FastEthernet2/1
S3(config-if)#switchport mode access
S3(config-if)#switchport access vlan 20
S3(config-if)#
CONFIGURING STATIC VLAN

Topology Diagram

Objectives
To create a basic configuration on a router.
To establish an Static-VLAN communication using 802.1q trunk line.

Switch Configuration Commands

Step 1
Switch>enable
Creating VLAN Database
Switch# vlan database
Switch(vlan)#vlan 10 name CS-Block
Switch(vlan)# vlan 20 name IT-Block
Switch(vlan)# vlan 30 name MCA-Block
Step 2
Assigning VLAN to the Particular Interface

Switch(config)# interface fastethernet 0/1


Switch(config-if)# switchport mode access
Switch(config-if)# switchport access vlan 10

Switch(config)# interface fastethernet 0/2


Switch(config-if)# switchport mode access
Switch(config-if)# switchport access vlan 10

Switch(config)# interface fastethernet 0/3


Switch(config-if)# switchport mode access
Switch(config-if)# switchport access vlan 10

Switch(config)# interface fastethernet 0/4


Switch(config-if)# switchport mode access
Switch(config-if)# switchport access vlan 20

Switch(config)# interface fastethernet 0/5


Switch(config-if)# switchport mode access
Switch(config-if)# switchport access vlan 20

Switch(config)# interface fastethernet 0/6


Switch(config-if)# switchport mode access
Switch(config-if)# switchport access vlan 20

Switch(config)# interface fastethernet 0/7


Switch(config-if)# switchport mode access
Switch(config-if)# switchport access vlan 30

Switch(config)# interface fastethernet 0/8


Switch(config-if)# switchport mode access
Switch(config-if)# switchport access vlan 30
Switch(config)# interface fastethernet 0/9
Switch(config-if)# switchport mode access
Switch(config-if)# switchport access vlan 30

To view the VLAN and associated interface

Switch# show vlan


Switch# show vlan brief
Switch# show vlan (vlan ID)
Switch# show vlan database (Not supported by 2950)

Configuring trunk links in switches

Switch(config)# interface fastethernet 0/24


Switch(config-if)# switchport mode trunk
Switch(config-if)# switchport trunk allowed vlan all
Switch(config-if)# no shutdown
Switch(config-if)# duplex full

Router Configuration Commands

Router> enable
Router# config terminal
Router(config)# interface fastethernet 0/1
Router(config-if)# duplex full
Router(config-if)# no ip address
Router(config-if)# exit

Sub-Interface Configuration to the Router

Router(config)# interface fastethernet 0/0.1


Router(config-subinterface)# encapsulation dot1q vlan 10
Router(config-subinterface)# ip address 192.168.9.1 255.255.255.240
Router(config-subinterface)# exit
Router(config)# interface fastethernet 0/0.2
Router(config-subinterface)# encapsulation dot1q vlan 20
Router(config-subinterface)# ip address 192.168.9.17 255.255.255.240
Router(config-subinterface)# exit

Router(config)# interface fastethernet 0/0.3


Router(config-subinterface)# encapsulation dot1q vlan 30
Router(config-subinterface)# ip address 192.168.9.33 255.255.255.240
Router(config-subinterface)# exit

Assigning Gateway

Gateway for VLAN 10 --> 192.168.9.1


Gateway for VLAN 20 --> 192.168.9.17
Gateway for VLAN 30 --> 192.168.9.33

Verify the VLAN Database

Switch#show vlan
VLAN Name Status Ports
---- -------------------------------- --------- -------------------------------
1 default active Fa0/10, Fa0/11, Fa0/12, Fa0/13
Fa0/14, Fa0/15, Fa0/16, Fa0/17
Fa0/18, Fa0/19, Fa0/20, Fa0/21
Fa0/22, Fa0/23, Fa0/24
10 CS-Block active Fa0/1, Fa0/2, Fa0/3
20 IT-Block active Fa0/4, Fa0/5, Fa0/6
30 MCA-Block active Fa0/7, Fa0/8, Fa0/9
1002 fddi-default active
1003 token-ring-default active
1004 fddinet-default active
1005 trnet-default active
CONFIGURING INTER-VLAN ROUTING

Topology Diagram

Objectives

To create multiple VLANs and assign Multiple member ports to them.


To create a basic configuration on a router.
To establish an Inter-VLAN communication using 802.1q trunk line.

SWITCH NAME VLAN NUMBER SWITCH PORT ASSIGNMENTS


Switch 1 VLAN 2 Fa0/1(Access Port)
VLAN 3 Fa0/2(Access Port)
Fa0/24(Access Port)
Switch 1 Configuration

Switch> Enable

Creating VLAN using VLAN Database Command

Switch# vlan database


Switch(vlan)# vlan 10
Switch(vlan)# vlan 20
Switch# Configure terminal

Assigning VLAN to particular Interface

Switch(config)# interface fastethernet 0/1


Switch(config-if)#switchport mode access
Switch(config-if)# switchport access vlan 2

Switch(config)# interface fastethernet 0/2


Switch(config-if)#switchport mode access
Switch(config-if)# switchport access vlan 3

Switch(config)# interface fastethernet 0/24


Switch(config-if)#switchport mode trunk
Switch(config-if)# end

Configuring the Routers Sub Interfaces for Inter VLAN communication

Router>Enable

Router# config terminal

Router(config)# interface fastethernet 0/0

Router(config-if)# no shutdown
Creating Sub-Interface

Router(config-if)# interface fastethernet 0/0.1


Router(config-subif)# encapsulation dot1q 2
Router(config-subif)# ip add 192.168.10.1 255.255.255.0
Router(config-subif)#exit

Router(config-if)# interface fastethernet 0/0.2


Router(config-subif)# encapsulation dot1q 2
Router(config-subif)# ip add 192.168.20.1 255.255.255.0
Router(config-subif)#exit
PPP Encapsulation with PAP Authentication

Block Diagram

Device Configuration

Device Interface IP Address Subnet Mask Gateway


PC1 Fast Ethernet 192.168.10.10 255.255.255.0 192.168.10.1
PC2 Fast Ethernet 192.168.20.10 255.255.255.0 192.168.20.1
Fast Ethernet0/0 192.168.10.1 255.255.255.0 N/A
R1
Serial 2/0 10.1.1.1 255.255.255.252 N/A
Fast Ethernet0/0 192.168.20.1 255.255.255.0 N/A
R2
Serial 2/0 10.1.1.2 255.255.255.252 N/A

R1 Configuration

Router>enable
Router#configure terminal
Device Name and Particular interface Configuration

Router(config)#hostname R1

R1(config)#interface FastEthernet0/0
R1(config-if)#no shutdown
R1(config-if)# ip address 192.168.10.1 255.255.255.0

R1(config)#interface serial 2/0


R1(config-if)#no shutdown
R1(config-if)#ip address 10.1.1.1 255.255.255.252
R1(config-if)#clock rate 9600
R1(config-if)#exit

Routing Protocol (RIP) Configuration

R1(config)#router rip
R1(config-router)#version 2
R1(config-router)#network 192.168.10.0
R1(config-router)#network 10.1.1.0
R1(config-router)#^Z

View the Serial Interface Encapsulation Process

R1#show interfaces serial 2/0


Serial2/0 is up, line protocol is up (connected)
Hardware is HD64570
Encapsulation HDLC, loopback not set, keepalive set (10 sec)
Last input never, output never, output hang never
Configure the Point to Point Protocol

R1#config t
R1(config)#interface serial 2/0
R1(config-if)#encapsulation ppp
R1(config-if)#^Z
R1#

Verify the Configuration of PPP

R1#show interfaces serial 2/0


Serial2/0 is up, line protocol is up (connected)
Hardware is HD64570
Encapsulation PPP, loopback not set, keepalive set (10 sec)
LCP Open
Open: IPCP, CDPCP

Configuring PAP Authentication

R1#config t
R1(config)#username R1 password cisco
R1(config)#interface serial 2/0
R1(config-if)#ppp authentication pap
R1(config-if)#ppp pap sent-username R2 password cisco
R1(config-if)#end

R2 Configuration

Router>enable
Router#configure terminal

Device Name and Particular interface Configuration

Router(config)#hostname R2
R2(config)#interface FastEthernet0/0
R2(config-if)#no shutdown
R2(config-if)# ip address 192.168.20.1 255.255.255.0

R2(config)#interface serial 2/0


R2(config-if)#no shutdown
R2(config-if)#ip address 10.1.1.2 255.255.255.252
R2(config-if)#exit

Routing Protocol (RIP) Configuration

R2(config)#router rip
R2(config-router)#version 2
R2(config-router)#network 192.168.20.0
R2(config-router)#network 10.0.0.0
R2(config-router)#^Z

View the Serial Interface Encapsulation Process

R2#show interfaces serial 2/0


Serial2/0 is up, line protocol is up (connected)
Hardware is HD64570
Encapsulation HDLC, loopback not set, keepalive set (10 sec)
Last input never, output never, output hang never

Configure the Point to Point Protocol

R2#config t
R2(config)#interface serial 2/0
R2(config-if)#encapsulation ppp
R2(config-if)#^Z
R2#
Verify the Configuration of PPP

R2#show interfaces serial 2/0


Serial2/0 is up, line protocol is up (connected)
Hardware is HD64570
Encapsulation PPP, loopback not set, keepalive set (10 sec)
LCP Open
Open: IPCP, CDPCP

Configuring PAP Authentication

R2#config t
R2(config)#username R1 password cisco
R2(config)#interface serial 2/0
R2(config-if)#ppp authentication pap
R2(config-if)#ppp pap sent-username R1 password cisco
R2(config-if)#end
FRAME RELAY USING SUB INTERFACE

Block Diagram

Device Configuration

R1 Configuration

Router>enable
Router#configure terminal
Router(config)#hostname R1
R1(config)#interface FastEthernet0/0
R1(config-if)#no shutdown
R1(config-if)#ip address 200.1.1.10 255.255.255.0
R1(config-if)#exit

Frame-Relay Configuration

R1(config)#interface Serial2/0
R1(config-if)#no shutdown
R1(config-if)#clock rate 125000
R1(config-if)#encapsulation frame-relay

Creating Sub Interface

R1(config)#interface serial 2/0.102 point-to-point


R1(config-subif)#bandwidth 128
R1(config-subif)#frame-relay interface-dlci 102
R1(config-subif)#ip address 200.1.4.1 255.255.255.252
R1(config-subif)#no shu
R1(config-subif)#exit

R1(config)#interface serial 2/0.103 point-to-point


R1(config-subif)#no sh
R1(config-subif)#frame-relay interface-dlci 103
R1(config-subif)#ip address 200.1.4.9 255.255.255.252
R1(config-subif)#exit

Routing Protocol Configuration

R1(config)#router rip
R1(config-router)#network 200.1.1.0
R1(config-router)#network 200.1.4.0
R1(config-router)#^Z
Save the Configuration file to NVRAM

R1#copy running-config startup-config


R1#

R2 Configuration

Router>enable
Router#configure terminal
Router(config)#hostname R2

R2(config)#interface FastEthernet0/0
R2(config-if)#no shutdown
R2(config-if)#ip address 200.1.2.10 255.255.255.0
R2(config-if)#exit

R2(config)#interface serial 2/0


R2(config-if)#no shut
R2(config-if)#encapsulation frame-relay
R2(config-if)#exit

R2(config)#interface serial 2/0.201 point-to-point


R2(config-subif)#no shu
R2(config-subif)#frame-relay interface-dlci 201
R2(config-subif)#ip address 200.1.4.2 255.255.255.252
R2(config-subif)#exit

R2(config)#interface serial 2/0.203 point-to-point


R2(config-subif)#no shu
R2(config-subif)#frame-relay interface-dlci 203
R2(config-subif)#ip address 200.1.4.5 255.255.255.252
R2(config-subif)#exit
R2(config)#router rip
R2(config-router)#network 200.1.4.0
R2(config-router)#network 200.1.2.0
R2(config-router)#^Z
R2#copy running-config startup-config
R2#

R3 Configuration

Router>enable
Router#configure terminal
Router(config)#hostname R3

R3(config)#R3(config)#interface FastEthernet0/0
R3(config-if)#no shutdown
R3(config-if)#ip address 200.1.3.10 255.255.255.0
R3(config-if)#exit

Frame-Relay Configuration

R3(config)#interface Serial3/0
R3(config-if)#no shutdown
R3(config-if)#encapsulation frame-relay
R3(config-if)#exit

Creating Sub Interface

R3(config)#interface serial 3/0.301 point-to-point


R3(config-subif)#no shu
R3(config-subif)#frame-relay interface-dlci 301
R3(config-subif)#ip address 200.1.4.10 255.255.255.252
R3(config-subif)#exit
R3(config)#interface serial 3/0.302 point-to-point
R3(config-subif)#no shu
R3(config-subif)#frame-relay interface-dlci 302
R3(config-subif)#ip address 200.1.4.6 255.255.255.252
R3(config-subif)#exit

Routing Protocol Configuration

R3(config)#router rip
R3(config-router)#network 200.1.4.0
R3(config-router)#network 200.1.3.0
R3(config-router)#^Z
R3#copy running-config startup-config
R3#

Frame Relay Device Configuration


Serial Port 1 Configuration
Serial Port 2 Configuration

Serial Port 3 Configuration


Frame Relay Mapping
DHCP, DNS, ACL AND NAT

TASKS

DHCP Server Configuration


DHCP Helper Address
DNS Service Configuration
ACL Configuration
NAT Configuration

Block Diagram

Device Configuration

IP SUBNET
DEVICE INTERFACE IP GATEWAY
ADDRESS MASK DNS
ALLOCATION
PC1 Fast Ethernet DHCP 192.168.1.0/24 255.255.255.0 192.168.1.25 200.200.200.200
PC2 Fast Ethernet DHCP 192.168.1.0/24 255.255.255.0 192.168.1.25 200.200.200.200
PC3 Fast Ethernet DHCP 192.168.4.0/24 255.255.255.0 192.168.4.100 200.200.200.200
PC4 Fast Ethernet DHCP 192.168.4.0/24 255.255.255.0 192.168.4.100 200.200.200.200
PC5 Fast Ethernet DHCP 192.168.5.0/24 255.255.255.0 192.168.5.100 200.200.200.200
PC6 Fast Ethernet DHCP 192.168.5.0/24 255.255.255.0 192.168.5.100 200.200.200.200
Fast Ethernet0/0 Static 192.168.1.25 255.255.255.0 N/A N/A
R1 Fast Ethernet1/0 Static 200.200.200.1 255.255.255.0 N/A N/A
Serial 2/0 Static 10.1.1.1 255.0.0.0 N/A N/A
Fast Ethernet0/0 Static 192.168.4.100 255.255.255.0 N/A N/A
R2
Serial 2/0 Static 192.168.5.100 255.255.255.0 N/A N/A
DHCP
Fast Ethernet Static 192.168.1.100 255.255.255.0 192.168.1.25 N/A
Server
DNS
Fast Ethernet Static 200.200.200.200 255.255.255.0 200.200.200.1 N/A
Server
Google
Fast Ethernet Static 200.200.200.10 255.255.255.0 200.200.200.1 N/A
Server
SThome
Fast Ethernet Static 200.200.200.20 255.255.255.0 200.200.200.1 N/A
Server
SRKV
Fast Ethernet Static 200.200.200.30 255.255.255.0 200.200.200.1 N/A
Server

R1 Configuration
Router>enable
Router#configure terminal

Device Name and Particular interface Configuration


Router(config)#hostname R1
R1(config)#interface FastEthernet0/0
R1(config-if)#no shutdown
R1(config-if)#ip address 192.168.1.25 255.255.255.0
R1(config-if)#exit

R1(config)#interface Serial2/0
R1(config-if)#no shutdown
R1(config-if)#clock rate 125000
R1(config-if)#ip address 10.1.1.1 255.0.0.0
R1(config-if)#exit

R1(config)#interface FastEthernet1/0
R1(config-if)#no shutdown
R1(config-if)#ip address 200.200.200.1 255.255.255.0
R1(config-if)#exit

Routing Protocol (RIP) Configuration

R1(config)#router rip
R1(config-router)#network 192.168.1.0
R1(config-router)#network 10.0.0.0
R1(config-router)#network 200.200.200.0
R1(config-router)#exit
Extended ACL Configuration

R1(config)#access-list 105 deny tcp 192.168.4.0 0.0.0.255 host 200.200.200.10 eq www


R1(config)#access-list 105 deny tcp 192.168.4.0 0.0.0.255 host 200.200.200.20 eq www
R1(config)#access-list 105 deny tcp 192.168.4.0 0.0.0.255 host 200.200.200.30 eq www
R1(config)#access-list 105 permit ip any any

Applying ACL to the Particular Interface

R1(config)#interface fastEthernet 1/0


R1(config-if)#ip access-group 105 out
R1(config-if)#exit

Static NAT Configuration

R1(config)#ip nat inside source static 192.168.4.13 50.50.50.50

Applying NAT Translation to the Particular Interface

R1(config)#interface serial 2/0


R1(config-if)#ip nat inside
R1(config-if)#exit

R1(config)#interface fastEthernet 1/0


R1(config-if)#ip nat outside
R1(config-if)#

R2 Configuration

Router>enable
Router#configure terminal
Device Name and Particular interface Configuration

Router(config)#hostname R2

R2(config)#interface FastEthernet0/0
R2(config-if)#no shutdown
R2(config-if)#ip address 192.168.4.100 255.255.255.0
R2(config-if)#exit

R2(config)#interface FastEthernet1/0
R2(config-if)#no shutdown
R2(config-if)#ip address 192.168.5.100 255.255.255.0
2(config-if)#exit

R2(config)#interface Serial2/0
R2(config-if)#no shutdown
R2(config-if)#ip address 10.1.1.2 255.0.0.0
R2(config-if)#exit

Routing Protocol (RIP) Configuration


R2(config)#router rip
R2(config-router)#network 192.168.4.0
R2(config-router)#network 192.168.5.0
R2(config-router)#network 10.0.0.0
R2(config-router)#exit

DHCP Relay (Helper Address) Configuration


R2(config)#interface fastEthernet 0/0
R2(config-if)#ip helper-address 192.168.1.100
R2(config-if)#exit

R2(config)#interface FastEthernet1/0
R2(config-if)#ip helper-address 192.168.1.100
R2(config-if)#exit
DHCP Server Configuration

DNS Server Configuration


HTTP Server Configuration

HTTP Service Denied to the 192.168.4.0/24 Network


HTTP Service Allowed to the 192.168.1.0/24 Network

HTTP Service Allowed to the 192.168.5.0/24 Network


HTTP Service Allowed to the 192.168.5.0/24 Network
DYNAMIC NAT USING OVERLOAD CONCEPT (PAT)

Block Diagram

Device Configuration

R1 Configuration
Router>enable
Router#configure terminal
Device Name and Particular interface Configuration

Router(config)#hostname R1

R1(config)#interface FastEthernet0/0
R1(config-if)#no shutdown
R1(config-if)#ip address 192.168.1.10 255.255.255.0
R1(config-if)#exit

R1(config)#interface FastEthernet1/0
R1(config-if)#no shutdown
R1(config-if)#ip address 192.168.2.10 255.255.255.0
R1(config-if)#exit

R1(config)#interface Serial2/0
R1(config-if)#no shutdown
R1(config-if)#clock rate 72000
R1(config-if)#ip address 10.1.1.1 255.0.0.0
R1(config-if)#exit

Routing Protocol (RIP) Configuration

R1(config)#router rip
R1(config-router)#network 192.168.1.0
R1(config-router)#network 192.168.2.0
R1(config-router)#network 10.0.0.0
R1(config-router)#end

R2 Configuration

Router>enable
Router#configure terminal
Device Name and Particular interface Configuration

Router(config)#hostname R2
R2(config)#interface Serial2/0
R2(config-if)#no shutdown
R2(config-if)#ip address 10.1.1.2 255.0.0.0
R2(config-if)#exit

R2(config)#interface FastEthernet0/0
R2(config-if)#no shutdown
R2(config-if)#ip address 100.100.100.1 255.0.0.0
R2(config-if)#exit

Routing Protocol (RIP) Configuration

R2(config)#router rip
R2(config-router)#network 100.0.0.0
R2(config-router)#network 10.0.0.0
R2(config-router)#exit

Standard ACL Configuration


R2(config)#access-list 2 permit 192.168.0.0 0.0.255.255

PAT Configuration

R2(config)#ip nat pool STHOME 211.211.211.1 211.211.211.2 netmask


255.255.255.252
R2(config)#ip nat inside source list 2 pool STHOME overload

Applying NAT Translation to the Particular Interface

R2(config)#interface serial 2/0


R2(config-if)#ip nat inside
R2(config-if)#exit
R2(config)#interface fastEthernet 0/0
R2(config-if)#ip nat outside
R2(config-if)#^Z
R2#

Verify the NAT Translation


R2#show ip nat translations
Pro Inside global Inside local Outside local Outside global
Icmp 211.211.211.1:8 192.168.1.2:8 100.100.100.100:8 100.100.100.100:8
Icmp 211.211.211.1:1024 192.168.1.2:9 100.100.100.100:9 100.100.100.100:1024
Icmp 211.211.211.1:10 192.168.2.1:10 100.100.100.100:10 100.100.100.100:10
icmp 211.211.211.1:9 192.168.2.1:9 100.100.100.100:9 100.100.100.100:9

R2#

NAT Translation Simulation

Sending Data to PC1 to Wikipedia Server

SOURCE DESTINATION

PC1 192.168.1.1 Wikipedia Server 100.100.100.100


Private IP Address (192.168.1.1) Translate to the Public IP Address (211.211.211.1)

S-ar putea să vă placă și