Maitiro ekuona iyo IP muLinux

nzira yekuziva ip yangu muLinux

Musoro wekuziva, kana kutsvaga IP yatinayo chimwe chinhu chinodzokororwa. Ngatione kuti tingazviita sei pane Linux mudziyo.

Muchinyorwa chino ini ndichakudzidzisa maitiro ekutarisa IP yeruzhinji mubrowser, ine koni uye kuti ungaiwana sei uye nekuichengeta mune yedu .sh zvinyorwa neBASH.

Pamusoro peizvi, isu tichaona zvakare maitiro ekutarisa yedu yakavanzika IP uye mutsauko pakati pezviviri.

public vs private IP

Iyo yeruzhinji kana yekunze IP ndiyo IP inotizivisa nekunze kwetiweki yedu. Ko vamwe vanhu vaizoona sei router yedu.

Kune rimwe divi, iyo yakavanzika, yemukati kana yemuno IP (inodaidza iyo yaunoda) ndiyo iyo router inopa kune yega yega mudziyo yakabatana nayo.

Nekudaro, inyaya yekuti mudziyo wega wega panetiweki une yakasarudzika yakavanzika IP asi yakafanana yeruzhinji IP iyo inopihwa kune router.

Maonero eruzhinji ip

Kune nzira dzakasiyana. Rangarira kuti IP yakafanana nekero yeimba yedu. Haufanire kuzvifambisa nekuti. Semuenzaniso, ips yaunoona mumifananidzo yechinyorwa haisi yangu, ndakaishandura ndichishandisa TOR kuitira kuti hapana anoziva IP yangu.

Zvinyorwa zvinoenderana pawebhu Bhurawuza neTor y set proxy

Kubva kubhurawuza

tarisa public ip kubva kubrowser

Iyi ndiyo nzira yechinyakare. Paunoda kuziva IP yako, kana iwe wakarambidzwa kubva kune imwe sevhisi, nezvimwe, nezvimwe. Tsvaga paGoogle Chii ip yangu kana Chii ip yangu uye kana vachipinda chero ekutanga mhedzisiro vanozotipa isu.

Kana kuti isa imwe yemakero aya.

Kubva kune iyo terminal

Neyo curl command. Zviri nyore sekufonera mamwe mawebhusaiti anodzosa IP

curl ifconfig.me

Mawebhusaiti atinogona kufonera kuti tidzore IP

  • ifconfig.me
  • icanhazip.com
  • wgetip.com
  • ifconfig.co

Kune zvimwe zvakawanda kana iwe uchida kuziva zvakawanda ini ndinoita muunganidzwa.

Uye kana ukawana chikanganiso nekuti hauna curl yakaiswa, unogona kuiisa nayo

sudo apt update
sudo apt install curl

Imwe nzira yekutora ip kubva kuCLI, ngatiendei kune terminal, iri kushandisa wget command. Sezvakangoita ne curl isu tinogona kushandisa

wget -qO- ifconfig.co

Sevha IP yeruzhinji muBASH

Kana iwe uchida kuwana uye kuchengetedza ip yayo mune inoshanduka a .sh script mu BASH unogona kushandisa semuenzaniso iyo inotevera kodhi

    echo "Tu ip actual es"
    ip="$(curl --silent icanhazip.com)"
    echo $ip

uye isu tichava neruzhinji ip mune shanduko yakagadzirira kuenzanisa kana kuita chero chatinoda.

Maitiro ekuona iyo yakavanzika ip

Takatoona kuti IP yakavanzika ndiyo iyo router inopa kune imwe neimwe kifaa pane network, saka kana tichida kuita chero basa retiweki tichada kuziva IP yedu yeko. Senguva dzose muLinux tine sarudzo dzakasiyana dzekuwana zvinhu. Ndinosiya zvinozivikanwa.

nezita remuenzi

Yakanyanya kunanga. nyora mune terminal

hostname -I
ona yakavanzika ip ine hostname

pamwe ifconfig

Nemurairo uri nyore uyu

ifconfig
ona ip uye network ine ifconfig

Mumufananidzo iwe unogona kuona izvo console inodzoka uye yedu yakavanzika IP yakanyorwa mutsvuku.

ne ip nzira

Imwe sarudzo ndeye kushandisa

ip route
ona yakavanzika ip ine ip nzira

Sezvakaita ifconfig, ini ndakaratidza yakavanzika IP mutsvuku, uye zvechokwadi, maIP maviri anowanikwa nenzira dzakasiyana anofanira kunge akafanana.

Kana iwe uchida chimwe chinhu nezve IP, kana uchida kugovera nzira, siya mhinduro.

Kana iwe uri munhu asingazorore sesu uye uchida kushandira pamwe mukuchengetedza nekuvandudza chirongwa, unogona kupa mupiro. Mari yese ichaenda kunotenga mabhuku nezvinhu zvekuyedza nekuita tutorials

Leave mhinduro