Previous Page | Next Page

  1. Agustin's Linux Manual
  2. Networks & Servers
  3. About the Author
  4. Table of Contents
  5. IP Addresses Networks and Subnets
  6. Network Classes
  7. IP Address in Decimal Notation
  8. Sub-netting
  9. Designing Subnets
  10. Allocating Subnets
  11. Defining Host Addresses
  12. Variable Length Subnet Mask
  13. Routing Protocols
  14. Classless Internet Domain Routing
  15. Servers - Chapter 9
  16. Apache Web Server
  17. Configuring Apache
  18. Uploading Web Pages
  19. Apache Overview
  20. MIMEMagic
  21. DNS Servers
  22. Welcome to Webmin
  23. Creating the Master Domain
  24. Adding the Reverse Zone
  25. Querying the DNS server
  26. Adding Virtual Domain to DNS Server
  27. Reverse Zone for Virtual Zone
  28. Binding IP Address for Virtual Domain
  29. Virtual Web Hosting
  30. DNS Security Options
  31. FTP Server
  32. Securing the FTP Server
  33. Email Server
  34. Postfix Configuration
  35. Dealing with Identical Users
  36. Configuring Email Clients
  37. Configuring Outlook
  38. Samba Server
  39. Configuring SAMBA Server
  40. The smb.conf File
  41. smb.conf Analysis
  42. Adding Users to Samba

Defining Host Addresses for each subnet

In practice the host field cannot contain 0s or 1s. The 0s hosts will represent the base network and the 1's hosts will represent the broadcast in the network. So let's go back to our formula, remember we have 5 bits left for our hosts; therefore 25-2 = 30. Note two hosts are subtracted because one host will be the base of the network and the other one will be the broadcast.

Refer to Table 8.5, and pick the subnet #3 to see how the individual and valid host would be in the network. Observe that the 5-bits that were left for the host will be now modified.

Subnet #3

#111000000101010000000000101100001= /27
#311000000101010000000000101100011= /27
Table 8.8

The broadcast address for our subnet #3 would be:

Table 8.9

Observe that the broadcast address for Subnet #3 is exactly one less than the base address of Subnet #4 ( The broadcast address will be always one before the next new base subnet.

Let's allocate Subnet #4 so you can see what I am talking about.
Now observe that our base address is subnet 4
Subnet #4

#111000000101010000000000110000001= /27
#311000000101010000000000110000011= /27
Table 8.10

Now you see how easy it is to allocate a sub-netted network…
The broadcast address for our subnet #3 would be:

Table 8.11

Observe again the broadcast IP address is right before the next subnet, which is in this case (subnet #5).

You may have already found this interesting, even though I just mentioned two protocols RIP-1 and BGP-4. These protocols may be a disadvantage in a way. RIP for example is a flat network; it is limited to the network-prefix and only allows a single subnet mask within each network and it is because it does not provide subnet mask information in its routing table. Therefore for any new routes it encounters it just makes assumptions of the subnet mask.

So let's analyze how RIP makes its guesses. A router in its nature has several ports, connected at the same time to a port known as gateway (a door to go out). Each port has an IP address, assuming that port 1 has been assigned and port 2 has been assigned – Now, note that if the router sees a network in one of the nodes, it automatically assumes it is a /24 mask because port 1 has a subnet network.

Now note that if the router detects another network, this network will be treated as a /16 mask network because no further information was found.

On the other hand, more flexible protocols could offer advantages and ease of management of networks, therefore RFC 1009 was implemented.