• edited by
27,895 views
73 73 votes
In the network $200.10.11.144/27$, the $\text{fourth}$ octet (in decimal) of the last $\text{IP}$ address of the network which can be assigned to a host is _______.

6 Answers

Best answer
117 117 votes
Answer $= 158$

$144$ in binary $= 100 10000$

out of this $3\;\text{bits}$ in left are subnet bits. $(27\;\text{bits}$ are used for subnet, which means top $3\;\text{bytes}$ and leftmost $3\;\text{bits}$ from the last byte)

So, the $4^{\text{th}}$ octet in the last $\text{IP}$ address of the network which can be assigned to a host is $100 11110$. (its not $100 11111$ because its network broadcast address)

So, $10011110$ is $158$ in decimal.
• edited by
38 38 votes

last octate will be 100 11111 = 1 + 2 + 4+ 8+ 16 + 128 = 159

The question seems to by asking about host address. The address with all 1s in host part is broadcast address and can't be assigned to a host. So the maximum possible last octal in a host IP is 10011110 which is 158 ( 159 - 1 = 158 ) . 

7 7 votes
NID = 27 bits

HOST ID = 5 bits


144 in binary = 10010000

so, 200 . 10 . 11 . 100 00000 ( Reserved for Network id)

      200 . 10 . 11 . 100 00001

      200 . 10 . 11 . 100 00010

      ---------------------------------

      ----------------------------------

     200 . 10 . 11 .100 11110 = 200 . 10 . 11 .158 (Last IP address of the network which  is assigned to host)

     200 . 10 . 11 .  100 11111 = 200 . 10 .11 . 159 (Reserved for DBA)
5 5 votes
Reusing Todd Lammle's method (CCNA) here, which I used in another answer.

$/27$ bits turned on is $255.255.255.224$. Thus $256 - 224 = 32$ is the block size for the last octet. So subnet addresses follow the pattern $200.10.11.0$, $200.10.11.32$, $200.10.11.64$, $200.10.11.96$, $200.10.11.128$, $200.10.11.160$ and so on.

Thus we can easily see that the given IP address is in the $200.10.11.128$ subnet, whose last valid host address is $200.10.11.158$. (as $200.10.11.159$ is the broadcast address).
2 2 votes

The below image explains why 158 should be answer.

As last and first value cant be used to assign to a host

we always assign $2^{hid}$-2 

 

The last bit is 0 as if it were 1, it would have been directed broadcast address of the Network

 

Answer:
Position:
Show:

Related questions

155 155 votes
15 answers 15 answers
59.2k
59.2k views
go_editor asked Feb 15, 2015
59,203 views
Two hosts are connected via a packet switch with $10^7$ bits per second links. Each link has a propagation delay of $20$ microseconds. The switch begins forwarding a pack...
73 73 votes
13 answers 13 answers
26.9k
26.9k views
go_editor asked Feb 15, 2015
26,931 views
Consider a network connecting two systems located $8000$ $\text{Km}$ apart. The bandwidth of the network is $500 \times 10^6$ $\text{bits}$ per second. The propagation sp...
48 48 votes
11 answers 11 answers
23.0k
23.0k views
go_editor asked Feb 14, 2015
22,959 views
Consider a CSMA/CD network that transmits data at a rate of $100\;\textsf{Mbps}\; (10^8\;\text{bits}$ per second) over a $1\;\textsf{km}$ (kilometre) cable with no repeat...
68 68 votes
5 answers 5 answers
20.9k
20.9k views
go_editor asked Feb 16, 2015
20,867 views
Consider the following C program:#include<stdio.h int f1(void); int f2(void); int f3(void); int x=10; int main() { int x=1; x += f1() + f2 () + f3() + f2(); printf("%d", ...