0% found this document useful (0 votes)
16 views21 pages

Aiw Practical

Uploaded by

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

Aiw Practical

Uploaded by

Anime Gamingxnpl
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 21

Simalchaur, Pokhara

Affiliated Under Tribhuvan University

Lab Report of Advance Internetworking


BIM 5th Semester
TU Final Practical Examination 2080
Prepared by: Examiner:
Name: Rajesh Sharma Name:
Symbol no.: 10776/19 Signature:
Registration no: 7-2-297-1019-2019
Advance-Internetworking |2080
Contents
LAB 1: STATIC ROUTING.......................................................................................................................3
LAB 2: DHCP Routing............................................................................................................................6
LAB 3: RIP Routing..............................................................................................................................10
LAB 4: OSPF Routing...........................................................................................................................14
CONCLUSION:.....................................................................................................................................21

2
Advance-Internetworking |2080
LAB 1: STATIC ROUTING
Static routing is a type of network routing technique that involves manual configuration and selection of
a network route, usually managed by the network administrator. It is employed in scenarios where the
network parameters and environment are expected to remain constant. Static routes provide more
routing information to a router and can learn about a route to a remote network that is not directly
attached to one of its interfaces.

1. Router 0 Configuration:

Continue with configuration dialog? [yes/no]: n


Router>enable
Router#config terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#int fa0/0
Router(config-if)#ip address 1.0.0.1 255.0.0.0
Router(config-if)#no shut
Router(config-if)#exit
Router(config)#int fa0/1
Router(config-if)#ip address 2.0.0.1 255.0.0.0
Router(config-if)#no shut

3
Advance-Internetworking |2080
2. Router 1 Configuration:
Continue with configuration dialog? [yes/no]: n
Press RETURN to get started!
Router>enable
Router#config terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#ip route 3.0.0.0 255.0.0.0 2.0.0.2
Router(config)#ip route 4.0.0.0 255.0.0.0 2.0.0.2
Router>enable
Router#config terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#int fa0/0
Router(config-if)#ip address 2.0.0.2 255.0.0.0
Router(config-if)#no shut
Router(config-if)#exit
Router(config)#int fa0/1
Router(config-if)#ip address 3.0.0.1 255.0.0.0
Router(config-if)#no shut

3. Router 1 Configuration:

Router>enable
Router#config terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#ip route 1.0.0.0 255.0.0.0 2.0.0.1
Router(config)#ip route 4.0.0.0 255.0.0.0 3.0.0.2
Router>enable
Router#config terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#int fa0/1
Router(config-if)#ip address 3.0.0.2 255.0.0.0
Router(config-if)#no shut
Router(config-if)#exit
Router(config)#int fa0/0
Router(config-if)#ip address 4.0.0.1 255.0.0.0
Router(config-if)#no shut
Router>enable
Router#config terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#ip route 2.0.0.0 255.0.0.0 3.0.O.1
Router(config)#ip route 1.0.0.0 255.0.0.0 3.0.O.1

4
Advance-Internetworking |2080
Pinging From PC0 to PC1:

Pinging from PC1 to PC0:

5
Advance-Internetworking |2080
LAB 2: DHCP Routing

Dynamic Host Configuration Protocol (DHCP) is a network protocol that is used to automatically assign
IP addresses and other network configuration parameters to devices on a network. DHCP is typically
used in LANs to simplify the process of configuring network settings for connected devices.

Router Configuration:
R0#config t

R0(config)#interface gi 0/0

R0(config-if)#ip address 10.0.0.1 255.0.0.0

R0(config-if)#no shutdown

R0(config-if)#exit

R0(config)#interface gi 1/0 address 20.0.0.1 255.0.O.O

R0(config-if)#no shutdown

DHCP POOL FOR 10 NETWORK:


R0(config)#ip dhcp pool 10network

R0(dhcp-config)#network 10.0.0.0 255.0.0.0

6
Advance-Internetworking |2080
R0(dhcp-config)#dns-server 10.0.0.2

R0(dhcp-config)#default-router 10.0.0.1

R0(dhcp-config)#exit

DHCP POOL FOR 20 NETWORK:

R0(config)#ip dhcp pool 20network

R0(dhcp-config)#network 20.0.0.0 255.0.0.0

R0(dhcp-config)#dns-server 10.0.0.2

R0(dhcp-config)#default-router 20.0.0.1

R0(dhcp-config)#exit

Before DHCP configuration:

7
Advance-Internetworking |2080
After DHCP configuration:

1. IN PC0:

2. IN PC4:

8
Advance-Internetworking |2080

Pinging from PC0 to PC4:

9
Advance-Internetworking |2080
LAB 3: RIP Routing

RIP stands for Routing Information Protocol. RIP is an intra-domain routing


protocol used within an autonomous system. Here, intra-domain means routing
the packets in a defined domain, for example, web browsing within an
institutional area. To understand the RIP protocol, our main focus is to know
the structure of the packet, how many fields it contains, and how these fields
determine the routing table. It uses port number 520.

A. Process :

1. Setup a router configuration.

2. Double click PC0 and click Desktop menu item and click IP Configuration. Assign
IP address 10.0.0.2 to PC0. Repeat same process for PC1 and assign IP address
20.0.0.2

10
Advance-Internetworking |2080

3. Double click Router0 and click CLI and press Enter key to access the command
prompt of Router0.
4. We need to configure IP address and other parameters on interfaces
FastEthernet0/0, FastEthernet0/1, Serial0/0/0, Serial0/0/1 before we could
actually use them for routing.

11
Advance-Internetworking |2080

5. Repeat the step 4 for all the routers and their corresponding interfaces.
B. CLI Commands:
1. interface fastEthernet 0/0 command is used to enter in
interface mode.
2. ip address 10.0.0.1 255.0.0.0 command will assign IP
address to interface.
3. no shutdown command will bring the interface up.
4. exit command is used to return in global configuration mode
5. Router#configure terminal Command is used to enter in global configuration mode.
6. Router(config)#interface serial 0/0/0 Command is used to enter in serial interface
mode.
7. Router(config-if)#ip address Command assigns IP address to interface.
8. router rip command tells router to enable the RIP routing protocol.
9. Router(config-if)#clock rate 64000 And
10. Router(config-if)#bandwidth 64 In real life environment these parameters control
the data flow between serial links and need to be set at service providers end. In
lab environment we need not to worry about these values. We can use these
values.
11. Router(config-if)#no shutdown Command brings interface up.
12. Router(config-if)#exit Command is used to return in global configuration mode.
13. network command allows us to specify the networks which we want to advertise. We
only need to specify the networks which are directly connected with the router.

12
Advance-Internetworking |2080
C. ROUTERS:
Router0 Configuration:
Router0(config)#router rip
Router0(config-router)# network 10.0.0.0
Router0(config-router)# network 12.0.0.0
Router0(config-router)# network 192.168.1.0

Router1 Configuration:
Router1(config)#router rip
Router1(config-router)# network 192.168.1.0
Router1(config-router)# network 192.168.2.0

Router2 Configuration:
Router2(config)#router rip
Router2(config-router)# network 20.0.0.0
Router2(config-router)# network 12.0.0.0
Router2(config-router)# network 192.168.2.0

Pinging PC1 from PC0:

13
Advance-Internetworking |2080
LAB 4: OSPF Routing

The OSPF stands for Open Shortest Path First. It is a widely used and supported
routing protocol. It is an intradomain protocol, which means that it is used within an
area or a network. It is an interior gateway protocol that has been designed within a
single autonomous system. It is based on a link-state routing algorithm in which each
router contains the information of every domain, and based on this information, it
determines the shortest path. The goal of routing is to learn routes. The OSPF achieves
by learning about every router and subnet within the entire network. Every router
contains the same information about the network.

Process:

Assign IP address to PC

Double click PC0 and click Desktop menu item and click IP Configuration. Assign IP
address 20.0.0.2/8 to PC0. Repeat the same process for all the pc.

14
Advance-Internetworking |2080
Assign IP address to interfaces of routers

We need to configure IP address and other parameters on interfaces before we could


actually use them for routing like we did while configuring RIP in earlier lab or you can
use the GUI to do it like below.

Setting IP for PC0 and do the same for others:

Setting interfaces for Router0:

15
Advance-Internetworking |2080

Now, routers have information about the networks that they have on their own
interfaces. Routers will not exchange this information between them on their own. We
need to implement OSPF routing protocol that will insist them to share this
information.

Configure OSPF routing protocol:

R1(config)#router ospf 1
R1(config-router)#network 10.0.0.0 0.255.255.255 area 0
R1(config-router)#network 20.0.0.0 0.255.255.255 area 0
R1(config-router)#exit

R2(config)#router ospf 1
R2(config-router)#network 10.0.0.0 0.255.255.255 area 0
R2(config-router)#network 30.0.0.0 0.255.255.255 area 0
R2(config-router)#exit

R3(config)#router ospf 1
R3(config-router)#network 10.0.0.0 0.255.255.255 area 0
R3(config-router)#network 40.0.0.0 0.255.255.255 area 0
R3(config-router)#exit

R4(config)#router ospf 1
R4(config-router)#network 10.0.0.0 0.255.255.255 area 0
R4(config-router)#network 50.0.0.0 0.255.255.255 area 0
R4(config-router)#exit

16
Advance-Internetworking |2080
show ip ospf interface fastEthernet 0/0:

Show ip ospf neighbor:

17
Advance-Internetworking |2080
Show ip ospf database:

Show ip ospf protocols:

18
Advance-Internetworking |2080
Show ip route:

19
Advance-Internetworking |2080
Pinging from PC0 to other PC:

20
Advance-Internetworking |2080

CONCLUSION:

STATIC, DHCP (DYNAMIC HOST CONTROL PROTOCOL) , RIP (ROUTING


INFORMATION PROTOCOL) AND OSPF (OPEN SHORTEST PATH FIRST)
PROTOCOL ARE CONFIGURED IN THE LAB SUCCESSFULLY.

21

You might also like