In: Computer Science
What is the network address if given this IP address and the following subnet mask? Please note that the network may be different if the subnet mask is different.
IP address 178.47.188.176
How many network bits if the following subnet masks?
4. 255.128.0.0
IP Address:
An IP address is an identifier or label used to identify a machine on the internet or a particular network. Each of the devices on the internet must have an IP address for identification.
IPv4 is the first version of Internet Protocol that uses a 32-bit address and this protocol is most widely used.
Total number of IP address supported by IPv4 = 232
The netmask and subnet mask is used to divide the IP address as given below:
The netmask is a sequence of '1' followed by a sequence of '0' and it is used to divide an IP address into multiple subnets.
The subnet mask is a sequence of '1' followed by a sequence of '0' and it is used to separate a big network into smaller multiple networks.
The subnet mask is used to separate the IP address into a network address and host address.
It is made by setting '1' to all network bits and '0' to all host bits. In a network, the first and last IP addresses are used for the special purpose and the remaining addresses are used as a host address.
The given IP address is:
178.47.188.176
In classful addressing, an IP address is related to a class and we need to purchase a class of the IP addresses as per the requirement.
Class A:
The range of the first octet: 0 to 127
Subnet mask = 255.0.0.0
Class B:
First octet range: 128 to 191
Subnet mask = 255.255.0.0
The given address belongs to class B.
In class B, the first 16 bits are used for the network id and the last 16 bits are used for the host id.
The given subnet mask is: 255.254.0.0
The number of network bits is = 15
The network address is = 178.46.0.0
The given subnet mask is: 255.255.252.0
The number of network bits is = 22
The network address is = 178.47.188.0
The given subnet mask is: 255.255.255.248
The number of network bits is = 29
The network address is = 178.47.188.176
The given subnet mask is: 255.128.0.0
The number of network bits is = 9
The network address is = 178.0.0.0