Need help with a class assignment.

EMT760

Commendable
Aug 31, 2016
32
0
1,530
I'm doing a IVP4 assignment which is basic IP addressing. I know that class has A network has 8 bits and one is set to 0. Class B has 14 bits ( 15) and the assignment below I'm supposed to ID the Network ID and the Host ID by splitting them.


Provide the network ID and the Host ID for the given IP address. IP addr:
197.100.50.191



Here the answers. Specified Answer for: Network
Correct 197.100.50
Specified Answer for: HOST ID
Correct191

Trying to determine how your able to figure that out. Thanks!
 
Solution
I'm sorry that you are having to learn classful networking. You will likely never encounter it in the real world it will probably only serve to confuse you when it comes time to learn classless which you will actually use. That said, you still have to pass those tests so here is a quick rundown.

Leading bits are what determine the class. 0 = class A, 10 = class B, 110 = class C, 1110 = class D, and 1111 = class E (I seriously doubt you will see D or E even on a test but you never know). Now as for what that actually means: if you were to write out the ip in binary, the leading digits will match up with one of the above determining its class.
EX:
197.100.50.191 in binary is 11000101.01100100.00110010.10111111. The leading...

EMT760

Commendable
Aug 31, 2016
32
0
1,530
Correct. With diff class IP it changes the amount of " octets" for instance take this problem into consideration.

132.100.50.191 Provide the network ID and the Host ID for the given IP address.


132.100

50.191
 
You need to tell your teacher to stop teaching extremely outdated material. As mentioned above the concept of classful networks is not used any more and hasn't been for many years.

Pretty much the names class a or class b are just used as a short hand name for /8 or /16 subnet masks. There really is no way to look at a IP and know what subnet mask is being used. If I gave you 10.1.2.3 would you actually think the subnet mask was 255.0.0.0 just because the 10 network has historically been known as a class a address.

Now if you want the real answer to your question. The actual subnet mask for
197.100.50.191

197.96.0.0/13.

It is advertised by a company out of south africa called internet solutions. Hard to say what they do with it internally but when you look in the main internet routing tables you will not see 197.100.50/24 anyplace.

Go look at BGP.he.net it is one of the simpler to use sites that lets you pull internet routing information.

 

w00sey

Commendable
Dec 7, 2016
12
0
1,540
I'm sorry that you are having to learn classful networking. You will likely never encounter it in the real world it will probably only serve to confuse you when it comes time to learn classless which you will actually use. That said, you still have to pass those tests so here is a quick rundown.

Leading bits are what determine the class. 0 = class A, 10 = class B, 110 = class C, 1110 = class D, and 1111 = class E (I seriously doubt you will see D or E even on a test but you never know). Now as for what that actually means: if you were to write out the ip in binary, the leading digits will match up with one of the above determining its class.
EX:
197.100.50.191 in binary is 11000101.01100100.00110010.10111111. The leading digits are 110 meaning this is a class C address.
EX2:
132.100.50.191 in binary is 10000100.01100100.00110010.10111111. The leading digits are 10 meaning this is a class B address.

To save yourself some effort you can also just memorize first octet values. 0-127 (00000000-01111111) = class A, 128-191 (10000000-10111111) = class B, 192-223 (11000000-11011111) = class C.

Now how to find the network ID. For class A it is the first octet, for class B it is the first 2 octets, for class C it is the first 3 octets. The remaining octets are your host ID.

Once you pass whatever test this is for, forget it as fast as you can and learn classless.
 
Solution

EMT760

Commendable
Aug 31, 2016
32
0
1,530
Thanks for the replies guys. My teacher is a product of the 80's when he got his B.A. in Computer Science, he is old school and tells us about the " old days".

Anyways, I discovered how to solve the answers. I had to memorize each IP class A-C and each octet value and default subnet mask. So the purposes of the test it works for me. Not sure if I'm doing it right or not.

For instance class A IP's are 1-126, with a single octet value so 126 would be the host ID the rest being the Network ID, for the subnet mask since A class is a single octet the default subnet mask is 250.0.0.0
 

TRENDING THREADS