Tau txais tag nrho peb cov kev teeb tsa network nrog cov lus txib

Txawm hais tias peb tswj hwm server lossis vim peb tseem tsis tau muaj lub graphical environment, muaj qee lub sijhawm peb yuav tsum paub txhua qhov network cov ntaub ntawv uas lub koos pis tawj uas peb tau txuas nrog, ntawm no kuv yuav piav qhia yuav ua li cas kom tau txais cov ntaub ntawv no.

IP chaw nyob

Ib lo lus txib yooj yim tuaj yeem qhia peb tus IP, kuv txhais tau tias: ifconfig

ifconfig

Nws yuav qhia peb qee yam zoo li no:

ifconfig Raws li koj tuaj yeem pom, txhua lub network cuam tshuam tshwm sim, hauv kab thib 2 ntawm txhua qhov interface peb pom qee yam xws li: «ib 192.168.1.5»… Inet yog tus IP chaw nyob, piv txwv li, yog tias kuv ua a grep filtering inet Kuv tuaj yeem pom tus IPs nkaus xwb:

sudo ifconfig | grep inet

Nws yuav qhia peb IPv4 thiab IPv6 IPs.

MAC

Tib qho lus txib tso cai rau peb kom paub peb qhov chaw nyob MAC, peb tuaj yeem pom nws hauv txoj kab uas pib nrog «ether», peb tseem tuaj yeem siv grep los lim los ntawm ether thiab tias tsuas yog peb MAC tshwm sim:

sudo ifconfig | grep ether

DNS neeg rau zaub mov

Txhawm rau paub peb cov DNS server peb tuaj yeem pom cov ntsiab lus ntawm /etc/resolv.conf file:

cat /etc/resolv.conf

Nyob ntawd peb yuav pom qhov sau ntawm peb lub network (nyob rau hauv rooj plaub peb muaj ib qho hauv LAN) lossis IP tus IP server uas peb siv.

Rooj vag lossis Rooj vag

Paub txog peb lub qhov rooj tsuas yog yooj yim, peb yuav siv:

ip route show

Peb yuav pom tias muaj ntau txoj kab yuav tshwm sim, tab sis (feem ntau) thawj kab muaj peb lub qhov rooj thaum pib, nws yog txoj kab uas pib nrog ua ntej

tus ip-txoj kev Xijpeem ... qhov tseeb koj tuaj yeem siv grep ntxiv los lim tawm lub neej ntawd:

ip route show | grep default

Thiab ... tau txais ntau tshaj qhov zoo peb tuaj yeem siv awk los qhia txog kab thib 3 nkaus xwb, tus IP:

ip route show | grep default | awk {'print $3'}

Tab sis hey, qhov no yog kom tau txais peb cov ncauj lus kom ntxaws 😀

Tus Xov Tooj lossis Lub Npe Computer

Yooj yim, yooj yim heev ... cia li khiav: hostname

hostname

Qhov kawg!

Txog tam sim no tus ncej mus, Kuv tsis paub yog tias kuv muaj lub sijhawm ua haujlwm tos ... yog tias muaj, qhia cov lus txib kom pom nws hauv lub davhlau ya nyob twg 😉

Txaus siab rau!


Cov ntsiab lus ntawm tsab xov xwm ua raws li peb cov ntsiab cai ntawm kev tswj hwm kev ncaj nceesCov. Tshaj tawm ib qho yuam kev nyem no.

8 lus, tawm koj li

Tso koj saib

Koj email chaw nyob yuav tsis tsum luam tawm. Yuav tsum tau teb cov cim nrog *

*

*

  1. Lub luag haujlwm rau cov ntaub ntawv: Miguel Ángel Gatón
  2. Lub hom phiaj ntawm cov ntaub ntawv: Tswj SPAM, kev tswj xyuas tawm tswv yim.
  3. Sau raws cai: Koj kev tso cai
  4. Kev sib txuas lus ntawm cov ntaub ntawv: Cov ntaub ntawv yuav tsis raug xa mus rau lwm tus neeg thib peb tsuas yog los ntawm kev txiav txim siab raug cai.
  5. Cov ntaub ntawv khaws cia: Cov Ntaub Ntawv khaws tseg los ntawm Occentus Networks (EU)
  6. Txoj Cai: Txhua lub sijhawm koj tuaj yeem txwv, rov qab thiab tshem tawm koj cov ntaub ntawv.

  1.   Gonzalo said

    Nws yeej tsis mob siab nco txog lawv

  2.   Hugo said

    Hais txog ntawm DNS, qhov no tsis yog tas li.
    Nyob rau hauv Ubuntu lossis qee yam ntawm nws cov derivatives file '/etc/resolv.conf' muaj 'nameserver 127.0.1.1'
    Yuav ua li cas thiaj txiav txim siab DNS tau teeb tsa hauv cov teeb meem no?

    1.    Xurxo said

      Qhov no tshwm sim vim tias cov kab ke siv: / usr / sbin / NetworkManager thiab nws yog qhov program no uas ua tus them nyiaj hu / sbin / dhclient.

      Yog tias koj xav pom tag nrho cov ntaub ntawv suav nrog IP cov npe ntawm nameserver, tsuas yog siv cov lus txib:

      "Nm-cuab tam"

      Nyob rau hauv Ubunto thiab Mint nws yuav muab koj yam zoo li no:

      NetworkManager Tuam

      Lub xeev: txuas nrog (thoob ntiaj teb)

      - Ntaus: eth0 —————————————————————————
      Hom: Kev Tos Tos
      Tsav Tsheb: jme
      Xeev: tsis muaj
      Default: tsis muaj
      HW Chaw Nyob: 00: 90: F5: C0: 32: FC

      Peev Xwm:
      Cov Saib Muaj Neeg nqa khoom: muaj

      Cov Khoom Ntaus Nrig
      Tus cab kuj: tawm

      - Ntaus: wlan0 [Auto MOVISTAR_JIJIJI] ——————————————
      Hom: 802.11 WiFi
      Tsav Tsheb: rtl8192ce
      Xeev: txuas nrog
      Lub neej ntawd: yog lawm
      HW Chaw Nyob: E0: B9: A5: B3: 08: CA

      Peev Xwm:
      Ceev: 72 Mb / s

      Wireless khoom
      WEP Encryption: muaj
      WPA Encryption: yog
      WPA2 Encryption: yog

      Cov Nkag Saib Wireless (* = AP tam sim no)
      * MOVISTAR_D44A: Infra, F8: 73: 92: 50: D4: 53, Freq 2452 MHz, Qeb 54 Mb / s, Muaj Zog 40 WPA

      Chaw IPv4:
      Chaw Nyob: 192.168.1.37
      Cov Thawj Coj: 24 (255.255.255.0)
      Rooj vag: 192.168.1.1

      DNS: 80.58.61.250
      DNS: 80.58.61.254
      DNS: 193.22.119.22
      DNS: 208.67.222.222

      Ntawd yog, tag nrho cov ntaub ntawv muab los ntawm cov lus txib hauv tsab xov xwm no (thiab qee qhov ntxiv) cais ib zaug. Txhawm rau paub lwm yam kev xaiv, koj twb paub: «txiv neej nm-tuam» 🙂

      Sib nrug los ntawm cov xaj:

      "Tus Tswv Lub Npe"
      "Txoj Kev"

      1.    lub tsev so ntawm barnarasta said

        # khawb http://www.google.com | grep SIV

        thiab nws yuav qhia koj cov DNS siv

      2.    chemab said

        Raws li ntawm Ubuntu 15.04 koj yuav tsum siv:

        nmcli ntaus ntawv qhia

        vim nm-twj zoo:
        http://askubuntu.com/questions/617067/why-nm-tool-is-no-longer-available-in-ubuntu-15-04

  3.   coyaote said

    Nyob zoo, Kuv tau nruab Huayra 2.0 thiab kuv tau hloov kho rau 2.1.
    Tsawg kawg ntawm cov qauv no, los ntawm lub neej ntawd tsis muaj "ifconfig" cov lus txib, txwv tsis pub kuv siv "ip" hais kom pom cov xwm txheej ntawm lub network phaib:

    ip os sh

  4.   jhb ib said

    xd cov txiv neej jnbkj kjbkjbk kk skj lj kj

  5.   JMonzon said

    Kuv yuav hloov pauv hloov IP ntawm kuv tus mail server hauv ISP DNS li cas?