In: Computer Science
Consider a router with the IP address 192.168.1.254/26:
a) Indicate the subnet mask for the above address.
b) Demonstrate calculation of the network address (including binary and decimal values).
c) Write the relevant DHCP subnet configuration text for this network where the first 50 addresses will be dynamically allocated to hosts.
Ans a,b) An IP address is split into two components a network component and a node component.In early IPv4 networks address classes were used to identify the number of bytes allocated to the network component.The main classes were class A,B,C. With the allocation as follows:
Class
A network,node,node,node
Class B
network,network,node,node
Class
C network,network,network,node
To determine the class you needed to examine the most significant byte (far left).
It is important to understand that the network part of the address is only used for routing IP packets on the public internet.Once the packet enters the private network then the Node address is used and the public Network address is not used.
Now a network administrator can interpret the node address any way they want, and so it is possible to split the node address into subnet and Node. So we could have
Net.Subnet.Node.Node or Net.Subnet.Subnet.Node.
The technique used to create subnets is to use a Mask.
The mask effectively hides the Node component and leaves the
network and subnetwork components.
Address: 192.168.1.254 11000000.10101000.00000001.11 111110
Netmask: 255.255.255.192 = 26 11111111.11111111.11111111.11 000000
Wildcard: 0.0.0.63 00000000.00000000.00000000.00 111111 =>
Network: 192.168.1.192/26 11000000.10101000.00000001.11 000000
(Class C) Broadcast: 192.168.1.255 11000000.10101000.00000001.11 111111
HostMin: 192.168.1.193 11000000.10101000.00000001.11 000001
HostMax: 192.168.1.254 11000000.10101000.00000001.11
111110
c)
To configure a host, we require the following things:
DHCP server assigns IP address to a host as: