دوستان یه سوال دیگه اینکه راهی هست برای بدست آوردن netID غیر از روش باینری و and کردن مسک توی ip ?
مثلا این مثال رو ببینین :
DeviceA: 172.16.17.30/20 DeviceB: 172.16.28.15/20
Determining the Subnet for DeviceA:
172.16.17.30 - 10101100.00010000.00010001.00011110 255.255.240.0 - 11111111.11111111.11110000.00000000 -----------------| sub|------------ subnet = 10101100.00010000.00010000.00000000 = 172.16.16.0
Looking at the address bits that have a corresponding mask bit set to one, and setting all the other address bits to zero (this is equivalent to performing a logical "AND" between the mask and address), shows you to which subnet this address belongs. In this case, DeviceA belongs to subnet 172.16.16.0.
Determining the Subnet for DeviceB:
172.16.28.15 - 10101100.00010000.00011100.00001111 255.255.240.0 - 11111111.11111111.11110000.00000000 -----------------| sub|------------ subnet = 10101100.00010000.00010000.00000000 = 172.16.16.0
From these determinations, DeviceA and DeviceB have addresses that are part of the same subnet.
غیر از این and کردن باینری چه راه دیگه ای هست که بشه فهمید 172.16.17.30/20 و 172.16.28.15/20 توی یه رنج هستن با netID= 172.16.16.0
- - - Updated - - -
اینم لینک مثال بالا. از ساین سیسکو هستش
http://www.cisco.com/en/US/tech/tk365/technologies_tech_note09186a00800a67f5.shtml