Sida loo Dejiyo Raspberry Pi Wifi oo leh IP Static

Sida loo Dejiyo Raspberry Pi Wifi oo leh IP Static
Philip Lawrence
ciwaanka gateway ama routerkaaga, ku orod>
  • wadanka IP-ga ee soo socdaCiwaanka IP-ga ee raspberry pi router kaaga. Haddii kale, server-ka magaca ayaa noqon doona diiwaanka DNS kaaga IP, iyo ciwaanka routerkaaga ayaa noqon doona IP-ga gateway.

    Hadda ku dhufo Ctrl X iyo Y kumbuyuutarkaaga si aad u badbaadiso isbeddellada. Ka dib, dib u bilow Raspberry Pi, ciwaankaaga IP Static ayaa diyaar noqon doona!

    Haddii aad rabto inaad hubiso raspberry pi static IP, samee adiga oo furaya Terminal ama SSH oo socodsiiya faylka "ifconfig".

    Noocyada Cinwaanka IP-ga

    >Waxaa jira laba nooc oo ciwaanka IP ah oo u shaqeeya dhammaan noocyada Raspberry pi, sida raspberry pi 3 ama 2. Kuwani waa: >
      > Ciwaanka IP-ga gaarka ah ee ku dhex jira LAN kaaga
  • >
  • Ciwaanka IP-ga ee dadweynaha, kaas oo asal ahaan ah xidhiidhka ethernet-kaaga ama wifi-gaaga waxaad u baahan tahay inaad u hesho dejinta shabakadaada deegaanka. Waxaad si fudud taas ku samayn kartaa Raspberry Pi markaad isticmaalayso serverka DHCP. Si kastaba ha ahaatee, amarrada iyaga ayaa laga yaabaa inay ku kala duwanaadaan nidaamyada kale. > Ku bilow inaad kor u kacdo -4 addr show

    Dunidan casriga ah, wax kasta oo aan samayno waxay u baahan yihiin isku xidh internet. Haddi ay tahay akhrinta maqaal ama ay raadinayso casharo, wax walbaa waxay u baahan yihiin wifi.

    Sidoo kale eeg: Google Wifi vs Nest Wifi: Isbarbardhigga Faahfaahinta

    Sidaa darteed, haddii aad tahay isticmaale Raspberry pi oo aad rabto inaad wax badan ka ogaato cinwaankaaga IP-ga ee taagan si aad u gasho wifi, maqaalkan waa adiga!

    Maqaalkan, waxaan ka hadli doonaa wax kasta oo aad u baahan tahay si aad raspberry pi. Intaa waxa dheer, waxaanu sidoo kale muujin doonaa muhiimada ay leedahay ogaanshaha ciwaanka IP-ga raspberry pi static iyo sida aad u habayn karto!

    >Ma jeceshahay inaad wax badan ogaato? Sii akhri. >

    Waa maxay Ciwaanka IP-ga ee taagan?

    >Erayada fudud, marka aad haysato raspberry pi static IP ciwaanka, isma beddelayo. Sidaa darteed, haddii aad rabto inaad gasho kombuyuutarkaaga wakhti dheer, Raspberry Pi-gaagu wuxuu had iyo jeer u baahan doonaa ciwaanka IP-ga ee taagan. >Kuwa ku cusub adduunka farsamada, ciwaanka IP-ga ee taagan waxa loola jeedaa sirtaada Raspberry Ciwaanka IP-ga Inta badan waxaa lagu dhejiyaa kombuyuutar ku dhex jira shabakadaada. Marka laga reebo taas, waxa kale oo ku yaal ciwaanka IP-ga guud ee shabakadaada kaas oo Raspberry Pi kaaga laga heli karo intarneedka

    Maxaad ugu baahan tahay inaad dejiso IP taagan

    >Haddii aad qorshaynayso Si aad u isticmaasho Raspberry Pi server-kaaga, habaynta IP-ga taagan waa lagama maarmaan. Waa kuwan qaar ka mid ah sababaha:

    Helitaanka

    Maaddaama shabakadeena SSID ay inta badan u baahan tahay marin u helid, tani waxay ka dhigaysaa haysashada ciwaanka IP joogto ah mid ku habboon.

    > FududQaabeynta >Sababta ugu weyn ee ay caan u tahay waa in ay fududahay in la dejiyo oo la maareeyo marka la barbardhigo shabakadaha DNS.

    Waafaqid VPN

    >Sabab kale oo loo isticmaalo Raspbian static IP waa ugu fiican waa sababtoo ah waxay ka dhigaysaa ka shaqaynta meel fog si aad u fudud adoo isticmaalaya Shabakadda Gaarka ah ee Virtual ama shabakad kale oo fog. 4> Adeegga Martigelinta

    Haddii aad martigeliso server-ka iimaylka ama server-ka shabakadda, oo leh cinwaan taagan waxay dadka u fududaynaysaa inay ku helaan. Tani waxay la macno tahay inaad macaamiil badan ku yeelan doonto mareegahaaga.

    >Sida loo siiyo Raspberry Pi Ciwaanka IP ee gaarka ah Terminalkaaga ama ku samee SSH. Taas ka dib, waa inaad ku socodsiisaa amarka soo socda tifaftiraha qoraalka: >
  • sudo nano /etc/dhcpcd.conf file
  • >

    Ka dib, hoos u dhaadhac xagga hoose adiga oo hoos u haya kiiboodhkaaga. Intaa ka dib, waad koobi kartaa oo dhejin kartaa amarka soo socda. Kaliya u beddel tafaasiisha nambarada ku dhiiraday IP kasta oo aad rabto inaad haysato:

    >
  • interface eth0
  • static ip_address=192.168.0.2/24
  • static routers=192.168.0.1
  • >static domain_name_servers=192.168.0.1
  • interface wlan0
  • static ip_address=192.168.0.2/24
  • static routers=192.168. 0.1
  • static domain_name_servers=192.168.0.1
  • Haddii aad ku nooshahay gurigaaga, qaybta router= iyo magac domain labadooduba waxay la mid noqonayaanstatic

  • cinwaanka 10.1.1.31
  • > netmask 255.255.255.0
  • albaabka 10.1.1.1
  • WPA-conf /etc/wpa_supplicant/wpa_supplicant.conf
  • Waxa kale oo aad isku dayi kartaa inaad sheegto magaca server-kaaga raspberry pi DNS. Si kastaba ha ahaatee, looma baahna. Waxaad samayn kartaa eth0, ama wlan0.

    Intaa ka dib, waxaad u baahan tahay inaad joojiso daemon macmiilkaaga DHCP adiga oo u wareegaya shabakada Debian adoo ku socodsiiya amarkan soo socda sudo:

    Sidoo kale eeg: Router-ka ciyaaraha WiFi ugu fiican > sudo systemctl disable dhcpcd

    sudo systemctl waxa ay awood u yeelataa isku xidhka

    Kadibna ugu danbayn, reboot si aad isbeddelada uga dhigto mid waxtar leh adoo ku qoraya kuwan soo socda:

    sudo reboot<1                                                                                                                                                                         ዎች - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

    • sudo nano /etc/dhcpcd.conf

    Kadibna ku qor sadarradan soo socota xagga sare ee koodkaaga:

      >
    • interface eth0
    • 7>static ip_address=192.168.1.XX/24
    • Intaa ka dib, ku qor router static=192.168.1.1 xariiqda xigta
    • >kadib, static domain_name_servers=192.168.1.1 kan xiga .
    • Ugu dambaynta, ku qor sudo reboot, oo socodsii barnaamijka khadadka > /etc/network/interfaces oo keliya. Hadda, si aad u hubiso in koodka loo qoondeeyay uu shaqeeyay, fur browser kasta oo geli ciwaanka routerkaaga.

    Marka uu furmolaba jeer hubi haddii Raspberry Pi-gaagu uu u soo baxo 'Static'. Hadday sidaas samayso, tani waxay la macno tahay habayntaada qaabaynta ayaa shaqaynaysa.

    Gabagabo>Waxaa jira sababo badan oo aad u habaynayso IP-ga taagan ciwaanka Si kastaba ha ahaatee, qaar badan ayaa ka adkaada ka dib marka ay akhriyaan tallaabooyinkeeda qaabeynta. Maqaalkan, waxaanu ku wadaagnay talaabooyin fudud oo aad si fudud ula socon karto si aad u xalliso arintaa.



    Philip Lawrence
    Philip Lawrence
    Philip Lawrence waa xiisee tignoolajiyada iyo khabiir ku takhasusay isku xirka internetka iyo tignoolajiyada wifi. In ka badan toban sano oo waayo-aragnimo ah oo ku saabsan warshadaha, wuxuu ka caawiyay dad badan iyo ganacsiyo badan internetka iyo arrimaha la xiriira wifi. Isaga oo ah qoraa iyo blogger Internetka iyo Wifi Tips, waxa uu u wadaagaa aqoontiisa iyo khibradiisa si fudud oo sahlan oo loo fahmi karo oo qof kastaa ka faa'iidaysan karo. Philip waa u doode si xamaasad leh u wanaajiya isku xidhka iyo ka dhigista internetka qof walba heli karo. Marka aanu wax qorin ama cilad-ka-hortayn dhibaatooyinka farsamada la xidhiidha, waxa uu ku raaxaystaa socodka, kaamamaynta, iyo sahaminta bannaanka weyn.