obonaventure / cnp3

Computer Networking : Principles, Protocols and Practice (first and second edition, third edition is being written on https://github.com/cnp3/ebook)
https://www.computer-networking.info
508 stars 91 forks source link

lab-5routers --- diagram typo, r1.startup, /r1/tmp/zebra/ospfd.conf, and /r1/tmp/zebra/ripd.conf #269

Open SkyeNygaard opened 4 years ago

SkyeNygaard commented 4 years ago

The lab as outlined in the book has a spelling mistake in the diagram, where the router intending to be router 5 is labeled r1, instead of r5. This can be seen in the diagram. (This is figure 5.87 on page 207)

In the lab.conf for both lab-5routers-rip and lab-5routers-ospf (https://github.com/obonaventure/cnp3/tree/master/book/network/exercises/labs), the code is written corresponding to the diagram in the book.

chrome_LOvuH9XcaY

This diagram lays out that r1 and r2 are connected, r1 and r3 are connected, and r1 and r5 are connected. This is reflected in the conf file, which has

r1[0]="A" r1[1]="B" r1[2]="F" r1[3]="V"

where "A" is the collision domain shared with r2, "B" is the collision domain shared with r3, and "F" is the collision domain shared with r5. "V" is the end network.

However, in r1.startup, eth2 is connected to 172.16.3.1/24, which corresponds to "C", the shared collision domain of r2 and r3. To be correct, in both of these files it should be corrected to 172.16.6.1/24, which is what "F" corresponds to.

Additionally,

network 172.16.3.0/24 area 0.0.0.0

within /r1/tmp/zebra/ospfd.conf should be corrected to

network 172.16.6.0/24 area 0.0.0.0

and

network 172.16.3.0/24

within /r1/tmp/zebra/ripd.conf should be corrected to

network 172.16.6.0/24

mspaint_lfhkghcwZc