Analyzing IP Networks – Answers, Exercise 3
Today’s post lists the answers to the previous post’s question, with a few comments, with a place to discuss. Nothing snazzy, but it does hit the fundamentals. Enjoy!
Related links:
- The original list of problems
- Post about how to find the answers
- Deeper info from the ICND1 OCG book
Class, Network ID, and Network Broadcast
The Network ID can be derived from the class A, B, or C DDN value by copying the network octets, and writing a 0 for the rest of the octets. Similarly, the network broadcast address can be found by using the same logic, but writing a 255 instead of 0 for the host octets. Table 2 shows the class for each of the five problems, along with the derived network ID and network broadcast address for each class A, B, or C address.
Table 2: Network IDs and Network Broadcast Addresses
DDN Value | Class | Network ID | Network Broadcast Address | |
1 | 126.0.0.1 | A | 126.0.0.0 | 126.255.255.255 |
2 | 192.0.0.1 | C | 192.0.0.0 | 192.0.0.255 |
3 | 223.0.0.1 | C | 223.0.0.0 | 223.0.0.255 |
4 | 1.1.1.1 | A | 1.0.0.0 | 1.255.255.255 |
5 | 123.321.123.321 | N/A | N/A | N/A |
Usable Host IP Addresses
To find the range of IP addresses that can be used by hosts in the (unsubnetted) classful network, just add 1 to the network ID and subtract 1 from the network broadcast address. Table 3 shows the results for these five problems.
Table 3: Ranges of Usable Addresses
Network ID | Lowest Usable Host Address | Highest Usable Host Address | Network Broadcast Address | |
1 | 126.0.0.0 | 126.0.0.1 | 126.255.255.254 | 126.255.255.255 |
2 | 192.0.0.0 | 192.0.0.1 | 192.0.0.254 | 192.0.0.255 |
3 | 223.0.0.0 | 223.0.0.1 | 223.0.0.254 | 223.0.0.255 |
4 | 1.0.0.0 | 1.0.0.1 | 1.255.255.254 | 1.255.255.255 |
5 | N/A | N/A | N/A | N/A |
Hi Wendell,
why 123.321.123.321 is marked an N/A?
It seems to me a valid Class A IP address, am i wrong?
Hi Paolo,
It’s easy to overlook, but… check out the 2nd and 4th octet values of “321”. That value is not allowed; it must be between 0-255 inclusive.
Ahahah, shame on me!
I focused only on the first octet.
Thank you for the reply!
aha that last one got me. Careless mistake! Thanks for the practice!
Thanks for pointing this out. The last address looked also valid to me until you specified the range 0-255. Easy to overlook, we could find out later when the value exceed the number in the network mask.
Hi sir,
In your CCNA-Volume 1, page 368, Q# 2, why one of the correct answers is D and not E?
Regards,
Davood
Hi Davood,
I wonder if you weren’t aware of the answers appendix C in the back of the book? From the explanation for this question in the appendix:
The router also adds a route called a local route, which is a route for the interface IP
address with a 255.255.255.255 mask. In this case, that means the router adds a local
route for address 10.1.1.100 with mask 255.255.255.255.
Let me know if that doesn’t answer it for you.
Hi,
CCNA volume 1, chapter 1, Q# 4, answer is B(on one computer), but in page 22, you’ve mentioned ” two computers. What’s the correct answer?
Davood,
CCNA Vol 1, Chap 1, Q#4, the correct answer is B as listed in the book. Not sure why you think answer B is “one computer”, as the text for answer B is “Same-layer interaction”? Same layer interaction occurs in the code that implements the same layer’s functions on two different computers, as described in this question. Hope this helps.
Wendell
What will occur to the default-gateway of a SW, if the networker configure both “ip address dhcp” & “ip default-gateway”? Can he configure both?
Thanks
Hey Davood,
First answer: I’m sure both can be configured, as there is no mechanism to prevent it. The question then is if a default gateway is learned w/ DHCP, does the switch use that value or the configured value? I never tried. I’ve added it to my todo list to try it on a switch or two. I’ll do my best to circle back – may be a few more weeks. If you try it for yourself, let me know.
Hello Mr Odom
in the page 325 Chapter 14: Analyzing Existing Subnets, you wrote:
“The original purpose for the subnet broadcast address was to give hosts a way to send one packet to all hosts in a subnet and to do so efficiently. For example, a host in subnet A could send a packet with a destination address of subnet B’s subnet broadcast address. The routers would forward this one packet just like a packet sent to a host in subnet B. After the packet arrives at the router connected to subnet B, — that last router would then forward the packet to * **all hosts in subnet B***, typically by encapsulating the packet in a data-link layer broadcast frame. As a result, all hosts in host B’s subnet would receive a copy of the packet”
please can you explain me ??? i thought the flooding frames is done only by switches and the routers never broadcast a frame????
and how a router broadcast a packet to all hosts
thank you very much
Let me attempt it without writing several pages worth of reply text. 🙂
Your note “I thought the flooding of frames is done by switches” – that is true. Switch flood frames if the switch does not have a match MAC table entry, or if the frame is an ETHERNET broadcast frame.
Your note “… routers never broadcast a… frame”. My book does explain that concept, and it may need improvement. Regardless, to clarify: routers do not forward IP broadcasts to the 255.255.255.255 local subnet broadcast address. Several protocols send packets to that address, notably DHCP. Routers can open and process the packets but they do not forward those packets unchanged.
For packets sent to some subnet’s broadcast address, yes, those are broadcast addresses, and yes, the router forwards them, so maybe I need to improve the explanation in the book. That said, what really happens? Say the packets flows into R1, then R2, then R3, and then into the subnet. R1 does not flood the packet, but instead routes it like any other packet sent to that subnet. R2 likewise forwards the packet like any other packet to a destination in the subnet. When R3, connected to the subnet, forwards the packet into the subnet, it leaves the destination IP address as is. But as that address is not a unicast IP address, there is no matching MAC address in the ARP table, and can’t be. So, R3 encapsulates the packet in an Ethernet frame, with an Ethernet destination address of ffff.ffff.ffff.
So, the routers do not flood the frame, or even broadcast it all over the IP network. That last router does encapsulate in a LAN broadcast frame so it reaches all hosts in the destination subnet.
Hope this helps.
Wendell
Hello Wendell,
This question is not related to this exercise, it is a subnetting question I encountered on PTP. This is the question id: Question Id : 200301-GB-v1-P-05-19 and
This is the explanation to the answer: R1, R2, and R3 have IP addresses on their common subnet that are all in the same subnet – 10.2.0.0/19, range 10.2.0.0 – 10.2.31.255. As a result, given the assumption that no layer 1 or layer 2 problems exist, all three routers should be able to ping each other. Assigning R4’s Fa0/0 the 10.2.33.4/19 would put R4 in a different subnet, namely 10.2.32.0/19, so R4 would not be able to ping R2’s Fa0/0 IP address. On R2, the attempt to configure the Fa0/1 interface with IP address 10.2.31.1/24 would be rejected because the subnet (10.2.31.0/24, range 10.2.31.1 – 10.2.31.254) overlaps with the subnet connected to R2’s Fa0/0 interface.
I have underlined the part I need help with. My question is this: How can I calculate/derive the subnet given some ip addresses & masks? In this question, 3 ip addresses were given with /27 masks, I was unable to determine the subnet to which they belong which in this case as per the answer is /19. Hopefully my question makes sense.
Also, how do I use the question id to find the topic to which the question relates? I interpreted this question as coming from volume 1, part 5 and chapter 19. But chapter 19 is not in part 5 of the volume 1 study material.
Hello again Wendell,
Never mind, I see my mistake, I thought the interesting octet was in the last octet. But I still need help figuring out the relevant chapter to a question. Thank you for your time and patience.
Hi Tewa,
No worries on the questions. Getting confused and then overcoming that confusion is part of learning. This is a safe place to live out that struggle!
As for figuring out the book content related to an individual question, the app does not supply that information if using the standard product. If you buy the premium edition, which includes PDFs of the books, the app then gives you a link to the related book content, so you can click and go to the PDF pages in that section. However, after reviewing your question, maybe it would be useful to at least display the chapter and heading for all users. So I’m going to ask.
FYI, this question requires knowledge from many chapters. It’s also assigned to the Part Review bank for Part 5. (Looks like you were attempting to interpret the QID.) That 19 in the QID was just a relative number, rather than a chapter. There’s more relevant content in the ping topics in chapter 18. Hope that helps for this question.