Sunday, July 14, 2013

IP address Subnetting

1. IP address ကို Subnet mask နဲ႕ ANDing လုပ္ပါ။
2. ANDing result ကို host ေနရာ zero ထားျပီး  Decimal ေျပာင္းပါ။ ( Network ID ရသည္။)
3. ANDing result ကို host ေနရာ one ထားျပီး  Decimal ေျပာင္းပါ။ ( Broadcast addressရသည္။)
4. Nerwork ID နဲ႕ Broadcast address ၾကားရွိ IP ကိုသာ အသံုးျပဳႏိုင္သည္။

ဥပမာ။  192.168.0.5/24
1. IP address ကို Subnet mask နဲ႕ ANDing လုပ္ပါ။
IP                =>        192   .     168      .        0       . 00000101
Subnet mask => 11111111 . 11111111 . 11111111 . 00000000
                    --------------------------------------------------------------
ANDing result=>        192   .     168      .        0       . 00000000
                          ----------------------------------------     -----------
                                        network ေနရာ                   host ေနရာ
2. ANDing result ကို host ေနရာ zero ထားျပီး  Decimal ေျပာင္းပါ။ ( Network ID ရသည္။)
  192. 168. 0 . 00000000 => 192.168.0.0

3. ANDing result ကို host ေနရာ one ထားျပီး  Decimal ေျပာင္းပါ။ ( Broadcast addressရသည္။)
  192. 168. 0 . 11111111 => 192.168.0.255

4. Nerwork ID နဲ႕ Broadcast address ၾကားရွိ IP ကိုသာ အသံုးျပဳႏိုင္သည္။
    192.168.0.1  to 192.168.0.244


                         

No comments:

Post a Comment