Configuring IPv4 Addressing
Exam: Microsoft 70-649 - TS: Upgrading Your MCSE on Windows Server 2003 to Windows Server 2008, Technology Specialist
We are already aware that an IPv4 address is of 32 bits length and partitioned into 4 octets of 8 bits each. The decimal format with dots is usually adopted for representing an IPv4 address. A subnet mask is a 32 bit number that comprises of a number of one's arranged in a series and followed by a number of zero's which are again arranged in a series. A slash followed the number of one's in the mask can also be used for representing the subnet mask.
IP addresses consist of two parts, where one part depicts the host while the other part represents the network on which that host is placed. A subnet mask performs the task of defining the bits forming an IP address that is used for identifying the host and the network. To explain it with the help of an example, in 192.168.56.0 /24, the /24 is for the subnet mask. It points out that 24 out of 32 bits in address depict ID - the identity of the network. A lower value after slash indicates that a greater number of host addresses is that can be accommodated on that subnet.
If a system that is hosted on a subnet transmits an IPv4 datagram to another system which is hosted on another network, the first thing that the datagram does is to go to the default gateway address that is existing on the subnet. Let us look at two important processes -
- Subnetting is a process that allows subdividing a network address space by increasing the number of one's that are in the subnet mask of the network. This allows creating multiple subnets or broadcast domains that exist in the original network address space.
- Supernetting is a process that combines a number of address spaces that are contiguous to form a single network. This network is capable of being advertised on the internet. Subnetting is done as an internal process in this network.
Variable Length Subnet Masks
Subnet masks can be configured resulting in a subnet mask to be used externally while the others are used internally allowing a more efficient use of network address space. A typical process is where after subnetting a network, a subnet is further drawn into subnets. As the level keeps going down the number of hosts keeps decreasing.
The Longest Match Algorithm
Layer 3 devices control the process of routing. These are configured in a manner that allows using the longest match algorithm for routing the datagram to the proper subnet.
An alternative method that can be used for IPv4 Configuration is by using netsh commands or by using the TCP/IPv4 Properties graphical user interface (GUI). The alternate method is briefly discussed below.
Alternate Configuration
The dialog box can be accessed by clicking on Manage Network in the Network and Sharing Center in the Control Panel. In the proper interface, Properties has to be selected. Here Internet Protocol Version 4 (TCP/IPv4) has to be selected followed by clicking on Properties.
The IP address, a subnet mask and a default gateway can be specified right on the General tab of Internet Protocol Version 4 (TCP/IPv4) Properties dialog box. Another option is to configure the interface allowing it to obtain the settings on its own. The option of obtaining the static IPv4 address for a DNS server on its own is also available. If a static interface address is configured, a static DNS server address also needs to be specified. For automatic configuration, the DHCP is used and in case no DHCP leases are available, alternate configurations are applied.
The alternate configuration can be specified on the Alternate Configuration tab as shown in the figure below. As a default action, alternate configuration takes place through APIPA. A static address can be applied if a DHCP lease is not available. It is beneficial when there are more than one system on a network.
The Alternate Configuration tab
The alternate configuration function can be used in case one is using a mobile computer between the house and the office. While in office, the computer uses a DHCP-allocated TCP/IP configuration and while at home the system uses the alternate configuration.