You are on page 1of 35

21BEIT30121 Kashish Savaliya

PRACTICAL: 05
AIM :- introduction of router and perform static routing
Overview of Router

A router is a device that forwards data packets between computer networks, creating
an overlay internetwork. A router is connected to two or more data lines from different
networks. When a data packet comes in one of the lines, the router reads the address
information in the packet to determine its ultimate destination. Then, using information in
its routing table or routing policy, it directs the packet to the next network on its journey.
Routers perform the "traffic directing" functions on the Internet. A data packet is typically
forwarded from one router to another through the networks that constitute the internetwork
until it reaches its destination node.

How The Router Works?


Routers are basically designed to show a destination path to the message sent by the
user. It will identify the IP address of the destination and ask for the shortest path to send the
packet as early as possible. Here shortest path means, the path through which the packet
reaches at the destination at the maximum speed.

For this purpose router will ask for the address to another router or network nearer to
it. Suppose it finds the destination address from its nearer router or network, it won’t go for
another path. Now, the packets will travel through the path, which is found in the minimum
time. Now, the work of one router is over and another’s starts. Now, the second router will
ask another router or network for the specific destination address and so on. The procedure
will continue, until the packets reach at its proper destination address. At the destination, the
server will ask for the specific site and will also collect the message for the user if it is there.
Now, the same process in reverse mode will start and finally the user will get his message as
early as possible.

1
21BEIT30121 Kashish Savaliya

1. One Network with two PC and one Switch :- (by simulator: packet tracer)

Step 1: As shown in Figure 1 take two PC and one generic switch from the left
corner panel.
Step 2: connect them with Copper straight cable. You can select automatic option
to connect them with automatically.
Step 3: Click on the PC1 then select Desktop from menu bar and select IP
configuration option to configure the IP of both PC. Configure the IP as shown in
the Figure 2. Configure the IP of one PC as 10.0.0.2 and other is 10.0.0.3 and set
Subnet mask to 255.0.0.0
Step 4: Now both the PC are connected to the switch you can check it through the
command prompt of the packet tracer or by sending packet to source to destination.
To check with command prompt click on any PC then select Desktop menu from
menu bar and select the command prompt option and write
ping <IP address of other PC>

ping 10.0.0.3

2
21BEIT30121 Kashish Savaliya

PC Name IP Address Subnet Mask Default Gateway


PC 0 10.0.0.2 255.0.0.0 10.0.0.1
PC 1 10.0.0.3 255.0.0.0 10.0.0.1

2. Two pc’s with router (by simulator: packet tracer)

Step 1: As shown in Figure 1 put two PC and one generic router.


PC 1 for network 1 and PC 0 network 2.
Step 2: connect both PC’s to router using cable.
Step 3: Set the following IP address, subnet mask and default gateway for each PC as
shown in figure.

3
21BEIT30121 Kashish Savaliya

PC Name IP Address Subnet Mask Default Gateway


PC0 10.0.0.2 255.0.0.0 10.0.0.1
PC1 11.0.0.2 255.0.0.0 11.0.0.1

3. To connect two different networks using two Routers: (static routing)

Perform by simulator (packet tracer)

Figure:1

Step 1: As shown in Figure 1 put six PC, two switches and two generic routers. PC 0, PC 1
and PC 2 for network 1 and , Laptop0 , Laptop1 and Laptop2 for network 2.

Step 2: connect them all (PC and Switch) with Copper straight cable.

Step 3: Connect both switches with Router using fiber optic cable And Connect both Routers using
copper cross over cables.

4
21BEIT30121 Kashish Savaliya

Step 4: Set the following IP address, subnet mask and default gateway for each PC as shown in
Figure 2.

PC Name IP Address Subnet Mask Default Gateway


PC 0 10.10.10.2 255.0.0.0 10.10.10.1
PC 1 10.10.10.3 255.0.0.0 10.10.10.1
PC 2 10.10.10.4 255.0.0.0 10.10.10.1
Laptop1 20.20.20.2 255.0.0.0 20.20.20.1
Laptop2 20.20.20.3 255.0.0.0 20.20.20.1
Laptop3 20.20.20.4 255.0.0.0 20.20.20.1

Figure:2
PC0:

Laptop1:

5
21BEIT30121 Kashish Savaliya

Step 5: Set the Router 0 Gigabit Ethernet IP address in its respective interface IP configuration as
shown in figure 3.

Interface IP Address Subnet Mask


GigabitEthernet 0/0 10.10.10.1 255.0.0.0
GigabtiEthernet 0/1 30.30.30.2 255.0.0.0

6
21BEIT30121 Kashish Savaliya

Step 6: Set the Router 1 Gigabit Ethernet IP address in its respective interface IP configuration as
shown in figure 3.

Interface IP Address Subnet Mask


GigabitEthernet 0/0 20.20.20.1 255.0.0.0
GigabitEthernet 0/1 30.30.30.3 255.0.0.0

7
21BEIT30121 Kashish Savaliya

Step 7: Set the Routing Path. Select static in routing. Then configure the path for the Router 0 as
Shown in the figure below.

8
21BEIT30121 Kashish Savaliya

Step 8: Set the Routing Path. Select static in routing. Then configure the path for the Router 1 as
Shown in the figure below.

Step 9 : To check successful connection , ping one PC/Laptop from both the Networks to their
Respective Gateways.

PC1:

9
21BEIT30121 Kashish Savaliya

Laptop1:

Step 10: The way to check the connection is to send the packet From One PC of One Network to
Another to the PC of other network. Select Add Simple PDU option from right panel of the packet
tracer and set the source and destination of the packet. The following figure gives the idea how the
packet sends from source to destination.

10
21BEIT30121 Kashish Savaliya

- From Network 10.0.0.0 to 20.0.0.0:

- From Network 20.0.0.0 to 10.0.0.0:

11
21BEIT30121 Kashish Savaliya

4. To connect two different networks using three Routers: (static routing)

Perform by simulator (packet tracer)

Figure 1

Step 1: As shown in Figure 1 put six PC three laptops, three switches and three generic routers. PC 0,
PC 1 and PC 2 for network 1 , PC 3, PC 4 and PC 5 for network 3 and Laptop0, Laptop1 and Laptop2
for network 2.
Step 2: connect them all (PC , laptop and Switch) with Copper straight cable.
Step 3: Connect both switches with Router using fiber optic cable And Connect three Routers using
copper cross over cables.
Step 4: Set the following IP address, subnet mask and default gateway for each PC as shown in
Figure 2.

PC Name IP Address Subnet Mask Default Gateway


PC 0 10.0.0.2 255.0.0.0 10.0.0.1
PC 1 10.0.0.3 255.0.0.0 10.0.0.1
PC 2 10.0.0.4 255.0.0.0 10.0.0.1
Laptop1 20.0.0.2 255.0.0.0 20.0.0.1
Laptop2 20.0.0.3 255.0.0.0 20.0.0.1
Laptop3 20.0.0.4 255.0.0.0 20.0.0.1

12
21BEIT30121 Kashish Savaliya

PC 3 30.0.0.2 255.0.0.0 30.0.0.1


PC 4 30.0.0.3 255.0.0.0 30.0.0.1
PC 5 30.0.0.4 255.0.0.0 30.0.0.1

Figure 2

PC0:

Laptop0: Figure3

13
21BEIT30121 Kashish Savaliya

PC3:

Figure 4

Step 5: Set the Router 0 Gigabit Ethernet IP address in its respective interface IP configuration as
shown in figure 5.

Interface IP Address Subnet Mask


GigabitEthernet 0/0 10.0.0.1 255.0.0.0
GigabtiEthernet 0/1 40.0.0.2 255.0.0.0

14
21BEIT30121 Kashish Savaliya

Step 6: Set the Router 1 Gigabit Ethernet IP address in its respective interface IP configuration as
shown in figure 6.

Interface IP Address Subnet Mask


GigabitEthernet 0/0 20.0.0.1 255.0.0.0
GigabitEthernet 0/1 40.0.0.3 255.0.0.0
GigabitEthernet 0/2 50.0.0.2 255.0.0.0

15
21BEIT30121 Kashish Savaliya

Step 7: Set the Router 2 Gigabit Ethernet IP address in its respective interface IP configuration as
shown in figure 7.

Interface IP Address Subnet Mask


GigabitEthernet 0/0 20.0.0.1 255.0.0.0
GigabitEthernet 0/1 40.0.0.3 255.0.0.0
GigabitEthernet 0/2 50.0.0.2 255.0.0.0

Figure 7

Step 8: Set the Routing Path. Select static in routing. Then configure the path for the Router 0 as
Shown in the figure below.

16
21BEIT30121 Kashish Savaliya

Step 9: Set the Routing Path. Select static in routing. Then configure the path for the Router 1 as
Shown in the figure below.

Step 10: Set the Routing Path. Select static in routing. Then configure the path for the Router 2 as
Shown in the figure below.

17
21BEIT30121 Kashish Savaliya

Step 11 : To check successful connection , ping one PC/Laptop from both the Networks to their
Respective Gateways.

PC1:

18
21BEIT30121 Kashish Savaliya

Step 12 : To check successful connection , ping one PC/Laptop from both the Networks to their
Respective Gateways.

Laptop0:

Step 13 : To check successful connection , ping one PC/Laptop from both the Networks to their
Respective Gateways.

PC3:

19
21BEIT30121 Kashish Savaliya

Step 14: The way to check the connection is to send the packet From One PC of One Network to
Another to the PC of other network. Select Add Simple PDU option from right panel of the packet
tracer and set the source and destination of the packet. The following figure gives the idea how the
packet sends from source to destination.
- From Network 10.0.0.0 to 20.0.0.0:

- From Network 10.0.0.0 to 20.0.0.0:

20
21BEIT30121 Kashish Savaliya

- From Network 20.0.0.0 to 10.0.0.0:

- From Network 30.0.0.0 to 10.0.0.0:

21
21BEIT30121 Kashish Savaliya

5. To connect two different networks using four Routers: (static routing)

Perform by simulator (packet tracer)

Step 1: As shown in Figure 1 put six PC three laptops, three switches and three generic routers. PC 0,
PC 1 and PC 2 for network 1 , PC 3, PC 4 and PC 5 for network 3 and Laptop0, Laptop1 and Laptop2
for network 2, Laptop3, Laptop4 and Laptop5 for network 4.
Step 2: connect them all (PC , laptop and Switch) with Copper straight cable.
Step 3: Connect both switches with Router using fiber optic cable And Connect four Routers using
copper cross over cables.
Step 4: Set the following IP address, subnet mask and default gateway for each PC as shown in
Figure .
PC Name IP Address Subnet Mask Default Gateway
PC 0 10.0.0.2 255.0.0.0 10.0.0.1
PC 1 10.0.0.3 255.0.0.0 10.0.0.1
PC 2 10.0.0.4 255.0.0.0 10.0.0.1
Laptop1 20.0.0.2 255.0.0.0 20.0.0.1
Laptop2 20.0.0.3 255.0.0.0 20.0.0.1
Laptop3 20.0.0.4 255.0.0.0 20.0.0.1

22
21BEIT30121 Kashish Savaliya

PC 3 30.0.0.2 255.0.0.0 30.0.0.1


PC 4 30.0.0.3 255.0.0.0 30.0.0.1
PC 5 30.0.0.4 255.0.0.0 30.0.0.1
Laptop3 60.0.0.2 255.0.0.0 60.0.0.1
Laptop4 60.0.0.3 255.0.0.0 60.0.0.1
Laptop5 60.0.0.4 255.0.0.0 60.0.0.1

Figure 2

PC0:

Laptop0:

Figure3

23
21BEIT30121 Kashish Savaliya

PC3:

Figure 4

24
21BEIT30121 Kashish Savaliya

Laptop3:

Step 5: Set the Router 0 Gigabit Ethernet IP address in its respective interface IP configuration as
shown in figure .

Interface IP Address Subnet Mask


GigabitEthernet 0/0 10.0.0.1 255.0.0.0
GigabtiEthernet 0/1 40.0.0.2 255.0.0.0

25
21BEIT30121 Kashish Savaliya

Step 6: Set the Router 1 Gigabit Ethernet IP address in its respective interface IP configuration as
shown in figure .

Interface IP Address Subnet Mask


GigabitEthernet 0/0 20.0.0.1 255.0.0.0
GigabitEthernet 0/1 40.0.0.3 255.0.0.0
GigabitEthernet 0/2 50.0.0.2 255.0.0.0

26
21BEIT30121 Kashish Savaliya

Step 7: Set the Router 2 Gigabit Ethernet IP address in its respective interface IP configuration as
shown in figure .

Interface IP Address Subnet Mask


GigabitEthernet 0/0 30.0.0.1 255.0.0.0
GigabitEthernet 0/1 50.0.0.3 255.0.0.0
GigabitEthernet 0/2 70.0.0.1 255.0.0.0

Step 8: Set the Router 3 Gigabit Ethernet IP address in its respective interface IP configuration as
shown in figure 6.

Interface IP Address Subnet Mask


GigabitEthernet 0/0 60.0.0.1 255.0.0.0
GigabitEthernet 0/1 70.0.0.2 255.0.0.0

27
21BEIT30121 Kashish Savaliya

Step 9: Set the Routing Path. Select static in routing. Then configure the path for the Router 0 as
Shown in the figure below.

28
21BEIT30121 Kashish Savaliya

Step 10: Set the Routing Path. Select static in routing. Then configure the path for the Router 1 as
Shown in the figure below.

Step 11: Set the Routing Path. Select static in routing. Then configure the path for the Router 2 as
Shown in the figure below.

29
21BEIT30121 Kashish Savaliya

Step 12: Set the Routing Path. Select static in routing. Then configure the path for the Router 3 as
Shown in the figure below.

Step 13 : To check successful connection , ping one PC/Laptop from both the Networks to their
Respective Gateways.
PC0:

30
21BEIT30121 Kashish Savaliya

Step 14 : To check successful connection , ping one PC/Laptop from both the Networks to their
Respective Gateways.
Laptop0:

Step 15 : To check successful connection , ping one PC/Laptop from both the Networks to their
Respective Gateways.
PC3:

31
21BEIT30121 Kashish Savaliya

Step 16 : To check successful connection , ping one PC/Laptop from both the Networks to their
Respective Gateways.
Laptop3:

Step 17: The way to check the connection is to send the packet From One PC of One Network to
Another to the PC of other network. Select Add Simple PDU option from right panel of the packet
tracer and set the source and destination of the packet. The following figure gives the idea how the
packet sends from source to destination.
- From Network 10.0.0.0 to 60.0.0.0:

32
21BEIT30121 Kashish Savaliya

- From Network 60.0.0.0 to 10.0.0.0:

- From Network 20.0.0.0 to 30.0.0.0:

33
21BEIT30121 Kashish Savaliya

- From Network 30.0.0.0 to 20.0.0.0:

Conclusion:

________________________________________________________________

________________________________________________________________

________________________________________________________________

________________________________________________________________

________________________________________________________________

Sign of Faculty.

34
21BEIT30121 Kashish Savaliya

35

You might also like