Yuav Lej Li Cas Qhov Chaw Nyob Network thiab Chaw Nyob Tshaj Tawm (nrog Duab)

Cov txheej txheem:

Yuav Lej Li Cas Qhov Chaw Nyob Network thiab Chaw Nyob Tshaj Tawm (nrog Duab)
Yuav Lej Li Cas Qhov Chaw Nyob Network thiab Chaw Nyob Tshaj Tawm (nrog Duab)

Video: Yuav Lej Li Cas Qhov Chaw Nyob Network thiab Chaw Nyob Tshaj Tawm (nrog Duab)

Video: Yuav Lej Li Cas Qhov Chaw Nyob Network thiab Chaw Nyob Tshaj Tawm (nrog Duab)
Video: tu txiv tsi pab nkauj tawm tshiab-Cover(niam vamkhwb&paj yeeb& xis xyooj&ntxawm xyooj&niam npawglem) 2024, Kaum ib hlis
Anonim

Txhawm rau teeb tsa lub network, koj yuav tsum paub yuav qhia nws li cas. Paub txog qhov chaw nyob network thiab chaw nyob tshaj tawm yog ib qho tseem ceeb heev hauv tus txheej txheem no. Paub paub xam cov network chaw nyob thiab tshaj tawm chaw nyob yog tias koj muaj IP chaw nyob thiab subnet daim npog yog qhov tseem ceeb ib yam.

Kauj ruam

Txoj Kev 1 ntawm 2: Rau Classy Networks

Kauj Ruam 1. Rau kev sib txuas hauv network, tag nrho bytes yog 8

Yog li, tag nrho bytes = T.b = 8.

  • Subnet qhov ncauj qhov ntswg yog 0, 128, 192, 224, 240, 248, 252, 254, thiab 255.

    1636270 1b1
    1636270 1b1
  • Cov lus hauv qab no qhia txog "Tus lej ntawm cov khoom siv rau subnet" (n) ntawm qhov sib txuas subnet npog.

    1636270 1b2
    1636270 1b2
  • Rau subnet daim npog 255 yog tus nqi qub. Yog li, nws tsis suav nrog rau kev tsim cov subnet qhov ncauj qhov ntswg.
  • Piv txwv:

    IP chaw nyob = 210.1.1.100 thiab subnet mask = 255.255.255.224

    Tag nrho bytes = Tb = 8 Tus lej bytes siv rau subnetting = n = 3 (vim tias subnet mask = 224 thiab tus lej sib thooj ntawm bytes siv rau subnetting yog 3 los ntawm cov lus saum toj no)

    1636270 1b 4
    1636270 1b 4
1636270 2
1636270 2

Kauj Ruam 2. Los ntawm cov kauj ruam dhau los, peb tau txais "Tus lej ntawm cov khoom siv rau subnetting" (n) thiab paub "Tb", tom qab ntawd koj tuaj yeem tau txais" Tus naj npawb ntawm bytes sab laug rau tus tswv "(m) = Tb - n raws li tag nrho bytes yog qhov sib npaug ntawm tus lej bytes siv rau subnetting thiab tus lej bytes tseem tshuav rau tus tswv tsev, piv txwv li Tb = m+np.

  • Tus naj npawb ntawm bytes sab laug rau tus tswv = m = Tb - n = 8 - 3 = 5

    1636270 2b1
    1636270 2b1
1636270 3
1636270 3

Kauj Ruam 3. Tam sim no xam "Tus naj npawb ntawm subnets" = 2 thiab "Tus lej kawg byte siv rau subnet daim npog" (Δ) = 2m.

Tus naj npawb ntawm tus tswv ib subnet = 2m - 2.

  • Tus naj npawb ntawm subnets = 2 = 23 = 8

    Tus nqi ntawm qhov kawg siv rau subnet daim npog = = 2m = 25 = 32

    1636270 3b1
    1636270 3b1
1636270 4
1636270 4

Kauj Ruam 4. Tam sim no koj tuaj yeem pom tus lej suav yav dhau los ntawm subnets los ntawm kev faib cov subnets txhua qhov muaj "Tus lej kawg byte siv rau subnet daim npog" lossis chaw nyob

  • 8 subnets (raws li xam hauv cov kauj ruam dhau los) tau qhia saum toj no.
  • Txhua tus muaj 32 qhov chaw nyob.
1636270 5
1636270 5

Kauj Ruam 5. Tam sim no pom koj tus IP chaw nyob uas subnet, thawj qhov chaw nyob ntawm subnet yog lub network chaw nyob thiab chaw nyob kawg yog qhov chaw tshaj tawm

  • Hauv qhov no, tus IP chaw nyob yog 210.1.1.100. 210.1.1.100 muaj 210.1.1.96 - subnet 210.1.1.127 (saib cov lus hauv cov kauj ruam dhau los). Yog li, 210.1.1.96 yog qhov chaw nyob network thiab 210.1.1.127 yog qhov chaw tshaj tawm rau tus IP chaw nyob, uas yog 210.1.1.100.

    16362705b 1
    16362705b 1

Txoj Kev 2 ntawm 2: Rau CIDR

Kauj Ruam 1. Hauv CIDR, koj muaj tus IP chaw nyob tom qab byte-ntev ua ntej ua ntej sib cais los ntawm tus slash (/)

Tam sim no hloov pauv byte-ntev ua ntej mus rau plaub-dotted zauv sawv cev. Txhawm rau ua qhov no, ua raws cov theem no.

  1. Sau cov ntawv ua ntej byte hauv hom ntawv hauv qab no.

    16362706b1 ib
    16362706b1 ib
    • Yog tias tus nqi yog 27, tom qab ntawv sau nws li 8 + 8 + 8 + 3.
    • Yog tias tus nqi yog 12, tom qab ntawv sau nws li 8 + 4 + 0 + 0.
    • Tus nqi pib yog 32, uas tau sau ua 8 + 8 + 8 + 8.
  2. Hloov cov lej sib thooj raws li cov lus hauv qab no thiab nthuav tawm lawv hauv plaub-point decimal format.

    16362706b2 ib
    16362706b2 ib
  3. Xav tias tus IP chaw nyob yog 170.1.0.0/26. Siv cov lus saum toj no, koj tuaj yeem sau:
  4. 26 = 8 + 8 + 8 + 2
    255 . 255 . 255 . 192

    Tam sim no tus IP chaw nyob yog 170.1.0.0 thiab subnet daim npog hauv plaub-dot decimal format yog 255.255.255.192.

    16362706b3 ib
    16362706b3 ib

    Kauj ruam 2. Tag nrho bytes = Tb = 8.

    • Subnet qhov ncauj qhov ntswg yog 0, 128, 192, 224, 240, 248, 252, 254, thiab 255.
    • Cov lus hauv qab no hais txog "Tus lej bytes siv rau subnetting" (n) ntawm qhov sib thooj subnet npog.

      16362707b2 ib
      16362707b2 ib
    • Rau subnet daim npog 255 yog tus nqi qub. Yog li, nws tsis tas yuav tsum tau coj mus rau hauv tus account subnet qhov ncauj qhov ntswg.
    • Los ntawm cov kauj ruam dhau los, tau txais IP chaw nyob = 170.1.0.0 thiab subnet mask = 255.255.255.192

      Tag nrho bytes = Tb = 8 Tus lej bytes siv rau subnetting = n = 2 (txij li subnet daim npog = 192 thiab qhov sib thooj "Tus naj npawb ntawm cov khoom siv rau subnetting" yog 2 los ntawm cov lus saum toj no)

      16362707b 4
      16362707b 4
    1636270 8
    1636270 8

    Kauj Ruam 3. Los ntawm cov kauj ruam dhau los, peb tau txais "Tus lej ntawm cov khoom siv rau subnetting" (n) thiab paub "Tb", tom qab ntawd koj tuaj yeem tau txais" Tus naj npawb ntawm bytes sab laug rau tus tswv "(m) = Tb - n raws li tag nrho bytes yog qhov sib npaug ntawm cov lej siv rau subnetting thiab tus lej bytes tshuav rau tus tswv tsev, piv txwv li Tb = m+n os.

    Tus naj npawb ntawm bytes sab laug rau tus tswv = m = Tb n = 8 - 2 = 6

    1636270 9
    1636270 9

    Kauj Ruam 4. Tam sim no xam "Tus naj npawb ntawm subnets" = 2 thiab "Tus lej kawg byte siv rau subnet daim npog" (Δ) = 2m.

    Tus naj npawb ntawm tus tswv ib subnet = 2m - 2.

    • Tus naj npawb ntawm subnets = 2 = 22 = 4

      Tus nqi ntawm qhov kawg siv rau subnet mask = = 2m = 26 = 64

      1636270 9b1 ib
      1636270 9b1 ib

    Kauj Ruam 5. Tam sim no koj tuaj yeem pom tus lej suav yav dhau los ntawm subnets los ntawm kev faib cov subnets txhua qhov muaj "Tus lej kawg byte siv rau subnet daim npog" lossis chaw nyob

    • 4 subnets (raws li xam hauv cov kauj ruam dhau los) yog

      1636270 10b1
      1636270 10b1
    • Txhua tus muaj 64 qhov chaw nyob.

      1636270 10b2
      1636270 10b2
    1636270 11
    1636270 11

    Kauj Ruam 6. Tam sim no nrhiav seb subnet twg koj tus IP chaw nyob yog, thawj qhov chaw nyob ntawm subnet yog lub network chaw nyob thiab chaw nyob kawg yog qhov chaw tshaj tawm

    • Hauv qhov no, tus IP chaw nyob yog 170.1.0.0; 170.1.0.0 muaj 170.1.0.0 - subnet ntawm 170.1.0.63 (saib cov lus hauv cov kauj ruam dhau los). Yog li 170.1.0.0 yog qhov chaw nyob network thiab 170.1.0.63 yog qhov chaw tshaj tawm rau tus IP chaw nyob, uas yog 170.1.0.0.

      1636270 11b1
      1636270 11b1

    Piv txwv

    Rau Classy Network

    • IP chaw nyob = 100.5.150.34 thiab subnet mask = 255.255.240.0

      Tag nrho bytes = Tb = 8

      Subnet daim npog qhov ncauj 0 128 192 224 240 248 252 254 255
      Tus naj npawb ntawm cov khoom siv rau subnetting (n) 0 1 2 3 4 5 6 7 8

      Tus naj npawb ntawm bytes siv rau subnetting rau subnet daim npog 240 = n1 = 4

      (txij li subnet daim npog ntsej muag = 240 thiab sib xws "Tus naj npawb ntawm cov khoom siv rau subnetting" yog 4 los ntawm cov lus saum toj no)

      Tus naj npawb ntawm bytes siv rau subnetting rau subnet daim npog qhov ncauj 0 = n2 = 0

      (txij li subnet daim npog = 0 thiab sib xws "Tus naj npawb ntawm cov khoom siv rau subnetting" yog 0 los ntawm cov lus saum toj no)

      Tus naj npawb ntawm bytes tseem tshuav rau cov tswv rau subnet daim npog 240 = m1 = T uab -n1 = 8 - 4 = 4

      Tus naj npawb ntawm bytes tseem tshuav rau cov tswv rau subnet daim npog 0 = m2 = T uab -n2 = 8 - 0 = 8

      Tus naj npawb ntawm subnets rau subnet daim npog 240 = 2 1 = 24 = 16

      Tus naj npawb ntawm subnets rau subnet daim npog qhov ncauj 0 = 2 2 = 20 = 1

      Tus nqi ntawm qhov kawg tau siv hauv kev tsim cov subnet daim npog rau lub ntsej muag subnet ntawm 240 =1 = 2m1 = 24 = 16

      Tus nqi ntawm qhov kawg tau siv hauv kev tsim cov subnet daim npog rau subnet daim npog qhov ncauj 0 =2 = 2m2 = 28 = 256

      Rau subnet daim npog qhov ncauj ntawm 240, qhov chaw nyob yuav muab faib ua 16 thiab rau subnet daim npog qhov ncauj ntawm 0, nws yuav muab faib los ntawm 256. Siv tus nqi ntawm1 thiab2, 16 subnets tau teev tseg hauv qab no

      100.5.0.0 - 100.5.15.255 100.5.16.0 - 100.5.31.255 100.5.32.0 - 100.5.47.255 100.5.48.0 - 100.5.63.255
      100.5.64.0 - 100.5.79.255 100.5.80.0 - 100.5.95.255 100.5.96.0 - 100.5.111.255 100.5.112.0 - 100.5.127.255
      100.5.128.0 - 100.5.143.255 100.5.144.0 - 100.5.159.255 100.5.160.0 - 100.5.175.255 100.5.176.0 - 100.5.191.255
      100.5.192.0 - 100.5.207.255 100.5.208.0 - 100.5.223.255 100.5.224.0 - 100.5.239.255 100.5.240.0 - 100.5.255.255

      IP chaw nyob 100.5.150.34 suav nrog 100.5.144.0 - 100.5.159.255 thiab yog li 100.5.144.0 yog qhov chaw nyob network thiab 100.5.159.255 yog qhov chaw tshaj tawm

    Rau CIDR

    • Tus IP chaw nyob hauv CIDR = 200.222.5.100/9
    • 9 = 8 + 1 + 0 + 0
      255 . 128 . 0 . 0

      IP chaw nyob = 200.222.5.100 thiab subnet mask = 255.128.0.0

      Tag nrho bytes = Tb = 8

      Subnet daim npog qhov ncauj 0 128 192 224 240 248 252 254 255
      Tus naj npawb ntawm cov khoom siv rau subnetting (n) 0 1 2 3 4 5 6 7 8

      Tus naj npawb ntawm bytes siv rau subnetting rau subnet daim npog 128 = n1 = 1

      (txij li daim npog subnet = 128 thiab qhov sib thooj "Tus naj npawb ntawm cov khoom siv rau subnetting" yog 1 los ntawm cov lus saum toj no)

      Tus naj npawb ntawm bytes siv rau subnetting rau subnet daim npog qhov ncauj 0 = n2 = n3 = 0

      (txij li subnet daim npog = 0 thiab sib xws "Tus naj npawb ntawm cov khoom siv rau subnetting" yog 0 los ntawm cov lus saum toj no)

      Tus naj npawb ntawm bytes tseem tshuav rau cov tswv rau subnet daim npog 128 = m1 = T uab -n1 = 8 - 1 = 7

      Tus naj npawb ntawm bytes tseem tshuav rau cov tswv rau subnet daim npog 0 = m2 = kuv3 = T uab -n2 = T uab -n3 = 8 - 0 = 8

      Tus naj npawb ntawm subnets rau subnet daim npog 128 = 2 1 = 21 = 2

      Tus naj npawb ntawm subnets rau subnet daim npog qhov ncauj 0 = 2 2 = 2 3 = 20 = 1

      Tus nqi ntawm qhov kawg tau siv hauv kev tsim cov subnet daim npog rau subnet daim npog ntawm 128 =1 = 2m1 = 27 = 128

      Tus naj npawb ntawm tus tswv ib subnet = 2m1 - 2 = 27 - 2 = 126

      Tus nqi ntawm qhov kawg tau siv hauv kev tsim cov subnet daim npog rau subnet daim npog qhov ncauj 0 =2 =3 = 2m2 = 2m3 = 28 = 256

      Tus naj npawb ntawm tus tswv ib subnet rau subnet daim npog 0 = 2m2 - 2 = 2m3 - 2 = 28 - 2 = 254

      Rau subnet daim npog qhov ncauj ntawm 128, qhov chaw nyob yuav muab faib los ntawm 128 thiab rau subnet daim npog qhov ncauj ntawm 0, nws yuav muab faib los ntawm 256. Siv tus nqi ntawm1,2 thiab3, 2 subnets tau teev tseg hauv qab no

      200.0.0.0 - 200.127.255.255 200.128.0.0 - 200.255.255.255

      IP chaw nyob 200.222.5.100 muaj 200.128.0.0 - 200.255.255.255 thiab yog li ntawd 200.128.0.0 yog qhov chaw nyob network thiab 200.255.255.255 yog qhov chaw tshaj tawm

    Lub tswv yim

    • Hauv CIDR, koj tuaj yeem ua raws cov txheej txheem txheej txheem txheej txheem tom qab koj hloov pauv byte-ntev ua ntej mus rau plaub-point decimal format.
    • Txoj kev no tsuas yog siv rau IPv4, tsis siv rau IPv6.

Pom zoo: