0% found this document useful (0 votes)
9 views7 pages

Static Routing

This document outlines a lab task for configuring static routing between two routers, Router 0 and Router 1, to enable communication between different networks. It includes step-by-step instructions for setting IP addresses, configuring DHCP pools, and verifying routes and connectivity through ping tests. Successful configuration allows devices on different networks to communicate effectively.

Uploaded by

UzumakiGouyo
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views7 pages

Static Routing

This document outlines a lab task for configuring static routing between two routers, Router 0 and Router 1, to enable communication between different networks. It includes step-by-step instructions for setting IP addresses, configuring DHCP pools, and verifying routes and connectivity through ping tests. Successful configuration allows devices on different networks to communicate effectively.

Uploaded by

UzumakiGouyo
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Lab Task: Configuration of Static Routing

In this lab you’ll configure static routing on Router 0 and Router 1 in order
to make communication between devices from different networks possible.
Let’s get started.

Place 2 routers and 2 switches and connect couple of end devices (PC) with
the switches. Connect the devices together

using the ‘Automatically Choose Connection Type’ cable as shown in the


image below.

Step 1: Configure IP Address [Link] on interface fa 0/0 and IP address


[Link] on interface fa 0/1 of Router 0 and IP Address [Link] on
interface fa 0/0 and IP address [Link] on interface fa 0/1 of Router 1

Telegram Channel for Jobs - [Link]


Telegram Group for Discussions - [Link]
LinkedIn for Latest Updates - [Link]
Get into the IOS Command Line Interface of Router0 and say no when asked
if you would like to enter the initial configuration dialog on the Router.

Press Return to get started, then enter the Privileged Exec mode.

Router>enable

Router#

Enter Global Configuration mode.

Router#configure terminal

Enter configuration commands, one per line. End with CNTL/Z.

Router(config)#

Change the hostname to ‘Router_A’.

Router(config)#hostname Router_A

Router_A(config)#

Follow the same steps on Router1 and change the hostname to ‘Router_B’.

Commands to configure IP Addresses on Router0’s interfaces:

Router_A(config)#interface fa 0/0

Router_A(config-if)#ip address [Link] [Link]

Telegram Channel for Jobs - [Link]


Telegram Group for Discussions - [Link]
LinkedIn for Latest Updates - [Link]
Router_A(config-if)#no shutdown

Router_A(config-if)#exit

Router_A(config)#interface fa 0/1

Router_A(config-if)#ip address [Link] [Link]

Router_A(config-if)#no shutdown

Router_A(config-if)#exit

Router_A(config)#

Commands to configure IP Addresses on Router1’s interfaces :

Router_B(config)#interface fa 0/0

Router_B(config-if)#ip address [Link] [Link]

Router_B(config-if)#no shutdown

Router_B(config-if)#exit

Router_B(config)#interface fa 0/1

Router_B(config-if)#ip address [Link] [Link]

Router_B(config-if)#no shutdown

Router_B(config-if)#exit

Configure DHCP pools for network [Link] and [Link] on Router0


and Router1 respectively. Assign IP addresses to the PCs with the help of
DHCP

Telegram Channel for Jobs - [Link]


Telegram Group for Discussions - [Link]
LinkedIn for Latest Updates - [Link]
Verify the routes available there in Router by running ‘show ip route’ in the
Privileged

Exec mode of both of the Routers.

Router_A#show ip route

Codes: L - local, C - connected, S - static, 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

[Link]/24 is variably subnetted, 2 subnets, 2 masks

C [Link]/24 is directly connected, FastEthernet0/0

L [Link]/32 is directly connected, FastEthernet0/0

[Link]/24 is variably subnetted, 2 subnets, 2 masks


Telegram Channel for Jobs - [Link]
Telegram Group for Discussions - [Link]
LinkedIn for Latest Updates - [Link]
C [Link]/24 is directly connected, FastEthernet0/1

L [Link]/32 is directly connected, FastEthernet0/1

Now you’ll configure static route of network [Link] with a next hop
address on Router0 and similarly a staticroute of network [Link] will
be configured on Router1 to make communication between devices
possible.

Go to the Global Configuration mode of Router0 and run the following


command to add the Route to [Link] into the routing table of
Router0:

Router_A(config)#ip route [Link] [Link] [Link]

Now, let’s add the route to [Link] into the routing table of Router1 :

Router_B(config)#ip route [Link] [Link] [Link]

Verify the updates into the Routing Table of Routers.

Router_A#show ip route

[Link]/24 is variably subnetted, 2 subnets, 2 masks

C [Link]/24 is directly connected, FastEthernet0/0

L [Link]/32 is directly connected, FastEthernet0/0

S [Link]/24 [1/0] via [Link]

[Link]/24 is variably subnetted, 2 subnets, 2 masks

C [Link]/24 is directly connected, FastEthernet0/1

L [Link]/32 is directly connected, FastEthernet0/1

We can observe that route to network [Link] is successfully added to


the Routing table of Router0 and [Link] in the routing table of
Router1.

Telegram Channel for Jobs - [Link]


Telegram Group for Discussions - [Link]
LinkedIn for Latest Updates - [Link]
Verify the data transmission between PC0 and PC2 Click on PC0 and open
the Command Prompt.

Ping from PC0 to PC2 should be successful. Go to the Command Prompt and
perform the command ‘ping [Link]’

C:\>ping [Link]

Pinging [Link] with 32 bytes of data:

Reply from [Link]: bytes=32 time=1ms TTL=126

Reply from [Link]: bytes=32 time<1ms TTL=126

Reply from [Link]: bytes=32 time<1ms TTL=126

Telegram Channel for Jobs - [Link]


Telegram Group for Discussions - [Link]
LinkedIn for Latest Updates - [Link]
Reply from [Link]: bytes=32 time<1ms TTL=126

Ping statistics for [Link]:

Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),

Approximate round trip times in milli-seconds:

Minimum = 0ms, Maximum = 1ms, Average = 0ms

As PC0 is getting reply from PC2, this confirms that PCs are able to
communicate with each other. Try pinging from/to the rest of the PCs.

Telegram Channel for Jobs - [Link]


Telegram Group for Discussions - [Link]
LinkedIn for Latest Updates - [Link]

You might also like