3. What is the difference between "classful" and "classless" IP addressing?
When the concept of IP addressing was first thought up, it was decided that IP addresses would be put into classes. These classes are:
|Class||IP address range||Default subnet mask|
|A||220.127.116.11 to 127.255.255.255||255.0.0.0|
|B||18.104.22.168 to 22.214.171.124||255.255.0.0|
|C||192.0.0.0 to 126.96.36.199||255.255.255.0|
In real life, an IP address today could have any legal subnet mask. For example, you may have an IP address of 188.8.131.52 with a subnet mask of 255.255.255.240. Or you may have an IP address of 184.108.40.206 with a subnet mask of 255.0.0.0. Sometimes, people will say things like "I need an entire Class C block of addresses." This just means that they want 254 contiguous and usable IP addresses.
The term "classful" means that the IP address or software is assuming that IP addresses fall into these classes and uses the default subnet mask shown. If a routing protocol, like RIP, is classful, it has trouble with the IP addresses that don't use the default subnet masks.
On the other hand, a "classless" routing protocol, like RIP version 2, doesn't assume that IP addresses have their default subnet masks. Today, you should assume that all network devices are classless unless you find that they are not (like routing protocols RIP or IGRP, or a very old computer operating system).
4. What is a default gateway?
Contrary to popular belief, a default gateway is not a required piece of IP address configuration on any computer. However, if you want to access devices outside of your local network (such as devices on the Internet), a default gateway is required.
A default gateway is where a computer sends requests to IP addresses that are not on its local network. How does the computer know what is and what is not on its local network? As discussed above, the subnet mask is what the computer uses to know what is and what is not on its local network. Say, for example, your IP address is 220.127.116.11 and your subnet mask is 255.255.255.0, and you make a Web request to 18.104.22.168. Because of your subnet mask, your local area network is the 22.214.171.124 network. Meaning anything that is 126.96.36.199 through 254 is on your local network. Because you are requesting 188.8.131.52, which is not on your local network, that packet would be sent to your default gateway.
Tomorrow: Private IP addresses