IP Routing Protocols Practice - Cisco Packet Tracer
IP Routing Protocols Practice - Cisco Packet Tracer
Abstract
This report presents a series of IP routing labs using Cisco Packet Tracer. Topics
include DHCP via servers and routers, Default
Routing, Static Routing, RIP (v1 & v2), EIGRP, OSPF (Single & Multi-Area), and BGP.
These labs align with CCNA objectives,
offering hands-on practice in configuring and troubleshooting routing protocols
Tools Used:
1
IP ROUTING PROTOCOLS LABS
IP Routing
Routing is the process of moving packets from one network to another. Routers use
routing tables to decide the path a packet should take to reach its destination.
Routing involves two main tasks:
1. Determining the best path for data to travel across networks.
2. Forwarding packets to their destination via the chosen path.
Types of Routing:
1. Default Routing
2. Static Routing
3. Dynamic Routing
1. Default Routing
Default routing is used to send packets to a default path when no specific route is
found in the routing table. Default routing is like a backup route. If a router doesn’t
know where to send a packet, it sends it to the default route. It’s useful in networks
with only one way out.
Key Features:
- Acts like a "catch-all" route for unknown destinations.
- Often used in stub networks (networks with only one exit path).
- Usually configured with the IP address of a next-hop router.
Example: ip route 0.0.0.0 0.0.0.0 192.168.1.1
2. Static Routing
Static routing means the network admin sets the path manually. It’s secure, fast, and
works well in small networks where routes don’t change often. You must know the
destination to set it up.
- Routes are manually configured by a network administrator.
- It is more secure and faster than dynamic routing in small networks.
- The destination network address must be known to configure the route.
- Best suited for small and simple networks where paths don’t change frequently.
Example: ip route 192.168.2.0 255.255.255.0 192.168.1.2
3. Dynamic Routing
Dynamic routing is a method where routers automatically learn and update routes
using routing protocols. Dynamic routing means routers talk to each other and share
2
IP ROUTING PROTOCOLS LABS
route information. If something changes in the network, they update the paths
automatically. It’s good for big networks but uses more resources.
Key Features:
- Routers exchange information with each other using routing protocols.
- Routes are automatically adjusted if the network topology changes.
- Suitable for large or complex networks.
- Requires more CPU, memory, and bandwidth compared to static routing.
Common Dynamic Routing Protocols:
- RIP (Routing Information Protocol)
- EIGRP (Enhanced Interior Gateway Routing Protocol)
- OSPF (Open Shortest Path First)
- BGP (Border Gateway Protocol)
RIP (Distance Vector)
- Uses hop count.
- Simple but slow and limited.
EIGRP (Advanced Distance Vector)
- Cisco proprietary.
- Uses DUAL algorithm.
OSPF (Link-State)
- Open standard.
- Fast convergence and area-based.
BGP (Path Vector)
- Open standard used between different autonomous systems.
- Uses attributes like AS-path for route selection.
3
IP ROUTING PROTOCOLS LABS
DHCP automatically assigns IP addresses and network settings to devices, making network
management easier and faster.
Objective: To configure a DHCP Server in a local network environment using Packet Tracer,
allowing a PC to automatically obtain an IP address without using a router.
Topology :
IP Addressing Table
4
IP ROUTING PROTOCOLS LABS
Configuration Steps :
5
IP ROUTING PROTOCOLS LABS
Verification :
- From PC0, PC1, PC2 > Command Prompt, use : ipconfig
6
IP ROUTING PROTOCOLS LABS
Output :
Conclusion :
This lab demonstrated how to configure a DHCP Server without a router in a basic LAN.
PC0, PC1 and PC2 was able to successfully receive an IP address, subnet mask, gateway, and
DNS server from the DHCP service running on Server0. This setup is ideal for internal
networks or small labs where a router is not required.
7
IP ROUTING PROTOCOLS LABS
Router Configuration :
8
IP ROUTING PROTOCOLS LABS
PC0, PC1, PC2 : Set to DHCP mode under Desktop > IP Configuration
9
IP ROUTING PROTOCOLS LABS
Verification :
Command Used on PCs :
Ipconfig
10
IP ROUTING PROTOCOLS LABS
Output :
11
IP ROUTING PROTOCOLS LABS
Conclusion :
In this lab, a Cisco router was successfully configured to function as a DHCP server. Clients
connected to the router through a switch received IP addresses dynamically from a specified
pool. This method reduces manual IP assignment and ensures centralized IP management.
12
IP ROUTING PROTOCOLS LABS
13
IP ROUTING PROTOCOLS LABS
IP Addressing Table :
Device Interface IP Address Subnet Mask
Router0 S0/0/0 10.10.10.1 255.0.0.0
Router1 S0/0/0 10.10.10.2 255.0.0.0
Router1 Gi0/0 192.168.1.1 255.255.255.0
Router1 Loopback0 1.1.1.1 255.255.255.255
Router1 Loopback1 172.0.0.1 255.255.255.255
PC0 NIC 192.168.1.2 255.255.255.0
Configuration :
Router0
Router1
Router>enable
Router#configure terminal
Router(config)#interface Gigabitethernet0/0
Router(config-if)#ip address 192.168.1.1 255.255.255.0
Router(config-if)#no shutdown
Router(config-if)#exit
Router(config)#interface serial0/0/0
Router(config-if)#ip address 10.10.10.2 255.0.0.0
Router(config-if)#no shutdown
Router(config-if)#exit
Router(config)#interface loopback0
Router(config-if)#ip address 1.1.1.1 255.255.255.255
Router(config-if)#exit
Router(config)#interface loopback1
Router(config-if)#ip address 172.0.0.1 255.255.255.255
Router(config-if)#exit
Router(config)#ip route 0.0.0.0 0.0.0.0 10.10.10.1
Router(config)#exit
Verification :
Router0#show ip route
Router0#show interface
Router#show ip route
Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP
14
IP ROUTING PROTOCOLS LABS
Router#show interface
GigabitEthernet0/0 is administratively down, line protocol is down
(disabled)
Hardware is CN Gigabit Ethernet, address is 0001.c78e.dd01 (bia
0001.c78e.dd01)
MTU 1500 bytes, BW 1000000 Kbit, DLY 10 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation ARPA, loopback not set
Keepalive set (10 sec)
Full-duplex, 100Mb/s, media type is RJ45
output flow-control is unsupported, input flow-control is unsupported
ARP type: ARPA, ARP Timeout 04:00:00,
Last input 00:00:08, output 00:00:05, output hang never
Last clearing of "show interface" counters never
Input queue: 0/75/0 (size/max/drops); Total output drops: 0
Queueing strategy: fifo
Output queue :0/40 (size/max)
5 minute input rate 0 bits/sec, 0 packets/sec
5 minute output rate 0 bits/sec, 0 packets/sec
0 packets input, 0 bytes, 0 no buffer
Received 0 broadcasts, 0 runts, 0 giants, 0 throttles
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort
0 watchdog, 1017 multicast, 0 pause input
0 input packets with dribble condition detected
0 packets output, 0 bytes, 0 underruns
0 output errors, 0 collisions, 1 interface resets
0 unknown protocol drops
0 babbles, 0 late collision, 0 deferred
0 lost carrier, 0 no carrier
0 output buffer failures, 0 output buffers swapped out
GigabitEthernet0/1 is administratively down, line protocol is down
(disabled)
Hardware is CN Gigabit Ethernet, address is 0001.c78e.dd02 (bia
0001.c78e.dd02)
MTU 1500 bytes, BW 1000000 Kbit, DLY 10 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation ARPA, loopback not set
Keepalive set (10 sec)
Full-duplex, 100Mb/s, media type is RJ45
output flow-control is unsupported, input flow-control is unsupported
ARP type: ARPA, ARP Timeout 04:00:00,
Last input 00:00:08, output 00:00:05, output hang never
Last clearing of "show interface" counters never
Input queue: 0/75/0 (size/max/drops); Total output drops: 0
Queueing strategy: fifo
15
IP ROUTING PROTOCOLS LABS
Router1#show ip route
Router1#show interface
Router#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
Router#show interface
GigabitEthernet0/0 is up, line protocol is up (connected)
Hardware is CN Gigabit Ethernet, address is 0001.6457.4a01 (bia
0001.6457.4a01)
Internet address is 192.168.1.1/24
MTU 1500 bytes, BW 1000000 Kbit, DLY 100 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation ARPA, loopback not set
Keepalive set (10 sec)
Full-duplex, 100Mb/s, media type is RJ45
output flow-control is unsupported, input flow-control is unsupported
ARP type: ARPA, ARP Timeout 04:00:00,
Last input 00:00:08, output 00:00:05, output hang never
Last clearing of "show interface" counters never
Input queue: 0/75/0 (size/max/drops); Total output drops: 0
Queueing strategy: fifo
Output queue :0/40 (size/max)
5 minute input rate 0 bits/sec, 0 packets/sec
5 minute output rate 0 bits/sec, 0 packets/sec
0 packets input, 0 bytes, 0 no buffer
Received 0 broadcasts, 0 runts, 0 giants, 0 throttles
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort
0 watchdog, 1017 multicast, 0 pause input
0 input packets with dribble condition detected
0 packets output, 0 bytes, 0 underruns
0 output errors, 0 collisions, 1 interface resets
0 unknown protocol drops
0 babbles, 0 late collision, 0 deferred
0 lost carrier, 0 no carrier
0 output buffer failures, 0 output buffers swapped out
GigabitEthernet0/1 is administratively down, line protocol is down
(disabled)
Hardware is CN Gigabit Ethernet, address is 0001.6457.4a02 (bia
0001.6457.4a02)
16
IP ROUTING PROTOCOLS LABS
Output :
All devices are able to communicate successfully:
PC0 can ping :
Router1 Serial0/0/0 (10.10.10.1)
17
IP ROUTING PROTOCOLS LABS
Router#ping 192.168.1.2
18
IP ROUTING PROTOCOLS LABS
Conclusion :
This lab successfully demonstrates default routing in a small network. By configuring a
single default route on Router1, the router can forward any unknown traffic to Router0,
which acts like an internet or backbone router. This simplifies routing in smaller or edge
networks.
19
IP ROUTING PROTOCOLS LABS
Static routing is a manual method where routes are set by the administrator, best for small or
fixed networks with few changes.
Objective: Configure static routes between routers
Network Topology :
IP Addressing Table :
Device Interface IP Address Subnet Mask Network
Router0 Serial0/0/0 10.0.0.1 255.0.0.0 10.0.0.0/8
Router0 GigabitEthernet0/0 192.168.1.1 255.255.255.0 192.168.1.0/24
Router1 Serial0/0/0 10.0.0.2 255.0.0.0 10.0.0.0/8
Router1 Serial0/0/1 20.0.0.1 255.0.0.0 20.0.0.0/8
Router1 GigabitEthernet0/0 192.168.2.1 255.255.255.0 192.168.2.0/24
Router2 Serial0/0/0 20.0.0.2 255.0.0.0 20.0.0.0/8
Router2 GigabitEthernet0/0 192.168.3.1 255.255.255.0 192.168.3.0/24
Configuration Step:
#On Router0
Router>enable
Router#configure terminal
Router(config)#Interface Serial0/0/0
Router(config-if)#ip address 10.0.0.1 255.0.0.0
Router(config-if)#no shutdown
Router(config-if)#exit
20
IP ROUTING PROTOCOLS LABS
Router(config)#interface GigabitEthernet0/0
Router(config-if)#ip address 192.168.1.1 255.255.255.0
Router(config-if)#no shutdown
Router(config-if)#exit
Router(config)#ip route 192.168.2.0 255.255.255.0 10.0.0.2
Router(config)#ip route 192.168.3.0 255.255.255.0 10.0.0.2
#On Router1
Router>enable
Router#configure terminal
Router(config)#interface serial0/0/0
Router(config-if)#ip address 10.0.0.2 255.0.0.0
Router(config-if)#no shutdown
Router(config-if)#exit
Router(config)#interface GigabitEthernet0/0
Router(config-if)#ip address 192.168.2.1 255.255.255.0
Router(config-if)#no shutdown
Router(config-if)#exit
Router(config)#interface serial0/0/1
Router(config-if)#ip address 20.0.0.1 255.0.0.0
Router(config-if)#no shutdown
Router(config-if)#exit
Router(config)#ip route 192.168.1.0 255.255.255.0 10.0.0.1
Router(config)#ip route 192.168.3.0 255.255.255.0 20.0.0.2
#On Router2
Router>enable
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#interface serial0/0/0
Router(config-if)#ip address 20.0.0.2 255.0.0.0
Router(config-if)#no shutdown
Router(config-if)#exit
Router(config)#interface gigabitEthernet0/0
Router(config-if)#ip address 192.168.3.1 255.255.255.0
Router(config-if)#no shutdown
Router(config-if)#exit
Router(config)#ip route 192.168.1.0 255.255.255.0 20.0.0.1
Router(config)#ip route 192.168.2.0 255.255.255.0 20.0.0.1
Verification Command :
R0#show ip route
Router>enable
Router#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
21
IP ROUTING PROTOCOLS LABS
R1#show ip route
Router#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
22
IP ROUTING PROTOCOLS LABS
Output:
23
IP ROUTING PROTOCOLS LABS
Conclusion :
Static routing configured successfully. Routers can reach each other.
24
IP ROUTING PROTOCOLS LABS
IP Address Table :
Device Interface IP Address Subnet Mask Network
Router0 Serial0/0/0 10.0.0.1 255.0.0.0 10.0.0.0/8
Router0 GigabitEthernet0/0 192.168.1.1 255.255.255.0 192.168.1.0/24
Router1 Serial0/0/0 10.0.0.2 255.0.0.0 10.0.0.0/8
Router1 Serial0/0/1 20.0.0.1 255.0.0.0 20.0.0.0/8
Router1 GigabitEthernet0/0 192.168.2.1 255.255.255.0 192.168.2.0/24
Router2 Serial0/0/0 20.0.0.2 255.0.0.0 20.0.0.0/8
Router2 GigabitEthernet0/0 192.168.3.1 255.255.255.0 192.168.3.0/24
Configuration Step :
#On Router0
Router>enable
Router#configure terminal
Router(config)#interface serial0/0/0
Router(config-if)#ip address 10.0.0.1 255.0.0.0
Router(config-if)#no shutdown
Router(config-if)#exit
Router(config)#interface GigabitEthernet0/0
25
IP ROUTING PROTOCOLS LABS
#On Router1
Router>enable
Router#configure terminal
Router(config)#interface serial0/0/0
Router(config-if)#ip address 10.0.0.2 255.0.0.0
Router(config-if)#no shutdown
Router(config-if)#exit
Router(config)#interface serial0/0/1
Router(config-if)#ip address 20.0.0.1 255.0.0.0
Router(config-if)#no shutdown
Router(config-if)#exit
Router(config)#interface GigabitEthernet0/0
Router(config-if)#ip address 192.168.2.1 255.255.255.0
Router(config-if)#no shutdown
Router(config-if)#exit
Router(config)#router rip
Router(config-router)#network 10.0.0.0
Router(config-router)#network 20.0.0.0
Router(config-router)#network 192.168.2.0
Router(config-router)#no auto-summary
Router(config-router)#exit
Router(config)#router rip
Router(config-router)#version 2
Router(config-router)#exit
#On Router2
Router>enable
Router#configure terminal
Router(config)#interface Serial0/0/0
Router(config-if)#ip address 20.0.0.2 255.0.0.0
Router(config-if)#no shutdown
Router(config)#interface GigabitEthernet0/0
Router(config-if)#ip address 192.168.3.1 255.255.255.0
Router(config-if)#no shutdown
Router(config-if)#exit
Router(config)#router rip
Router(config-router)#network 20.0.0.0
Router(config-router)#network 192.168.3.0
Router(config-router)#no auto-summary
Router(config-router)#exit
Router(config)#router rip
Router(config-router)#version 2
Router(config-router)#exit
26
IP ROUTING PROTOCOLS LABS
Verification :
Router0#show ip route
Router#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
Router1#show ip route
Router#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
Router2#show ip route
Router#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
27
IP ROUTING PROTOCOLS LABS
Output :
Router0#show ip protocols
Router0/show ip rip database
Router#show ip protocols
Routing Protocol is "rip"
Sending updates every 30 seconds, next due in 9 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
GigabitEthernet0/0 22
Serial0/0/0 22
Automatic network summarization is not in effect
Maximum path: 4
Routing for Networks:
10.0.0.0
192.168.1.0
Passive Interface(s):
Routing Information Sources:
Gateway Distance Last Update
10.0.0.2 120 00:00:21
Distance: (default is 120)
Router#show ip rip database
10.0.0.0/8 auto-summary
10.0.0.0/8 directly connected, Serial0/0/0
20.0.0.0/8 auto-summary
20.0.0.0/8
[1] via 10.0.0.2, 00:00:08, Serial0/0/0
192.168.1.0/24 auto-summary
192.168.1.0/24 directly connected, GigabitEthernet0/0
192.168.2.0/24 auto-summary
192.168.2.0/24
[1] via 10.0.0.2, 00:00:08, Serial0/0/0
192.168.3.0/24 auto-summary
192.168.3.0/24
[2] via 10.0.0.2, 00:00:08, Serial0/0/0
Router1#show ip protocols
Router1#show ip rip database
Router#show ip protocols
Routing Protocol is "rip"
Sending updates every 30 seconds, next due in 12 seconds
Invalid after 180 seconds, hold down 180, flushed after 240
Outgoing update filter list for all interfaces is not set
28
IP ROUTING PROTOCOLS LABS
Router2#show ip protocols
Router2#show ip rip database
Router#show ip protocols
Routing Protocol is "rip"
Sending updates every 30 seconds, next due in 10 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
GigabitEthernet0/0 22
Serial0/0/0 22
Automatic network summarization is not in effect
Maximum path: 4
Routing for Networks:
20.0.0.0
192.168.3.0
Passive Interface(s):
Routing Information Sources:
Gateway Distance Last Update
20.0.0.1 120 00:00:13
Distance: (default is 120)
Router#show ip rip database
10.0.0.0/8 auto-summary
10.0.0.0/8
[1] via 20.0.0.1, 00:00:23, Serial0/0/0
29
IP ROUTING PROTOCOLS LABS
20.0.0.0/8 auto-summary
20.0.0.0/8 directly connected, Serial0/0/0
192.168.1.0/24 auto-summary
192.168.1.0/24
[2] via 20.0.0.1, 00:00:23, Serial0/0/0
192.168.2.0/24 auto-summary
192.168.2.0/24
[1] via 20.0.0.1, 00:00:23, Serial0/0/0
192.168.3.0/24 auto-summary
192.168.3.0/24 directly connected, GigabitEthernet0/0
Conclusion :
RIP routing configured successfully. Routers can dynamically exchange routes and reach
each other.
30
IP ROUTING PROTOCOLS LABS
31
IP ROUTING PROTOCOLS LABS
IP Addressing Table :
Router Interface IP Address Subnet Mask Network
(Location)
Router0 Serial0/0/0 10.0.0.1 255.0.0.0 10.0.0.0
(Medan) GigabitEthernet0/0 192.168.1.1 255.255.255.0 192.168.1.0
Serial0/0/0 10.0.0.2 255.0.0.0 10.0.0.0
Router1
Serial0/0/1 20.0.0.1 255.0.0.0 20.0.0.0
(Lampung)
GigabitEthernet0/0 192.168.2.1 255.255.255.0 192.168.2.0
Router2 Serial0/0/0 20.0.0.2 255.0.0.0 20.0.0.0
(Jakarta) GigabitEthernet0/0 192.168.3.1 255.255.255.0 192.168.3.0
Configuration :
Router0 (Medan – AS 100)
Router>enable
Router#configure terminal
Router(config)#hostname Medan
Medan(config)#interface Serial0/0/0
Medan(config-if)#ip address 10.0.0.1 255.0.0.0
Medan(config-if)#no shutdown
Medan(config-if)#exit
Medan(config)#interface GigabitEthernet0/0
Medan(config-if)#ip address 192.168.1.1 255.255.255.0
Medan(config-if)#no shutdown
Medan(config-if)#exit
Medan(config)#router eigrp 100
Medan(config-router)#network 10.0.0.0
Medan(config-router)#network 192.168.1.0
Medan(config-router)#no auto-summary
Medan(config-router)#exit
32
IP ROUTING PROTOCOLS LABS
Verification :
Medan#show ip route
Medan#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
33
IP ROUTING PROTOCOLS LABS
34
IP ROUTING PROTOCOLS LABS
Maximum path: 4
Maximum hopcount 100
Maximum metric variance 1
Lampung Router1
#show ip protocols
#show ip eigrp neighbor
#show ip eigrp topology
Lampung#show ip protocols
35
IP ROUTING PROTOCOLS LABS
36
IP ROUTING PROTOCOLS LABS
Jakarta Router2
#show ip protocols
#show ip eigrp neighbor
#show ip eigrp topology
Jakarta#show ip protocols
37
IP ROUTING PROTOCOLS LABS
38
IP ROUTING PROTOCOLS LABS
IP Address :
Router Interface IP Address Subnet Mask Network
Serial0/0/0 10.0.0.1 255.0.0.0 10.0.0.0
Router0
GigabitEthernet0/0 192.168.1.1 255.255.255.0 192.168.1.0
Serial0/0/0 10.0.0.2 255.0.0.0 10.0.0.0
Router1 Serial0/0/1 20.0.0.1 255.0.0.0 20.0.0.0
GigabitEthernet0/0 192.168.2.1 255.255.255.0 192.168.2.0
Serial0/0/0 20.0.0.2 255.0.0.0 20.0.0.0
Router2
GigabitEthernet0/0 192.168.3.1 255.255.255.0 192.168.3.0
39
IP ROUTING PROTOCOLS LABS
Configuration :
#Router0
Router>enable
Router#configure terminal
Router(config)#interface Serial0/0/0
Router(config-if)#ip address 10.0.0.1 255.0.0.0
Router(config-if)#no shutdown
Router(config-if)#exit
Router(config)#interface GigabitEthernet0/0
Router(config-if)#ip address 192.168.1.1 255.255.255.0
Router(config-if)#no shutdown
Router(config-if)#exit
Router(config)#Router ospf 1
Router(config-router)#Network 10.0.0.0 0.255.255.255 Area 0
Router(config-router)#Network 192.168.1.0 0.0.0.255 Area 0
Router(config-router)#exit
#Router1
Router>enable
Router#configure terminal
Router(config)#interface Serial0/0/0
Router(config-if)#ip address 10.0.0.2 255.0.0.0
Router(config-if)#no shutdown
Router(config-if)#exit
Router(config)#interface Serial0/0/1
Router(config-if)#ip address 20.0.0.1 255.0.0.0
Router(config-if)#no shutdown
Router(config-if)#exit
Router(config)#interface GigabitEthernet0/0
Router(config-if)#ip address 192.168.2.1 255.255.255.0
Router(config-if)#no shutdown
Router(config-if)#exit
Router(config)#Router ospf 2
Router(config-router)#Network 10.0.0.0 0.255.255.255 Area 0
Router(config-router)#Network 20.0.0.0 0.255.255.255 Area 0
Router(config-router)#Network 192.168.2.0 0.0.0.255 Area 0
Router(config-router)#exit
#Router2
Router>enable
Router#configure terminal
Router(config)#interface Serial0/0/0
Router(config-if)#ip address 20.0.0.2 255.0.0.0
Router(config-if)#no shutdown
Router(config-if)#exit
Router(config)#interface GigabitEthernet0/0
Router(config-if)#ip address 192.168.3.1 255.255.255.0
Router(config-if)#no shutdown
Router(config-if)#exit
Router(config)#exit
Router(config)#Router ospf 3
Router(config-router)#Network 20.0.0.0 0.255.255.255 Area 0
Router(config-router)#Network 192.168.3.0 0.0.0.255 Area 0
Router(config-router)#exit
40
IP ROUTING PROTOCOLS LABS
Verification :
Router0
#show ip route
#show ip protocols
Router#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
Router#show ip protocols
Router1
#show ip route
#show ip protocols
Router#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
41
IP ROUTING PROTOCOLS LABS
Router#show ip protocols
Router2
#show ip route
#show ip protocols
Router#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
Router#show ip protocols
42
IP ROUTING PROTOCOLS LABS
Router1
#show ip ospf neighbor
#show ip ospf database
Router#show ip ospf neighbor
43
IP ROUTING PROTOCOLS LABS
Router2
#show ip ospf neighbor
#show ip ospf database
Router#show ip ospf neighbor
44
IP ROUTING PROTOCOLS LABS
Conclusions :
OSPF was configured successfully in Single Area (Area 0). Routers exchanged routing
information dynamically and full connectivity was achieved.
45
IP ROUTING PROTOCOLS LABS
IP Addressing Table :
Router Interface IP Address Subnet Mask Location
Serial0/0/0 10.0.0.1 255.0.0.0
Router0 Medan
GigabitEthernet0/0 192.168.1.1 255.255.255.0
Serial0/0/0 10.0.0.2 255.0.0.0
Router1 Serial0/0/1 20.0.0.1 255.0.0.0 Lampung
GigabitEthernet0/0 192.168.2.1 255.255.255.0
Serial0/0/0 20.0.0.2 255.0.0.0
Router2 Jakarta
GigabitEthernet0/0 192.168.3.1 255.255.255.0
46
IP ROUTING PROTOCOLS LABS
Configuration :
Router0 (Medan – Area 1)
Router>enable
Router#configure terminal
Router(config)#hostname Medan
Medan(config)#Interface Serial0/0/0
Medan(config-if)#ip address 10.0.0.1 255.0.0.0
Medan(config-if)#no shutdown
Medan(config-if)#exit
Medan(config)#interface GigabitEthernet0/0
Medan(config-if)#ip address 192.168.1.1 255.255.255.0
Medan(config-if)#no shutdown
Medan(config-if)#exit
Medan(config)#Router ospf 1
Medan(config-router)#Network 10.0.0.0 0.255.255.255 Area 1
Medan(config-router)#Network 192.168.1.0 0.0.0.255 Area 1
Medan(config-router)#exit
Note: The backbone area (Area 0) is essential in OSPF for inter-area communication. R1
connects Area 1 (R0 & R2) through Area 0 as the ABR (Area Border Router)
47
IP ROUTING PROTOCOLS LABS
Verification :
Router0 (Medan - Area 1)
Medan#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
Medan#show ip protocols
48
IP ROUTING PROTOCOLS LABS
Lampung#show ip protocols
Jakarta#show ip protocols
49
IP ROUTING PROTOCOLS LABS
Maximum path: 4
Routing for Networks:
20.0.0.0 0.255.255.255 area 2
192.168.3.0 0.0.0.255 area 2
Routing Information Sources:
Gateway Distance Last Update
192.168.2.1 110 00:06:24
192.168.3.1 110 00:06:03
Distance: (default is 110)
Output :
Router0 (Medan – Area 1)
#show ip ospf neighbor
#show ip ospf database
Medan#show ip ospf neighbor
50
IP ROUTING PROTOCOLS LABS
51
IP ROUTING PROTOCOLS LABS
52
IP ROUTING PROTOCOLS LABS
Conclusion :
OSPF Multi-Area was successfully configured. Routers in different areas established
neighbor relationships through Area 0, and inter-area routing worked properly.
53
IP ROUTING PROTOCOLS LABS
IP Addressing Table :
Router Interface IP Address Subnet Mask
Serial0/0/0 10.0.0.1 255.0.0.0
Router0
GigabitEthernet0/0 192.168.1.1 255.255.255.0
Serial0/0/0 10.0.0.2 255.0.0.0
Router1 Serial0/0/1 20.0.0.1 255.0.0.0
GigabitEthernet0/0 192.168.2.1 255.255.255.0
Serial0/0/0 20.0.0.2 255.0.0.0
Router2 Serial0/0/1 30.0.0.1 255.0.0.0
GigabitEthernet0/0 192.168.3.1 255.255.255.0
Serial0/0/0 30.0.0.2 255.0.0.0
Router3
GigabitEthernet0/0 192.168.4.1 255.255.255.0
Configuration :
Each router is in a different AS:
Router0 (AS 100)
Router>enable
Router#configure terminal
Router(config)#interface serial0/0/0
Router(config-if)#ip address 10.0.0.1 255.0.0.0
54
IP ROUTING PROTOCOLS LABS
Router(config-if)#no shutdown
Router(config-if)#exit
Router(config)#interface GigabitEthernet0/0
Router(config-if)#ip address 192.168.1.1 255.255.255.0
Router(config-if)#no shutdown
Router(config-if)#exit
Router(config)#router bgp 100
Router(config-router)#network 10.0.0.0 mask 255.0.0.0
Router(config-router)#network 192.168.1.0 mask 255.255.255.0
Router(config-router)#neighbor 10.0.0.2 remote-AS 200
Router(config-router)#exit
55
IP ROUTING PROTOCOLS LABS
Verification :
Router0 (AS 100)
#show ip route
#show ip protocols
Router#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
Router#show ip protocols
Routing Protocol is "bgp 100"
Outgoing update filter list for all interfaces is not set
Incoming update filter list for all interfaces is not set
IGP synchronization is disabled
Automatic route summarization is disabled
Neighbor(s):
Address FiltIn FiltOut DistIn DistOut Weight RouteMap
10.0.0.2
Maximum path: 1
Routing Information Sources:
Gateway Distance Last Update
10.0.0.2 20 00:00:00
56
IP ROUTING PROTOCOLS LABS
Router#show ip protocols
Routing Protocol is "bgp 200"
Outgoing update filter list for all interfaces is not set
Incoming update filter list for all interfaces is not set
IGP synchronization is disabled
Automatic route summarization is disabled
Neighbor(s):
Address FiltIn FiltOut DistIn DistOut Weight RouteMap
10.0.0.1
20.0.0.2
Maximum path: 1
Routing Information Sources:
Gateway Distance Last Update
10.0.0.1 20 00:00:00
20.0.0.2 20 00:00:00
Distance: external 20 internal 200 local 200
57
IP ROUTING PROTOCOLS LABS
Router#show ip protocols
Routing Protocol is "bgp 300"
Outgoing update filter list for all interfaces is not set
Incoming update filter list for all interfaces is not set
IGP synchronization is disabled
Automatic route summarization is disabled
Neighbor(s):
Address FiltIn FiltOut DistIn DistOut Weight RouteMap
20.0.0.1
30.0.0.2
Maximum path: 1
Routing Information Sources:
Gateway Distance Last Update
20.0.0.1 20 00:00:00
30.0.0.2 20 00:00:00
Distance: external 20 internal 200 local 200
58
IP ROUTING PROTOCOLS LABS
Router#show ip protocols
Routing Protocol is "bgp 400"
Outgoing update filter list for all interfaces is not set
Incoming update filter list for all interfaces is not set
IGP synchronization is disabled
Automatic route summarization is disabled
Neighbor(s):
Address FiltIn FiltOut DistIn DistOut Weight RouteMap
30.0.0.1
Maximum path: 1
Routing Information Sources:
Gateway Distance Last Update
30.0.0.1 20 00:00:00
Distance: external 20 internal 200 local 200
Output :
Router0 (AS 100)
#show ip bgp summary
#show ip bgp
#show ip bgp neighbor
Router#show ip bgp summary
BGP router identifier 192.168.1.1, local AS number 100
BGP table version is 9, main routing table version 6
8 network entries using 1056 bytes of memory
8 path entries using 416 bytes of memory
6/5 BGP path/bestpath attribute entries using 1012 bytes of memory
4 BGP AS-PATH entries using 96 bytes of memory
0 BGP route-map cache entries using 0 bytes of memory
0 BGP filter-list cache entries using 0 bytes of memory
Bitfield cache entries: current 1 (at peak 1) using 32 bytes of memory
BGP using 2612 total bytes of memory
BGP activity 7/0 prefixes, 8/0 paths, scan interval 60 secs
Router#show ip bgp
BGP table version is 9, local router ID is 192.168.1.1
Status codes: s suppressed, d damped, h history, * valid, > best, i -
internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete
59
IP ROUTING PROTOCOLS LABS
Sent Rcvd
Opens: 1 1
Notifications: 0 0
Updates: 3 9
Keepalives: 19 19
Route Refresh: 0 3
Total: 23 32
Default minimum time between advertisements runs is 30 seconds
Router#show ip bgp
BGP table version is 10, local router ID is 192.168.2.1
Status codes: s suppressed, d damped, h history, * valid, > best, i -
internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete
60
IP ROUTING PROTOCOLS LABS
Sent Rcvd
Opens: 1 1
Notifications: 0 0
Updates: 9 3
Keepalives: 21 21
Route Refresh: 0 1
Total: 31 26
Default minimum time between advertisements runs is 30 seconds
Router#show ip bgp
BGP table version is 10, local router ID is 192.168.3.1
Status codes: s suppressed, d damped, h history, * valid, > best, i -
internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete
61
IP ROUTING PROTOCOLS LABS
Sent Rcvd
Opens: 1 1
Notifications: 0 0
Updates: 7 6
Keepalives: 16 16
Route Refresh: 0 2
Total: 24 25
Default minimum time between advertisements runs is 30 seconds
Router#show ip bgp
BGP table version is 9, local router ID is 192.168.4.1
Status codes: s suppressed, d damped, h history, * valid, > best, i -
internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete
62
IP ROUTING PROTOCOLS LABS
Sent Rcvd
Opens: 1 1
Notifications: 0 0
Updates: 3 8
Keepalives: 12 12
Route Refresh: 0 2
Total: 16 23
Default minimum time between advertisements runs is 30 seconds
63
IP ROUTING PROTOCOLS LABS
64
IP ROUTING PROTOCOLS LABS
Conclusion :
BGP was successfully configured between 4 routers, each in a different AS. Each router
shared its local LAN with others, enabling PC-to-PC communication across AS boundaries
using BGP-learned routes.
65
IP ROUTING PROTOCOLS LABS
Overview Table
OSPF OSPF
Feature RIP EIGRP (Single- (Multi- BGP
Area) Area)
Advanced
Distance
Protocol Type Distance Link State Link State Path Vector
Vector
Vector
Medium to Medium to Large Internet,
Small
Use Case Large Cisco- Large Enterprise ISPs, Very
Networks
only Networks Networks Large Nets
Best Path
Bellman- Dijkstra Dijkstra
Algorithm Dual Selection
Ford (SPF) (SPF)
(AS_PATH)
AS-Path,
Hop Count Bandwidth + Cost Cost Policy,
Metric
(Max 15) Delay (Bandwidth) (Bandwidth) Prefix
Length
Convergence
Slow Fast Fast Fast Slow
Speed
Triggered
Routing Periodic
Triggered Triggered Triggered (Event-
Update (30s)
driven)
v1 : No
VLSM Support Yes Yes Yes Yes
v2 : Yes
Vendor All
Cisco Only All Vendors All Vendors All Vendors
Support Vendors
Configuration
Very Easy Easy Moderate Comlex Complex
Ease
Internet-
Small, Fast Cisco- Structured
Enterprise scale
Ideal for Simple only Enterprise
with 1 Area External
LANs Environments Networks
Routing
66
IP ROUTING PROTOCOLS LABS
Conclusion
In this networking lab, various essential routing protocols and IP address management
techniques were successfully configured and tested in simulated network environments using
Cisco Packet Tracer. The objective of the lab exercises was to gain practical experience with
the configuration and behavior of different types of routing protocols and services, which are
fundamental to modern computer networks.
All configurations were verified through proper connectivity testing (ping, ipconfig, and
routing table inspections), ensuring that networks were fully operational and communicating
as intended.
Overall, this lab enhanced my understanding of how different routing protocols and IP
addressing mechanisms operate, interconnect, and contribute to scalable, dynamic, and
reliable network infrastructures.
67