Qhov wikiHow no qhia koj li cas saib koj lub khoos phis tawj ntiag tug thiab pej xeem IP chaw nyob ntawm lub khoos phis tawj Linux.
Cov kauj ruam
Txoj Kev 1 ntawm 2: Nrhiav Koj Tus IP Chaw Nyob
Kauj Ruam 1. Nkag siab thaum yuav siv txoj hauv kev no
Tus IP chaw nyob pej xeem yog dab tsi cov vev xaib thiab cov kev pabcuam pom thaum koj nkag los ntawm koj lub computer. Yog tias koj xav sim txuas rau koj lub khoos phis tawj ntawm kev sib txuas hauv tej thaj chaw deb uas tsis nyob hauv tib lub network, koj yuav xav tau pej xeem IP chaw nyob.
Kauj Ruam 2. Qhib Terminal
Nyem lossis ob-nias lub Terminal app icon, lossis nias Ctrl+Alt+T kom coj lub qhov rai Terminal.
Kauj Ruam 3. Nkag mus rau pej xeem IP cov lus txib
Ntaus curl ifconfig.me rau hauv Terminal qhov rai. Cov lus txib no khaws koj tus IP chaw nyob los ntawm lub vev xaib.
Kauj Ruam 4. Nias ↵ Enter
Ua li ntawd khiav cov lus txib.
Kauj Ruam 5. Tos kom koj tus IP chaw nyob tshwm tuaj
Tus IP chaw nyob uas tshwm hauv qab cov lus txib koj nkag mus yog tus IP chaw nyob rau koj lub network.
Txoj Kev 2 ntawm 2: Nrhiav Koj Tus IP Tus Kheej
Kauj Ruam 1. Nkag siab thaum yuav siv txoj hauv kev no
Yog tias koj tab tom sim nrhiav tus IP chaw nyob ntawm koj lub khoos phis tawm hauv koj li Wi-nkaus network (piv txwv li, yog tias koj xav xa koj tus router mus rau koj lub khoos phis tawj), koj yuav tsum paub tus IP chaw nyob.
Kauj Ruam 2. Qhib Terminal
Nyem lossis ob-nias lub Terminal app icon, lossis nias Ctrl+Alt+T kom coj mus rau Terminal qhov rai.
Kauj Ruam 3. Nkag mus rau "Qhia IP" hais kom ua
Ntaus ifconfig rau hauv Terminal qhov rai. Lwm cov lus txib koj tuaj yeem sim suav nrog cov hauv qab no:
- ip addr ua
- ip aw
Kauj Ruam 4. Nias ↵ Enter
Ua li ntawd khiav koj cov lus txib thiab qhia IP chaw nyob cov ntaub ntawv ntawm txhua yam khoom siv hauv network, suav nrog koj lub khoos phis tawj.
Kauj Ruam 5. Nrhiav koj lub khoos phis tawj lub taub hau
Feem ntau koj yuav pom koj lub khoos phis tawj cov ntaub ntawv nyob hauv qab "wlo1" (lossis "wlan0") nqe lus, tsuas yog txoj cai ntawm "inet" lossis.
Kauj Ruam 6. Txheeb xyuas tus IP tus kheej
IPv4 chaw nyob yog sab xis ntawm "inet" lossis. Nov yog IP chaw nyob ntawm koj lub computer ntawm koj lub network tam sim no.
Feem ntau koj tuaj yeem pom IPv6 chaw nyob ib sab ntawm "inet6" lossis. IPv6 chaw nyob yog siv tsawg dua li IPv4 chaw nyob
Kauj Ruam 7. Sim qhov "hostname" hais kom ua
Ntawm qee qhov Linux version, xws li Ubuntu, koj tuaj yeem nqa koj lub computer IP chaw nyob los ntawm kev ntaus hauv hostname -I (uas yog lub peev "i", tsis yog tus lej qis "L") thiab nias ↵ Enter.