The relationship between IP address and subnet mask

sponsored links
Subnet mask is used to determine the IP address of any two computers is the same sub-network basis.

The most simple is the two computers to understand their own IP address and subnet mask for the AND operation, if the result is the same, then the two computers are in the same sub-network, direct communication can be . It's that simple.

Consider the following example:

Operational demonstration of: aa

IP address 192.168.0.1

Subnet Mask 255.255.255.0

Be converted into binary operations:

IP Address 11010000.10101000.00000000.00000001

Subnet mask 11111111.11111111.11111111.00000000

AND operation

11000000.10101000.00000000.00000000
After conversion to decimal:

192.168.0.0

Presentation of the two operations:

IP address 192.168.0.254

Subnet Mask 255.255.255.0

Be converted into binary operations:

IP Address 11010000.10101000.00000000.11111110

Subnet mask 11111111.11111111.11111111.00000000

AND operation

11000000.10101000.00000000.00000000
After conversion to decimal:

192.168.0.0

Presentation of the three operations:

IP address 192.168.0.4

Subnet Mask 255.255.255.0

Be converted into binary operations:

IP Address 11010000.10101000.00000000.00000100

Subnet mask 11111111.11111111.11111111.00000000

AND operation

11000000.10101000.00000000.00000000

After conversion to decimal:

192.168.0.0

Through the above three groups of computer IP address and subnet mask AND operation, we can see that it is the same as the result of the operation. Are 192.168.0.0

So this computer will be the same as three sub-networks computer, and then to communicate.
  • del.icio.us
  • StumbleUpon
  • Digg
  • TwitThis
  • Mixx
  • Technorati
  • Facebook
  • NewsVine
  • Reddit
  • Google
  • LinkedIn
  • YahooMyWeb

Related Posts of The relationship between IP address and subnet mask

  • ruby, ruby gems, gemsonrails, rails plugin the relationship between

    * ruby reference between all the source code are invoked, in order to standardize the management of libraries, gems emerged. gems are ruby source code management tool, code in accordance with a certain directory structure was organized into a lib. For ins

  • Groovy on Grails implementation using Ruby on Rails15 minutes to create the Blog

    In advance, I have only a superficial Ruby. And Rails do not come into contact with. After watching the video, or can read, and perhaps what kind of grammar can guess the meaning. Now studying Grails, by Grails so want to see implementation. First analysi

  • Ruby User's Guide>> Arrays

    You can through the square brackets ([]) in a comma-separated listed some items to create the array. Ruby array can accommodate different types of objects. ruby> ary = [1, 2, "3"] [1, 2, "3"] Like a string array can be as a link or duplication. ruby

  • javascript form validation (1)

    <% @ Page language = "java" import = "java.util .*" pageEncoding = "utf-8"%> <! DOCTYPE HTML PUBLIC "- / / W3C / / DTD HTML 4.0 Transitional / / EN"> <HTML> <HEAD> <TITLE> New Docu ...

  • Rails file upload Chinese file name garbled

    The use of rails in the Windows file, if the file name for the Chinese, then the upload is successful, you will find that file name is garbled. For example: How are you. Gif, found the name into From: Nao Video . Rmvb. But the document does not affec ...

  • js function in the operation of cookie

    <script type="text/javascript"> function setCookie (sName, sValue, oExpires, sPath, sDomain, bSecure) ( var sCookie = sName + "=" + encodeURIComponent (sValue); / / Failure time if (oExpires) ( sCookie + = "; expires ="

  • SUI-JavaScript rich UI library integration solution

    Introduction: SUI is not a class implementation of the UI, nor is it a standard set of UI markup language, it is just to help the existing UI frameworks (such as Ext, YUI like) to mark the way to the statement and the creation of UI. The names of these ta

  • Great Design

    Understand the principle with the practice, details the relationship between thought, we'll go have selectively study the details, we must work on the details because the details are important to you to use the technical details of implementation ...

  • Hibernate in the inverse and cascade

    First of all, to quote another blog saying: 1.cascade ="..."? cascade is not a property of many-to-many relationship must have it just so that we insert or delete at the time like some more convenient, as long as the source of the cascade insert

  • How the primary key agent-hibernate

    Existing Table A, B Statement: A, B field id-based keys. A: [id, name] B: [id, Aid, title] B and A's set up a many-to-one relationship because of A, B two tables are the primary key id field so add B when Hibernate will automatically retrieve id ...

blog comments powered by Disqus
Recent
Recent Entries
Tag Cloud
Random Entries