Pa4 Documentation
Pa4 Documentation
1. The two switch instantiations on lines 30 and 31 originally were placed after the
instantiation of r5, however this caused a build error, so it was moved.
2. The ip address of r5 on line 33 was changed from 0.0.0.0. so that it would be part of the
proper subnet, 10.0.2.0.
3. The ip address of r4 on line 36 was changed from 0.0.0.0. so that it would be part of the
proper subnet, 192.168.1.0.
4. The ip address of r3 on line 39 was changed from 0.0.0.0. so that it would be part of the
proper subnet, 10.0.1.0.
5. The ip address of host h3 on line 44 was changed from 10.0.0.1 so that it would be in
the appropriate subnet, 10.0.2.0.
6. The ip address of host h1 on line 45 was changed from 10.0.0.2 so that it would be in
the appropriate subnet, 10.0.1.0.
7. The ip address of host h2 on line 46 was changed from 10.0.0.3 so that it would be in
the appropriate subnet, 10.0.1.0.
8. The ip address of host h4 on line 47 was changed from 10.0.0.4 so that it would be in
the appropriate subnet, 10.0.2.0.
9. On lines 57 and 58, links between r3 & r4, and r4 & r5, were altered to explicitly set
interface ips for the connection.
10. on lines 63, 64, 66, 67, 69, and 70, static routes were created and set for each end of
each router, allowing for inter-subnet communication.
5. Answers to Questions:
b. Why didn’t the original program forward packets between the hosts?
Answer: The original program would not successfully build because the router r5 was being
instantiated before the switches s1 and s2 were created. With that problem fixed, however, the
program would still not successfully be able to forward packets between hosts on different
subnets. This is because the original program had did not have the appropriate links and routes
to establish a two-way connection between subnets.