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

IP Addressing and Router Configurations

The document outlines a lab exam for Computer Networks at HCMC International University, detailing tasks related to IP addressing, router configurations, and RIP protocol setup. It includes specific subnetting requirements, IP address assignments for devices, and steps for configuring routers R1, R2, and R3. The document concludes with instructions for capturing command outputs and documenting the report for submission.
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 views20 pages

IP Addressing and Router Configurations

The document outlines a lab exam for Computer Networks at HCMC International University, detailing tasks related to IP addressing, router configurations, and RIP protocol setup. It includes specific subnetting requirements, IP address assignments for devices, and steps for configuring routers R1, R2, and R3. The document concludes with instructions for capturing command outputs and documenting the report for submission.
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

HCMC International University

Dr. Phuong Vo

Computer Networks
Date: 07-12-2015

Lab exam
Time: 03 hours

Student name: Song Ton


Student ID: ITITIU13083
Topology

Task 1: IP addressing

Step 1. Consider the network requirements:

The 192.168.x.0/24 network must be subnetted to provide addresses for the three LANs. Each LAN
requires 60 addresses.
The subnet-mask /30 must be used for the serial connections between the three routers.

The loopback address representing the link between the HQ router and the ISP will use the
[Link]/32 network.

Step 2. List the subnets used in the network in above topology.


Subnet 1: [Link]/26

Subnet 2: [Link]/26

Subnet 3: [Link]/26
Subnet 4: [Link]/30
Subnet 5: [Link]/30
Subnet 6: [Link]/30

HCMC International University


Dr. Phuong Vo

Computer Networks
Date: 07-12-2015

Step 3. Filling the following table:


Device

Interface

IP Address

Subnet Mask

Descriptions /
Default Gateway

R1

Fa

[Link]

[Link]

N/A

Serial0

[Link]

[Link]

N/A

Serial1

[Link]

[Link]

N/A

Lo0

[Link]

[Link]

connect to ISP

Fa

[Link]

[Link]

N/A

Serial0

[Link]

[Link]

N/A

Serial1

[Link]

[Link]

N/A

Fa

[Link]

[Link]

N/A

Serial0

[Link]

[Link]

N/A

Serial1

[Link]

[Link]

N/A

PC1

NIC

[Link]

[Link]

[Link]

PC2

NIC

[Link]

[Link]

[Link]

PC3

NIC

[Link]

[Link]

[Link]

R2

R3

Task 2: Perform Basic Router Configurations.

Perform basic configuration of the R1, R2 and R3 routers according to the following guidelines:
1. Configure the router hostname.
2. Disable DNS lookup.

3. Configure an EXEC mode password.

4. Configure a password for console connections.

Task 2: Configure and Activate Serial and Ethernet Addresses.


Step 1. Configure interfaces of R1, R2, and R3.

Configure the interfaces on the routers with the IP addresses from the addressing table.
Step 2. Verify IP addressing and interfaces.

Output of show ip interface brief command:

HCMC International University


Dr. Phuong Vo

Computer Networks
Date: 07-12-2015

Step 3. Configure Ethernet interfaces of PC1, PC2, and PC3.

Configure the Ethernet interfaces of PC1, and PC2 with the IP addresses and default gateways and test the
PC configuration by pinging the default gateway.

Task 3: Configure RIP.

Step 1. Enable RIP routing on three router.


Show your RIP routing configuration?

HCMC International University


Dr. Phuong Vo

Computer Networks
Date: 07-12-2015

Step 2. Verify the routing table and answer the following questions.
Printout the output of show ip route command:

HCMC International University


Dr. Phuong Vo

Computer Networks
Date: 07-12-2015

What are the directly connected networks of R1?


[Link], loopback0

[Link]/26, FastEthernet0
[Link]/30, Serial0
[Link]/30, Serial1
What are the networks R1 learned via RIP advertisements?

[Link]/30 [120/1] via [Link], 00:00:24, Serial0


[120/1] via [Link], 00:00:09, Serial1

[Link]/26 [120/1] via [Link], 00:00:24, Serial0

[Link]/26 [120/1] via [Link], 00:00:09, Serial1


What are the paths from R1 to LAN 2 and LAN 3? Why these paths?
[Link]/26 [120/1] via [Link], 00:00:24, Serial0

[Link]/26 [120/1] via [Link], 00:00:09, Serial1


What are the next-hop IP addresses?
From R1 to R2
From R2 to R3

[Link]/26 [120/1] via [Link], 00:00:24, Serial2/0

[Link]/26 [120/1] via [Link], 00:00:54, Serial3/0

Step 3. Verify the RIP protocol.

Printout the output of show ip protocols command and explain the meaning of the timers:

HCMC International University


Dr. Phuong Vo

Computer Networks
Date: 07-12-2015

Task 4: Running RIP on a Stub Network

Step 1. Configure loop-back interface on router R1 to simulate the connection to ISP. R1 use default
route to send the traffic to the internet and distributes this default route into the RIP domain.
6

HCMC International University


Dr. Phuong Vo
Show your configure

Computer Networks
Date: 07-12-2015

Step 2. Show the routing tables of R1 and R2 and explain the entries corresponding to this step.

HCMC International University


Dr. Phuong Vo

Computer Networks
Date: 07-12-2015

Task 5: Document your report and submit

Step 1: On each router, capture the following command output to a text file and attach to the end of
your report.

Running configuration

HCMC International University


Dr. Phuong Vo
Routing table

Computer Networks
Date: 07-12-2015

Interface summarization

Output from show ip protocols

Running-config:

R1/

R1#sho ip rou

Codes: 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

i - IS-IS, su - IS-IS summary, 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 [Link] to network [Link]

C
C
R
R
R
C
C

S*

[Link]/32 is subnetted, 1 subnets

[Link] is directly connected, Loopback0

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


[Link]/26 is directly connected, FastEthernet0

[Link]/26 [120/1] via [Link], 00:00:08, Serial0

[Link]/26 [120/1] via [Link], 00:00:06, Serial1


[Link]/30 [120/1] via [Link], 00:00:08, Serial0

[120/1] via [Link], 00:00:06, Serial1

[Link]/30 is directly connected, Serial0


[Link]/30 is directly connected, Serial1

[Link]/0 is directly connected, Loopback0

R1#sho ru

Building configuration...
Current configuration : 1355 bytes
!

version 12.3

service timestamps debug datetime msec


service timestamps log datetime msec
no service password-encryption
!

hostname R1
!

boot-start-marker
boot-end-marker

HCMC International University


Dr. Phuong Vo
!

Computer Networks
Date: 07-12-2015

enable secret 5 $1$d9ol$[Link].


!

memory-size iomem 5

mmi polling-interval 60
no mmi auto-configure
no mmi pvc

mmi snmp-timeout 180


no aaa new-model
ip subnet-zero

no ip icmp rate-limit unreachable


ip cef
!
!

ip tcp synwait-time 5
!

ip audit po max-events 100


no ip domain lookup

no ftp-server write-enable
!
!
!
!
!
!
!

interface Loopback0
!

ip address [Link] [Link]

interface FastEthernet0
description R1 LAN

ip address [Link] [Link]


!

speed auto

interface Serial0

ip address [Link] [Link]

clockrate 64000

interface Serial1

description Link to R3

ip address [Link] [Link]


clockrate 64000

10

HCMC International University


Dr. Phuong Vo
!

Computer Networks
Date: 07-12-2015

interface Serial2
no ip address

shutdown

interface Serial3
no ip address

shutdown

router rip

version 2

network [Link]
!

default-information originate

ip classless

ip route [Link] [Link] Loopback0


no ip http server

no ip http secure-server
!

no cdp log mismatch duplex


!

line con 0

exec-timeout 0 0

privilege level 15
password cisco

logging synchronous
login

line aux 0

exec-timeout 0 0

privilege level 15

logging synchronous

line vty 0 4

password cisco

login

end
R2#sho ru

R2/

Building configuration...
Current configuration : 1224 bytes
11

HCMC International University


Dr. Phuong Vo
!

Computer Networks
Date: 07-12-2015

version 12.3

service timestamps debug datetime msec


service timestamps log datetime msec
no service password-encryption
!

hostname R2
!

boot-start-marker
boot-end-marker
!

enable secret 5 $1$I0My$gg2SVkfNdkK0HOhwaGftn1


!

memory-size iomem 5

mmi polling-interval 60
no mmi auto-configure
no mmi pvc

mmi snmp-timeout 180


no aaa new-model
ip subnet-zero

no ip icmp rate-limit unreachable


ip cef
!
!

ip tcp synwait-time 5
!

ip audit po max-events 100


no ip domain lookup

no ftp-server write-enable
!
!
!
!
!
!
!

interface FastEthernet0
description R2 LAN

ip address [Link] [Link]


!

speed auto

interface Serial0

12

HCMC International University


Dr. Phuong Vo
ip address [Link] [Link]
!

Computer Networks
Date: 07-12-2015

clockrate 64000

interface Serial1

description Link to R3

ip address [Link] [Link]


!

clockrate 64000

interface Serial2
no ip address

shutdown

interface Serial3
no ip address

shutdown

router rip

version 2

network [Link]

ip classless

no ip http server

no ip http secure-server
!

no cdp log mismatch duplex


!

line con 0

exec-timeout 0 0

privilege level 15
password cisco

logging synchronous
login

line aux 0

exec-timeout 0 0

privilege level 15

logging synchronous

line vty 0 4

password cisco

login

end
13

HCMC International University


Dr. Phuong Vo
R3#sho ru

R3/

Computer Networks
Date: 07-12-2015

Building configuration...
Current configuration : 1225 bytes
!

version 12.3

service timestamps debug datetime msec


service timestamps log datetime msec
no service password-encryption
!

hostname R3
!

boot-start-marker
boot-end-marker
!

enable secret 5 $1$f4EU$9sTdA5pUuyRS5lTaFb3Pi.


!

memory-size iomem 5

mmi polling-interval 60
no mmi auto-configure
no mmi pvc

mmi snmp-timeout 180


no aaa new-model
ip subnet-zero

no ip icmp rate-limit unreachable


ip cef
!
!

ip tcp synwait-time 5
!

ip audit po max-events 100


no ip domain lookup

no ftp-server write-enable
!
!
!
!
!
!
!
14

HCMC International University


Dr. Phuong Vo
interface FastEthernet0

Computer Networks
Date: 07-12-2015

description R3 LAN

ip address [Link] [Link]


!

speed auto

interface Serial0

ip address [Link] [Link]

clockrate 64000

interface Serial1

description Link to R2

ip address [Link] [Link]


!

clockrate 64000

interface Serial2
no ip address

shutdown

interface Serial3
no ip address

shutdown

router rip

version 2

network [Link]

ip classless

no ip http server

no ip http secure-server
!

no cdp log mismatch duplex


!

line con 0

exec-timeout 0 0

privilege level 15
password cisco

logging synchronous
login

line aux 0

exec-timeout 0 0

privilege level 15

logging synchronous

15

HCMC International University


Dr. Phuong Vo
line vty 0 4

Computer Networks
Date: 07-12-2015

password cisco

login

End

Routing table
R1#sho ip rou

Codes: 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

i - IS-IS, su - IS-IS summary, 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 [Link] to network [Link]

C
C
R
R
R
C
C

S*

[Link]/32 is subnetted, 1 subnets

[Link] is directly connected, Loopback0

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


[Link]/26 is directly connected, FastEthernet0

[Link]/26 [120/1] via [Link], 00:00:02, Serial0

[Link]/26 [120/1] via [Link], 00:00:17, Serial1


[Link]/30 [120/1] via [Link], 00:00:02, Serial0

[120/1] via [Link], 00:00:17, Serial1

[Link]/30 is directly connected, Serial0


[Link]/30 is directly connected, Serial1

[Link]/0 is directly connected, Loopback0

R2#sho ip rou

R2#

Codes: 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

i - IS-IS, su - IS-IS summary, 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 [Link] to network [Link]


16

HCMC International University


Dr. Phuong Vo
[Link]/24 is variably subnetted, 6 subnets, 2 masks
R

[Link]/26 [120/1] via [Link], 00:00:25, Serial1

[Link]/26 [120/1] via [Link], 00:00:22, Serial0

[Link]/26 is directly connected, FastEthernet0

[Link]/30 is directly connected, Serial0

[Link]/30 is directly connected, Serial1

R
R*

R2#

Computer Networks
Date: 07-12-2015

[Link]/30 [120/1] via [Link], 00:00:25, Serial1

[120/1] via [Link], 00:00:24, Serial0

[Link]/0 [120/1] via [Link], 00:00:00, Serial1

R3#

R3#sho ip rou

Codes: 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

i - IS-IS, su - IS-IS summary, 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 [Link] to network [Link]

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

[Link]/26 [120/1] via [Link], 00:00:26, Serial0

[Link]/26 [120/1] via [Link], 00:00:07, Serial1

[Link]/26 is directly connected, FastEthernet0

[Link]/30 is directly connected, Serial1

R
C

R*

R3#

[Link]/30 [120/1] via [Link], 00:00:26, Serial0

[120/1] via [Link], 00:00:07, Serial1

[Link]/30 is directly connected, Serial0

[Link]/0 [120/1] via [Link], 00:00:00, Serial0

Interface summarization:
R1#sho ip int bri
Interface

FastEthernet0
Loopback0
Serial0

IP-Address

[Link]

OK? Method Status


YES manual up

[Link] YES manual up

[Link]

YES manual up

Protocol
up

up

up

17

HCMC International University


Dr. Phuong Vo
Serial1
[Link]

YES manual up

Serial3

YES unset

Serial2
R1#

R2#sho ip int br

unassigned
unassigned

YES unset

administratively down down


administratively down down

Interface

IP-Address

OK? Method Status

Serial0

[Link]

YES manual up

Serial2

unassigned

YES unset

FastEthernet0
Serial1
Serial3
R2#

R3#sho ip int br

[Link]

[Link]
unassigned

YES manual up

YES manual up
YES unset

OK? Method Status

Serial0

[Link]

YES manual up

Serial2

unassigned

YES unset

Serial1
Serial3
R3#

[Link]
unassigned

YES manual up

YES manual up
YES unset

up

up
up

administratively down down

IP-Address

[Link]

Protocol

administratively down down

Interface

FastEthernet0

up

Computer Networks
Date: 07-12-2015

Protocol
up

up
up

administratively down down

administratively down down

Output from show ip protocols


R1#sho ip pro

Routing Protocol is "rip"

Sending updates every 30 seconds, next due in 22 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 version 2


Interface

Send

Recv

Serial0

FastEthernet0
Serial1

Triggered RIP

Key-chain

Automatic network summarization is in effect


Maximum path: 4

Routing for Networks:


[Link]

18

HCMC International University


Dr. Phuong Vo
Routing Information Sources:
Gateway

[Link]

Computer Networks
Date: 07-12-2015

Distance

Last Update

120

[Link]

Distance: (default is 120)

00:00:11

120

00:00:24

R2#sho ip pro

Routing Protocol is "rip"

Sending updates every 30 seconds, next due in 26 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 version 2


Interface

Send

Recv

Serial0

FastEthernet0

Serial1

Triggered RIP

Key-chain

Automatic network summarization is in effect


Maximum path: 4

Routing for Networks:


[Link]

Routing Information Sources:


Gateway

[Link]
[Link]

Distance

Distance: (default is 120)

Last Update

120

00:00:06

120

00:00:10

R3#sho ip pro

Routing Protocol is "rip"

Sending updates every 30 seconds, next due in 24 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 version 2


Interface

Send

Recv

Serial0

FastEthernet0
Serial1

Triggered RIP

Key-chain

Automatic network summarization is in effect


Maximum path: 4

19

HCMC International University


Dr. Phuong Vo
Routing for Networks:

Computer Networks
Date: 07-12-2015

[Link]

Routing Information Sources:


Gateway

[Link]
[Link]

Distance

Distance: (default is 120)

120
120

Last Update

00:00:23
00:00:18

Step 2: Submit your final report to Blackboard.

END.

20

You might also like