0% found this document useful (0 votes)
33 views

Programming Assignment 4

Uploaded by

api-635217861
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
33 views

Programming Assignment 4

Uploaded by

api-635217861
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

Task 1: Diagram of our Network

Task 2: Screen capture of program (No python errors)

Task 3: Screen capture of pingall


Task 4: List of lines that why changed and reasoning
● IPs for the routers were changed.
○ This was so that the routers could be properly identified in lines of code to
be implemented later.
● Hosts were given default routes.
○ The assigned routes allowed the hosts to communicate with their intended
router.
● Switch addlink lines were updated.
○ This is so IP parameters could be assigned to interfaces for the routers.
These IPs would match the default routes set for the hosts so the hosts
could reach the target router.
● Router addlink lines were updated
○ This is so IP parameters could be assigned to each router. These would
eventually serve as communication points between all three routers.
● Six static route lines were added.
○ These lines would create routes allowing for all three routers to
communicate with one another.

Task 5: Answers to Questions:


1. What were any interesting findings and lessons learned?
a. Understanding how static routes work was one of the first blockers. Trial and
error was not good enough to overcome this challenge, and in the end, testing by
way of the routing tables helped shed light on the issue at hand. With the help of
the routing tables, we were better able to understand the target addresses that were
needed to help routers 3 and 5 communicate.

2. Why didn’t the original program forward packets between the hosts?
a. The original program did not forward packets between the hosts because there
were no routes set in place for the routers to communicate and forward packets.

3. Is the line ‘ r3.cmd('sysctl -w net.ipv4.ip_forward=1') ’ required?


a. This line is required. It tells the router to continue passing along packets that may
not necessarily be intended for it. In testing, if the forward value is set to zero, h1
and h2 will no longer be able to communicate with anything past R3.
Communication will stop at R3 for all hosts.

4. Intentionally break your working program, e.g.: change a subnet length, IP address, or
default route for a host. Explain why your change caused the network to break.
a. For this task, the default route for h2 was changed from 10.0.0.1 to 10.0.1.1. With
this change, h2 could no longer communicate with certain items and vice versa.
This is because the h2 no longer had a proper route to r3. While it was still able to
ping r3, it was unable to communicate with anything past that point.

Task 6:
a. Screen capture of a successful chat session between the two chat clients
b. Screen capture of a Wireshark trace of the communication between a chat client and the
chat server

Task 7: Screen capture of wget of web server index file


Task 8: Screenshot of both decrypted server (web and chat) certificates.

You might also like