Qhov txawv ntawm Public IP thiab Private IP

Cov txheej txheem:

Qhov txawv ntawm Public IP thiab Private IP
Qhov txawv ntawm Public IP thiab Private IP

Video: Qhov txawv ntawm Public IP thiab Private IP

Video: Qhov txawv ntawm Public IP thiab Private IP
Video: Saib Mis paub Poj niam (hluas nkauj) tus yam ntxwv lub siab 2024, Hlis ntuj nqeg
Anonim

Public IP vs Private IP

Raws li cov npe qhia, qhov sib txawv ntawm cov pej xeem IP thiab tus IP ntiag tug yog cov tes hauj lwm uas lawv siv. Ua ntej delving rau hauv cov ntsiab lus no, tus IP chaw nyob lossis chaw nyob hauv Internet raws tu qauv yog tus cim tshwj xeeb uas tau muab rau txhua lub cuab yeej ntawm lub network. Qhov no tso cai rau txhua yam khoom siv sib txawv ntawm lub network kom paub qhov txawv. Muaj ob pawg ntawm IP chaw nyob hu ua pej xeem IPs thiab tus IP ntiag tug. Pej xeem IPs, uas yog tshwj xeeb thoob plaws hauv internet, cia cov khoom siv txuas nrog hauv internet. Txhawm rau tswj hwm qhov tsis sib xws, lawv txoj haujlwm yog tswj hwm hauv nruab nrab ntawm ib lub koom haum. Tus IP chaw nyob yog siv nyob rau hauv ntiag tug tes hauj lwm uas tsis txuas nrog hauv internet los yog txuas nrog internet los ntawm NAT. Ntawm no, qhov tshwj xeeb hauv lub network ntiag tug yog txaus thiab yog li tib qhov chaw nyob yuav raug siv nyob rau hauv kev sib txawv ntiag tug sib txawv uas cais los ntawm ib leeg. Thaum IP version 4 raug suav hais tias yog 10.0.0.0 txog 10.255.255.255, 172.16.0.0 txog 172.31.255.255 thiab los ntawm 192.168.0.0 txog 192.168.255.255tus so yog tus IP chaw nyob

Public IP yog dab tsi?

Ib tus IP chaw pej xeem yog lub ntiaj teb tshwj xeeb rau Is Taws Nem. Raws li tus qauv, qee qhov chaw nyob IP tau tshwj tseg kom siv los ntawm cov tes hauj lwm ntiag tug. Txhua tus IP uas tsis tau tshwj tseg rau tus IP ntiag tug tuaj yeem siv los ua tus IP pej xeem. IP network yuav tsum muaj tus IP tshwj xeeb rau txhua yam ntawm nws cov cuab yeej. Raws li internet kuj yog ib qho IP network, IP chaw nyob yuav tsum tau tswj kom zoo los tiv thaiv tib tus IP los ntawm kev siv ntau yam khoom siv. Qhov kev tswj hwm tus IP no yog ua los ntawm lub koom haum hu ua Internet Assigned Numbers Authority (IANA) qhov chaw lawv muab IP ntau rau cov koom haum sib txawv. Thaum cov IP chaw nyob no tau muab tso rau hauv internet routers yuav tsum tau teeb tsa kom cov khoom siv hauv is taws nem tuaj yeem nkag mus rau IP. Qhov ntawd yog ib qho chaw nyob IP uas tau muab rau pej xeem yog thoob ntiaj teb routable. Cov chaw nyob pej xeem muaj nyob rau hauv Internet Protocol version 4 thiab version 6 (IPv4 thiab IPv6). IP version 4 muab ntau tus IP chaw nyob, tab sis tus naj npawb ntawm cov khoom siv nrog qhov chaw nyob rau pej xeem tau dhau los ua qhov loj heev uas tam sim no IPv4 qhov chaw nyob ua pov thawj tias tsis txaus. Yog li ntawd, IPv6, uas tuaj yeem muab ntau qhov chaw nyob IP thaum piv rau IPv4, tau qhia thiab tam sim no tab tom siv.

Qhov txawv ntawm Public IP thiab Private IP
Qhov txawv ntawm Public IP thiab Private IP
Qhov txawv ntawm Public IP thiab Private IP
Qhov txawv ntawm Public IP thiab Private IP

Private IP yog dab tsi?

Ib lub koom haum tuaj yeem muaj cov khoom siv uas xav tau txuas nrog lwm cov khoom siv hauv lub koom haum, tab sis tsis tas yuav txuas rau Is Taws Nem. Yog li, nyob rau hauv xws li mob, muab ib tug tshwj xeeb IP nyob rau hauv lub internal network yog txaus, tab sis nws tsis yog tsim nyog los muab ib tug pej xeem IP chaw nyob. Ntawm no, raws li lub network raug rho tawm, theoretically txhua qhov chaw nyob IP tuaj yeem siv tau nrog tib qhov kev xav tau uas IP chaw nyob hauv lub network ntiag tug yuav tsum yog qhov tshwj xeeb. Tab sis, yog tias muaj caij nyoog, yog tias lub network txuas nrog hauv is taws nem yam tsis tau hloov kho IP chaw nyob, nws yuav ua rau muaj qhov sib npaug IP. Yog li ntawd, cov qauv tau tshwj tseg qhov chaw nyob IP tshwj xeeb los siv rau qhov chaw nyob ntiag tug. Hauv IP v4, peb qhov chaw nyob tau tshwj tseg rau tus IPs ntiag tug. Lawv yog, • From 10.0.0.0 to 10.255.255.255

• From 172.16.0.0 to 172.31.255.255

• From 192.168.0.0 to 192.168.255.255

Hais lub tuam txhab A siv tus IP chaw nyob los ntawm 192.168.1.0 rau 192.168.1.255 rau lawv tus kheej network. Tsis tas li ntawd, hais tias lub tuam txhab B siv tib yam rau lawv tus kheej network. Raws li ob lub network no tsis txuas nrog Is Taws Nem, nws tsis yog teeb meem vim tias ob lub network raug cais tawm. Thiab tseem nws tseem ceeb heev uas yuav tau hais tias niaj hnub no cov thev naus laus zis hu ua NAT (Network Address Translation) tso cai txawm tias txuas ob lub network saum toj no rau hauv internet thaum muaj tib IPs. Ntawm no yog ua li cas yog, lub router hauv tuam txhab A tau muab ib qho tshwj xeeb rau pej xeem IP thiab router hauv tuam txhab B tau muab lwm qhov tshwj xeeb rau pej xeem IP. Tom qab ntawd cov routers yuav tswj hwm lub rooj NAT uas tsim nyog xa cov pob ntawv los ntawm lub network sab hauv mus rau hauv internet.

Qhov txawv ntawm Public IP thiab P rivate IP yog dab tsi?

• Pej xeem IPs yog lub ntiaj teb tshwj xeeb thoob plaws hauv internet. Tab sis tus IP ntiag tug tsis txuas nrog Is Taws Nem, thiab yog li cov khoom siv ntiag tug sib txawv hauv cov tes hauj lwm sib txawv tuaj yeem muaj qhov chaw nyob IP tib yam.

• Pej xeem IPs tuaj yeem nkag mus / xa tawm hauv Is Taws Nem. Tab sis tus IPs ntiag tug tsis tuaj yeem nkag los ntawm is taws nem. (Tab sis niaj hnub no cov thev naus laus zis hu ua NAT muab kev ua haujlwm nyob ib puag ncig los txuas tus IP chaw nyob rau hauv internet siv ib tus IP pej xeem nkaus xwb)

• IP chaw nyob muab rau tus IP ntiag tug hauv IPv4 yog los ntawm 10.0.0.0 txog 10.255.255.255, los ntawm 172.16.0.0 txog 172.31.255.255 thiab los ntawm 192.168.0.0 txog 1952.528. Tus so tuaj yeem siv rau pej xeem IPs.

• Public IPs yog tswj hwm los ntawm lub koom haum hu ua Internet Assigned Numbers Authority (IANA). Tsis muaj lub hauv paus tswj hwm zoo li no rau cov IPs ntiag tug uas lawv tau tswj hwm los ntawm tus thawj coj ntawm lub network ntiag tug.

• Pej xeem IPs tom qab tau txais yuav tsum tau teeb tsa hauv internet routers kom tsim nyog routing tshwm sim. Tab sis tus IPs ntiag tug tsis tau teeb tsa hauv internet routers tab sis tsuas yog ntawm tus kheej routers.

• Kom tau txais tus IP pej xeem, nyiaj yuav tsum tau them rau kev sau npe tab sis, rau tus IP ntiag tug, tsis muaj nqi.

• Tus IP ntiag tug ntawm lub khoos phis tawj tuaj yeem pom hauv Windows los ntawm kev pib lub network daim npav cov ntsiab lus sib tham lossis siv IP Config cov lus txib hauv kev hais kom ua. Txhawm rau saib cov IP pej xeem, ib tus yuav tsum mus rau qhov browser thiab siv lub vev xaib uas qhia cov IP pej xeem lossis tuaj yeem yooj yim ntaus "kuv tus IP" hauv google.

Summary:

Public IP vs Private IP

Ib tus IP pej xeem yog tus IP chaw nyob uas nthuav tawm thiab txuas nrog Is Taws Nem. Yog li ntawd, pej xeem IP yuav tsum muaj qhov tshwj xeeb hauv internet. Kev tswj hwm ntawm pej xeem IP chaw nyob yog ua los ntawm lub koom haum hauv nruab nrab hu ua Internet Assigned Numbers Authority (IANA) thiab tom qab tso cai internet routers yuav tsum tau teeb tsa kom lawv tuaj yeem xa mus. Tus IP pej xeem raug nqi nyiaj los sau npe. Tus IP chaw nyob yog siv nyob rau hauv private networks, uas feem ntau tsis txuas nrog internet. (Tam sim no, Network Chaw Txhais Lus tso cai txuas cov no thiab hauv internet). Raws li kev sib koom tes ntiag tug yog hom kev sib cais, tib tus IPs tuaj yeem siv rau hauv cov tes hauj lwm sib txawv thiab tswj kom muaj qhov sib txawv hauv lub network txaus. Cov IP ntiag tug tuaj yeem siv dawb yam tsis muaj npe.

Pom zoo: