address of 127.0.0.1.
Notice that zero is not included in Class A. The zero address is used for network-to-network broadcasts. Also, note that there are two other classes of networks, Classes D and E. Class D networks are reserved for multicast addresses and are not for use by network hosts. Class E addresses are deemed experimental, and thus are not open for public addressing.
> Class B — Consists of networks defined by the first two octets, with the first ranging from 128 to 191. The '128.' network is also reserved for local network use. There are 16,382 Class B networks — each with 65,534 possible hosts.
> Class C — Consists of a network defined by the first three octets, with the first ranging from 192 to 223. The '192.' network is another that is reserved for local network use. There are a possible 2,097,150 Class C networks of up to 254 hosts each.
No host portion of an IP address can be all zeros or 255s. These addresses are reserved for local network broadcasts. Broadcast messages are not typically seen by users. IP addresses with all zeros in the host portion are reserved for network-to-network broadcast addresses
These classes are the standard, but a
> Class A — 255.0.0.0
> Class B — 255.255.0.0
> Class C — 255.255.255.0
Because of the allocation of IP addresses for Internet hosts, it is now impossible to get a Class A network. It is also nearly impossible to get a Class B network (all the addresses have been given out, but some companies are said to be willing to sell theirs), and Class C network availability is dropping rapidly with the current growth of Internet use worldwide. See the following sidebar.
The current IPv4 address scheme is based on 32-bit numbering and limits the number of available IP addresses to about 4.1 billion. Many companies and organizations (particularly in the United States) were assigned very large blocks of IP addresses in the early stages of the growth of the Internet, which has left a shortage of 'open' addresses. Even with careful allocation of Internet-connected host IP addresses and the use of
To solve this problem, a newer scheme named IPv6 (IP version 6) is being implemented. It uses a much larger addressing solution based on 128-bit addresses, with enough room to include much more information about a specific host or device, such as
You can get a good overview of the differences between IPv4 and IPv6 policies regarding IP address assignments, and the registration process of obtaining IP addresses, by browsing to http://www.arin.net/library/index.html. Read the Linux IPv6 HOWTO by browsing tohttp://tldp.org/HOWTO/Linux +IPv6-HOWTO/.
Fedora supports the use of IPv6 and includes a number of networking tools conforming to IPv6 addressing. You can configure support for IPv6 by using settings and options in the file named network
under the /etc/sysconfig
directory, along with making changes to related network configuration files, such as /etc/hosts
. Many IPv6-based tools, such as ipcalc6
, ping6
, and traceroute6
, are available for Fedora. See various files under the /usr/share/doc/initscripts
directory for more information specific to setting up IPv6 addressing with Linux and Fedora. Migration to IPv6 is slow in coming, however, because the majority of computer operating systems, software, hardware, firmware, and users are still in the IPv4 mindset. Supporting IPv6 will require rewrites to many networking utilities, portions of operating systems currently in use, and firmware in routing and firewall hardware.
Dynamic Host Configuration Protocol
As its name implies, /etc/resolv.conf
, and configuring default routing and gateway information for a host. This section first describes how to use DHCP to obtain IP address assignment for your NIC, and then how to quickly set up and start a DHCP server using Fedora.
You can learn more about DHCP by reading RFC 2131, 'Dynamic Host Configuration Protocol.' Browse tohttp://www.ietf.org/rfc/rfc2131.txt.
How DHCP Works
DHCP provides persistent storage of network parameters by holding identifying information for each network client that might connect to the network. The three most common pairs of identifying information are the following:
> Network subnet/host address — Used by hosts to connect to the network at will
> Subnet/hostname — Enables the specified host to connect to the subnet
> Subnet/hardware address — Enables a specific client to connect to the network after getting the hostname from DHCP
DHCP also allocates to clients temporary or permanent network (IP) addresses. When a temporary assignment, known as a
DHCP offers your network some advantages. First, it shifts responsibility for assigning IP addresses from the network administrator (who can accidentally assign duplicate IP addresses) to the DHCP server. Second, DHCP makes better use of limited IP addresses. If a user is away from the office for whatever reason, the user's host can release its IP address for use by other hosts.
Like most things in life, DHCP is not perfect. Servers cannot be configured through DHCP alone because DNS does not know what addresses DHCP assigns to a host. This means that DNS lookups are not possible on