Yuav Ua Li Cas Txheeb Xyuas IP Chaw Nyob ntawm Linux: 12 Kauj Ruam (nrog Duab)

Cov txheej txheem:

Yuav Ua Li Cas Txheeb Xyuas IP Chaw Nyob ntawm Linux: 12 Kauj Ruam (nrog Duab)
Yuav Ua Li Cas Txheeb Xyuas IP Chaw Nyob ntawm Linux: 12 Kauj Ruam (nrog Duab)

Video: Yuav Ua Li Cas Txheeb Xyuas IP Chaw Nyob ntawm Linux: 12 Kauj Ruam (nrog Duab)

Video: Yuav Ua Li Cas Txheeb Xyuas IP Chaw Nyob ntawm Linux: 12 Kauj Ruam (nrog Duab)
Video: ib sim niam txiv tu siab tshaj plaws - nkauj tawm tshiab 2022 by paj hauv sab 2024, Kaum ib hlis
Anonim

Qhov wikiHow no qhia koj yuav ua li cas saib koj tus kheej thiab tus IP chaw nyob ntawm lub khoos phis tawj Linux.

Kauj ruam

Txoj Kev 1 ntawm 2: Nrhiav Tus IP Tus Kheej

Kauj Ruam 1. Nkag siab lub sijhawm kom siv txoj hauv kev no

Yog tias koj xav nrhiav koj lub khoos phis tawj tus IP chaw nyob ntawm koj tus kheej lub network WiFi (piv txwv li thaum koj xav xa koj lub router mus rau koj lub computer), koj yuav tsum paub tus IP tus kheej ntiag tug.

Txheeb xyuas IP Chaw Nyob hauv Linux Kauj Ruam 2
Txheeb xyuas IP Chaw Nyob hauv Linux Kauj Ruam 2

Kauj Ruam 2. Qhib Terminal

Nyem lossis ob npaug nyem rau lub cim Terminal program, lossis nias lub keyboard shortcut Ctrl+Alt+T kom pom lub qhov rai Terminal.

Txheeb xyuas IP Chaw Nyob hauv Linux Kauj Ruam 3
Txheeb xyuas IP Chaw Nyob hauv Linux Kauj Ruam 3

Kauj Ruam 3. Nkag mus rau "Qhia IP" hais kom ua

Ntaus ifconfig rau hauv Terminal qhov rai. Qee qhov lwm cov lus txib koj tuaj yeem sim yog:

  • ip addr ua
  • ip aw
Txheeb xyuas IP Chaw Nyob hauv Linux Kauj Ruam 4
Txheeb xyuas IP Chaw Nyob hauv Linux Kauj Ruam 4

Kauj Ruam 4. Nias Enter qhov tseem ceeb

Tom qab ntawd, cov lus txib yuav ua tiav thiab cov ntaub ntawv IP chaw nyob ntawm txhua lub cuab yeej txuas nrog hauv lub network (suav nrog koj lub khoos phis tawj) yuav tshwm.

Txheeb xyuas IP Chaw Nyob hauv Linux Kauj Ruam 5
Txheeb xyuas IP Chaw Nyob hauv Linux Kauj Ruam 5

Kauj Ruam 5. Nrhiav koj lub khoos phis tawj npe

Feem ntau koj tuaj yeem pom koj lub khoos phis tawj ntiag tug IP chaw nyob cov ntaub ntawv hauv qab "wlo1" (lossis "wlan0") nqe lus, mus rau sab xis ntawm "inet" lossis.

Txheeb xyuas IP Chaw Nyob hauv Linux Kauj Ruam 6
Txheeb xyuas IP Chaw Nyob hauv Linux Kauj Ruam 6

Kauj Ruam 6. Saib lub khoos phis tawj ntiag tug IP chaw nyob

IPv4 chaw nyob yog sab xis ntawm tus cim "inet". Nov yog tus IP tus kheej ntawm lub khoos phis tawj ntawm lub network txuas tam sim no.

Feem ntau koj tuaj yeem pom IPv6 chaw nyob ib sab ntawm tus cim "inet6". IPv6 chaw nyob feem ntau siv tsawg dua li IPv4 chaw nyob

Txheeb xyuas IP Chaw Nyob hauv Linux Kauj Ruam 7
Txheeb xyuas IP Chaw Nyob hauv Linux Kauj Ruam 7

Kauj Ruam 7. Sim qhov "hostname" hais kom ua

Ntawm qee lub khoos phis tawj ntawm Linux (piv txwv li Ubuntu), koj tuaj yeem tso koj lub computer IP chaw nyob los ntawm kev ntaus hostname -I (cov ntawv "i" hloov tus ntawv "L") thiab nias Enter.

Txoj Kev 2 ntawm 2: Nrhiav Chaw Nyob IP

Kauj Ruam 1. Nkag siab thaum txoj kev no yuav tsum ua raws

Tus IP chaw nyob pej xeem yog qhov chaw nyob uas cov vev xaib thiab cov kev pabcuam pom thaum koj nkag los ntawm koj lub computer. Yog tias koj xav tiv tauj lub khoos phis tawj ntawm kev sib txuas deb ntawm lwm lub network, koj xav tau tus IP chaw nyob.

Txheeb xyuas IP Chaw Nyob hauv Linux Kauj Ruam 9
Txheeb xyuas IP Chaw Nyob hauv Linux Kauj Ruam 9

Kauj Ruam 2. Qhib Terminal

Nyem lossis ob npaug nyem rau lub cim Terminal program, lossis nias lub keyboard shortcut Ctrl+Alt+T kom pom lub qhov rai Terminal.

Txheeb xyuas IP Chaw Nyob hauv Linux Kauj Ruam 10
Txheeb xyuas IP Chaw Nyob hauv Linux Kauj Ruam 10

Kauj Ruam 3. Nkag mus rau pej xeem IP chaw nyob tso saib cov lus txib

Ntaus curl ifconfig.me rau hauv Terminal qhov rai. Cov lus txib no ua haujlwm txhawm rau khaws cov pej xeem IP chaw nyob ntawm lub vev xaib.

Txheeb xyuas IP Chaw Nyob hauv Linux Kauj Ruam 11
Txheeb xyuas IP Chaw Nyob hauv Linux Kauj Ruam 11

Kauj Ruam 4. Nias Enter qhov tseem ceeb

Cov lus txib yuav ua tiav tam sim ntawd.

Txheeb xyuas IP Chaw Nyob hauv Linux Kauj Ruam 12
Txheeb xyuas IP Chaw Nyob hauv Linux Kauj Ruam 12

Kauj Ruam 5. Tos koj tus IP chaw nyob rau pej xeem pom

Tus IP chaw nyob uas qhia hauv qab cov lus txib koj nkag mus yog tus IP chaw nyob rau koj lub network.

Lub tswv yim

Tus IP tus kheej yog tus lej uas muab rau cov khoos phis tawj hauv lub network tsis siv neeg ntiag tug, thaum tus IP chaw nyob pej xeem yog qhov chaw nyob muab rau koj lub network

Pom zoo: