Aiw Practical
Aiw Practical
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:
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:
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)#no shutdown
R0(config-if)#exit
R0(config-if)#no shutdown
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
R0(dhcp-config)#dns-server 10.0.0.2
R0(dhcp-config)#default-router 20.0.0.1
R0(dhcp-config)#exit
7
Advance-Internetworking |2080
After DHCP configuration:
1. IN PC0:
2. IN PC4:
8
Advance-Internetworking |2080
9
Advance-Internetworking |2080
LAB 3: RIP Routing
A. Process :
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
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
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.
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:
17
Advance-Internetworking |2080
Show ip ospf database:
18
Advance-Internetworking |2080
Show ip route:
19
Advance-Internetworking |2080
Pinging from PC0 to other PC:
20
Advance-Internetworking |2080
CONCLUSION:
21