Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Subnetting Question

Status
Not open for further replies.

xedgex

MIS
Dec 3, 2007
60
US
I am studying Cisco material and came across one problem with a solution but their solution I can't make sense out of.

Can anyone tell me what this means and HOW to do it?
Step 3: Perform a binary AND operation of the IP address and the subnet mask to calculate the binary equivalent of the subnet.


Step 3 is the 3rd * listed here, I dont understand how you get to this point, I see the pattern and the ending digits but I'm not grasping it;

* 192.168.10.22 = 11000000 10101000 00010010 00010110
* 255.255.255.248 = 11111111 11111111 11111111 11111000
* Subnet = 11000000 10101000 00010010 00010000



 
Binary AND operations go like this:
1 and 1 = 1
0 and 1 = 0
0 and 0 = 0

In your problem you only need to concentrate on the fourth octet since it is the one that you are borrowing bits from. So take 22 and 248 and break it down into the binary equivalent; 00010110 and 11111000.

00010110
11111000
--------
00010000

Subnet = 16

192.168.10.16/29


I hate all Uppercase... I don't want my groups to seem angry at me all the time! =)
- ColdFlame (vbscript forum)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top