Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

I have a doubt related to subnetting?

Status
Not open for further replies.

ashwini jayaraman

Member level 2
Member level 2
Joined
Jan 17, 2013
Messages
49
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Visit site
Activity points
1,601
If an Ethernet port on a router were assigned an IP address of 172.16.112.1/25, what would
be the subnet address of this host?
A. 172.16.112.0
B. 172.16.0.0
C. 172.16.96.0
D. 172.16.255.0
E. 172.16.128.0

When I subnetted, the answer is B. but A is given as solution...I cant get this:(HELP ME OUT
 

There are four bytes/octets or 32 bits utilized in an IPv4 address.

The address 172.16.112.1 can be represented as the following binary number:

10110000 00010000 01110000 00000001

The subnet mask of 25 can also be represented by dotted decimal:

255.255.255.128

Or as a binary number:

11111111 11111111 11111111 10000000

If you bitwise AND the original IPv4 address in binary form with the subnet mask in binary form above, you will determine the subnet address:

11111111 11111111 11111111 10000000

10110000 00010000 01110000 00000001
=
10110000 00010000 01110000 00000000

Or

172.16.112.0

Another method is simply to count the number of bits indicated in the subnet mask, 25 in this case, starting from the left most bit of the IPv4 Address and once the number is reached discard the remaining bits leaving the subnet address:

10110000 00010000 01110000 00000001

Leaving:

10110000 00010000 01110000 00000000

Or:

172.16.112.0

As the subnet address.

Hope this explanation helps with your understanding.

BigDog
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top