1 Crore+ students have signed up on EduRev. Have you? Download the App |
An organization requires a range of IP addresses to assign one to each of its 1500 computers. The organization has approached on Internet Service Provider (ISP) for this task. The ISP uses CIDR and serves the requests from the available IP address space 202.61.0.0/17. The ISP wants to assign an address space to the organization which will minimize the number of routing entries in the ISP’s router using route aggregation. Which of the following address spaces are potential candidates from which the ISP can allot any one to the organization?
I. 202.61.84.0/21
II. 202.61.104.0/21
III. 202.61.64.0/21
IV. 202.61.144.0/21
Concept:
CIDR stands for Classless Inter Domain Routing. CIDR denotes the number of bits in the Netid. Upon subnetting, any IP address consist of three subparts: Netid (bits for identifying the network), subnetid (bits for subnetting), and Hostid (bits for address allocation to hosts)
Calculation:
Given CIDR is 17, that means Netid=17.
There are 1500 devices, so the number of bits in Hostid= 11 (because 211 ≥ 1500)
Therefore, subnet bits= 32- (17+11) = 4
Hence, in any IP address in the given network, first 17 bits be part of network, next 4 of subnet ans last 11 bits would be for host address. Host bits should be all 0s
Address I: Cannot be allotted
202.61.84.0/21= 202.61. 0 1010 100.00000000. This address is not possible because the all the 11 host bits should be zero, but it contains a 1.
Address II: Can be allotted
202.61.104.0/21= 202.61. 0 1101 000.00000000. This address is possible as all the host bits are 0 and network bits are also satisfied.
Address III: Can be allotted
202.61.64.0/21= 202.61.0 1000 000.0000000. This address is possible as all the host bits are 0 and network bits are also satisfied
Address IV: Cannot be allotted
202.61.144.0/21= 202.61. 1 0010 000. 00000000. This address is not possible because bit in Netid has become 1.
Concept
Pre-IPv6 is also known as IPv4
Pre-IPv6 address consists of the Network part and Host part
Explanation
IPV4 size consists of 32 bits
<---------------32 bit------------>
Network ID + Host ID = 32 bits
Calculation
8 bit = 1 byte
× by 4 on both sides
32 bits = 4 bytes
The length of an IP address in bytes (pre-IPv6) is 4.
There is a total of 32 bits in the IPv4 address space.
For example, if a network has the address “192.0. 2.0/24”, the number “24” refers to how many bits are contained in the network. From this, the number of bits left for address space can be calculated.
Hence the correct answer is 32.
There is an Ethernet port on a router were assigned an IP address of 172.16.112.1/25. Which of the following would be the valid subnet address of this host?
The correct option is (a)
172.16.112.0
Concept:
Subnetting is the process of creating smaller networks called subnets by taking bits from the HOST portion of an IP address.
Explanation:
Given IP IS 172.16.112.1/25 ⇒ NID (Network ID) is 25 bits.
We know that a subnet mask is obtained by replacing all NID(Net ID) bits with 1 and HID(Host ID) bits with 0.
So SM is 255.255.255.10000000 (the First 25 bits are NID and the last 7 bits are HID).
i.e, SM is 255.255.255.128.
Now perform Bitwise AND operation between subnet address and given IP address.
⇒ (255.255.255.128) and (172.16.112.1) = 172.16.112.0
Concept:
Private IP addresses:
Private IP addresses are ones that only function on the local network. On the Internet, these addresses are not routable. The network router simply assigns the address to your specific device. Every device on the same network is assigned a unique private IP address.
Private IP address ranges are
Explanation:
Hence the correct answer is 3.
Concept:
Hence option A and option B and option C are valid private IP Addresses.
Hence the correct answer is option A, option B, and option C.
An IPv4 address is a __________ address, which is categorised into different IP classes.
IP address:
IP address is an address having information about how to reach a specific host. The 32 bit IP address is divided into five sub classes. These are:
Class D and E are reserved for multicast and experimental purposes.
IPv4 address:
An IPv4 address is a 32 bits address, which is categorized into different IP classes.
IPv4 addresses are divided into two parts: a) Network ID b) Host ID
Note:
An IP packet has arrived with the first 8 bits as 0100 0010. Which of the following is correct ?
Concept:
Minimum header size of IPv4 = 20 byte
Maximum header size of IPv4 = 60 byte
Header length field in the IPv4 header is 4 bits.
Maximum possible value (1111) = 15
The scaling factor of 60/15 = 4 is introduced
Explanation:
IP header:
But the first 8 bits in the Question are 0100 0010.
The first 4 bits indicate the version which is IPv4 (0100)
Now the next four bit indicates Header length (bits decimal value × 4) which is 2 × 4 = 8 bytes
which is not possible since the minimum header length for IPv4 is 20 bytes.
Hence Receiver will reject the packet.
Therefore option d is the correct answer.
Your router has the following IP address an Ethenet 0: 172.16.2.1/23. Which of the following can be valid host IDs on the LAN interface attached to the router?
1. 172.16.1.100
2. 172.16.1.198
3. 172.16.2.255
4. 172.16.3.0
Concept:
a.b.c.d/NID
Therefore 23 bits are in NID and only 9 bits for Host id.
Explanation:
Last two-byte of IP address is represented in binary
Ethernet: 172.16.2.1/23
Range of IP address: 172.16.00000010.0000000 to 172.16.0000011.11111111
Range of IP address: 172.16.2.0 to 172.16.3.255
First and last IP address is reserved
Valid Host IP address: 172.16.2.1 to 172.16.3.254
Statement 1: 172.16.1.100
It is not valid since it does not fall in the range
Statement 2: 172.16.1.198
It is not valid since it does not fall in the range
Statement 3: 172.16.2.255
It is valid since it does fall in the valid range
Statement 4:172.16.3.0
It is valid since it does fall in the valid range
Hence option 3 is the correct answer.
Important Point:
NID stands for network ID.
IP address is an address having information about how to reach a specific host. The 32 bit IP address is divided into five sub classes. These are:
Class D and E are reserved for multicast and experimental purposes.
IPv4 addresses are divided into two parts: a) Network ID b) Host ID
12 videos|93 docs|65 tests
|
12 videos|93 docs|65 tests
|