Thola konke ukumiswa kwenethiwekhi yethu ngemiyalo

Kungenxa yokuthi silawula iseva noma ngoba asikabi nayo imidwebo, kunezikhathi lapho sidinga ukwazi yonke idatha yenethiwekhi ikhompyutha esixhumeke kuyo enayo, lapha ngizochaza ukuthi ungayithola kanjani le datha.

Ikheli le-IP

Umyalo olula ungasitshela i-IP yethu, ngiqonde ukuthi: ifconfig

ifconfig

Izosikhombisa into enjengale:

ifconfig Njengoba ukwazi ukubona, zonke izixhumi zenethiwekhi ziyavela, kulayini wesibili wesixhumi esibonakalayo ngasinye sibona okufana:okufakiwe 192.168.1.5»… I-Inet ikheli le-IP, ngokwesibonelo, uma ngenza i- i-grep ukuhlunga i-inet ngingabonisa kuphela ama-IP:

sudo ifconfig | grep inet

Kungasikhombisa i-IPv4 ne-IPv6 IPs yethu.

I-MAC

Umyalo ofanayo usivumela ukuba sazi ikheli lethu le-MAC, singalibona kulayini oqala ngo- "ether", sisengasebenzisa i-grep ukuhlunga nge-ether nokuthi kuvela ama-MAC ethu kuphela:

sudo ifconfig | grep ether

Iseva ye-DNS

Ukwazi iseva yethu ye-DNS singabona okuqukethwe kwefayela le / /etc/resolv.conf:

cat /etc/resolv.conf

Lapho sizobona isizinda senethiwekhi yethu (uma kungenzeka sibe neyodwa ku-LAN) noma i-IP yeseva ye-DNS esiyisebenzisayo.

Isango noma iGateway

Ukwazi isango lethu kulula nje, sizosebenzisa:

ip route show

Sizobona ukuthi kungavela imigqa eminingana, kepha (ngokuvamile) umugqa wokuqala uqukethe isango lethu ekuqaleni, ulayini oqala ngo ezenzakalelayo

ip-umzila Nokho ... kusobala ungasebenzisa i-grep futhi ukuhlunga ngokuzenzakalela:

ip route show | grep default

Futhi ... ukuthola okuhle kakhulu singasebenzisa i-awk ukukhombisa kuphela ikholomu yesithathu, i-IP:

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

Kepha hheyi, lokhu kuzositholela imininingwane 😀

Igama lomethuleli noma igama lekhompyutha

Kulula, kulula kakhulu ... vele ugijime: igama lomethuleli

hostname

Isiphetho!

Kuze kube manje okuthunyelwe kuya, angazi noma ngabe nginokulungiselela okulindile yini ... uma kunjalo, yabelana ngomyalo wokukubonisa esigungwini 😉

Jabulela!


Okuqukethwe yi-athikili kunamathela ezimisweni zethu ze izimiso zokuhlelela. Ukubika iphutha chofoza lapha.

Amazwana ayi-8, shiya okwakho

Shiya umbono wakho

Ikheli lakho le ngeke ishicilelwe. Ezidingekayo ibhalwe nge *

*

*

  1. Ubhekele imininingwane: Miguel Ángel Gatón
  2. Inhloso yedatha: Lawula Ugaxekile, ukuphathwa kwamazwana.
  3. Ukusemthethweni: Imvume yakho
  4. Ukuxhumana kwemininingwane: Imininingwane ngeke idluliselwe kubantu besithathu ngaphandle kwesibopho esisemthethweni.
  5. Isitoreji sedatha: Idatabase ebanjwe yi-Occentus Networks (EU)
  6. Amalungelo: Nganoma yisiphi isikhathi ungakhawulela, uthole futhi ususe imininingwane yakho.

  1.   Gonzalo kusho

    Akukaze kube buhlungu ukubakhumbula

  2.   Hugo kusho

    Endabeni ye-DNS, lokhu akunjalo ngaso sonke isikhathi.
    Ku-Ubuntu noma okunye okuvela kukho ifayela '/etc/resolv.conf' liqukethe 'nameserver 127.0.1.1'
    Ungayinquma kanjani i-DNS emisiwe kulezi zimo?

    1.    Xurxo kusho

      Lokhu kwenzeka ngoba uhlelo lusebenzisa: / usr / sbin / NetworkManager futhi yilolu hlelo oluphethe ukubiza / sbin / dhclient.

      Uma ufuna ukubona yonke imininingwane kufaka phakathi amagama we-IP we-nameserver, vele usebenzise umyalo:

      "Ithuluzi le-Nm"

      Ku-Ubunto naseMint kuzokunikeza okuthile okufana nalokhu:

      Ithuluzi le-NetworkManager

      Isimo: kuxhunyiwe (umhlaba jikelele)

      - Idivayisi: eth0 —————————————————————–
      Thayipha: Inentambo
      Umshayeli: jme
      Isimo: ayitholakali
      Okuzenzakalelayo: cha
      Ikheli le-HW: 00: 90: F5: C0: 32: FC

      Amakhono:
      Ukutholwa Kwenkampani yenethiwekhi: yebo

      Izakhiwo Ezinentambo
      Inkampani yenethiwekhi: icishiwe

      - Idivayisi: wlan0 [I-Auto MOVISTAR_JIJIJI] ———————————————
      Thayipha: 802.11 WiFi
      Umshayeli: rtl8192ce
      Isimo: kuxhunyiwe
      Okuzenzakalelayo: yebo
      Ikheli le-HW: E0: B9: A5: B3: 08: CA

      Amakhono:
      Isivinini: 72 Mb / s

      Izindawo ezingenantambo
      Ukubethela kwe-WEP: yebo
      Ukubethela kwe-WPA: yebo
      Ukubethela kwe-WPA2: yebo

      Amaphuzu Okufinyelela Okungenantambo (* = i-AP yamanje)
      * MOVISTAR_D44A: Infra, F8: 73: 92: 50: D4: 53, Freq 2452 MHz, Rate 54 Mb / s, Amandla 40 WPA

      Izilungiselelo ze-IPv4:
      Ikheli: 192.168.1.37
      Isiqalo: 24 (255.255.255.0)
      Isango: 192.168.1.1

      I-DNS: 80.58.61.250
      I-DNS: 80.58.61.254
      I-DNS: 193.22.119.22
      I-DNS: 208.67.222.222

      Okungukuthi, lonke ulwazi imiyalo ekuleli posi (nokunye okunye) ikunikeza ngokwehlukana ngasikhathi sinye. Ukwazi ezinye izinketho, usuvele uyazi: «man nm-tool» 🙂

      Ngaphandle kwama-oda:

      "Igama lomethuleli"
      "Umzila"

      1.    i-barnarasta kusho

        # bamba http://www.google.com | I-Grep SERVER

        futhi izokutshela i-DNS esetshenzisiwe

      2.    amakhemikhali kusho

        Kusukela ngo-Ubuntu 15.04 kufanele usebenzise:

        nmcli idivayisi show

        ngoba ithuluzi le-nm lanyamalala:
        http://askubuntu.com/questions/617067/why-nm-tool-is-no-longer-available-in-ubuntu-15-04

  3.   cohiote kusho

    Sawubona, ngafaka iHuayra 2.0 futhi sengibuyekeze ngaya ku-2.1.
    Okungenani kulezi zinguqulo, ngokuzenzakalela awukho umyalo we- "ifconfig", ngaphandle kwalokho ngisebenzisa umyalo we- "ip" ukubona isimo samakhadi enethiwekhi:

    ip sh

  4.   jhb kusho

    xd amadoda jnbkj kjbkjbk kjbkj kj kj

  5.   JMonzon kusho

    Ngilubuyekeza kanjani ushintsho lwekheli le-IP leseva yami yemeyili ku-ISP DNS?