2016: Assign a Static IP Address to Raspberry Pi

  Переглядів 133,268

AvoidErrors

AvoidErrors

8 років тому

How to assign your Raspberry Pi 3 a static IP address using the latest version of Raspbian or NOOBS.
This task assumes that you have the latest official Raspbian OS release installed.
This guide also assumes that you've connected your Pi to a network via Ethernet.
New version of Raspbian wrongfully named "eth0" to "enxb827"
PRODUCT USED IN THIS VIDEO:
Raspberry Pi 3 Complete Starter Kit:
www.avoiderrors.net/Raspberry...
Got to the written tutorial where you can copy and paste the commands:
www.avoiderrors.net/?p=29147

КОМЕНТАРІ: 120
@cutthroughrecordings
@cutthroughrecordings 7 років тому
Best guide yet. I was so confused why configuring through /etc/network/interfaces wasnt working. Thanks for the quick and easy instructions!
@MrStraightahead
@MrStraightahead 7 років тому
After a few attempts at other ways of configuring a fresh install of Jessie 1.11.17, finally I found your method. Now my preferred method. I'm subscribed, thanks Miguel!
@FictionsAndIllusions
@FictionsAndIllusions 6 років тому
Thanks for this video. I read a lot of out of date guides that modify the "interfaces" file and that messed up my raspberry pi 3's wifi. This guide finally has my pi up and running on a static ip.
@lucidumluxbrightlight6747
@lucidumluxbrightlight6747 4 роки тому
Thank you, Sir Your straight-forward directions enabled me to get my static IP address set.
@ajangmadaki2632
@ajangmadaki2632 5 років тому
Wow! after a whole week of searching, you just appear and safe the day. thanks very much.
@cipher7565
@cipher7565 5 років тому
Amazingly simple explanation! Thank you so much!
@mtstek
@mtstek 7 місяців тому
I finally found the easiest way to set static IP addr for RPi. Thank you so much!
@jensharbers5620
@jensharbers5620 5 років тому
Awesome tutorial. It is well explained and easy to follow and you have explained why these steps are being done.
@_3bandz
@_3bandz 2 роки тому
Thank you so much, really clear and concise instructions! 👍🏽
@claudiojburgos
@claudiojburgos 5 років тому
Thanks men, this really helped me a lot!
@androiduberalles
@androiduberalles 7 років тому
If I could give you more than 1 thumb up, I would. This is the only thing I have found that works (and is explained very well). Thanks!
@bikerchrisukk
@bikerchrisukk Рік тому
Thanks for this, helped me change the gateway IP after a router change 👍
@JoseGarcia-rc1yi
@JoseGarcia-rc1yi 7 років тому
Thanks Miguel...you are the best.. gracias.
@SuperCruelworld
@SuperCruelworld 3 роки тому
Thanks. have missed your vlogs
@lucidumluxbrightlight6747
@lucidumluxbrightlight6747 7 років тому
thank you, man, you really helped me.
@vendettasnares
@vendettasnares 3 роки тому
Very well explained, thank you.
@tonedh2auto
@tonedh2auto 5 років тому
Execellent explanation. Thank you very much.
@CrisTooR
@CrisTooR 6 років тому
thank you! very well explained
@jsuarez7720
@jsuarez7720 6 років тому
It works amazing, thank you!
@magicalworld40
@magicalworld40 4 місяці тому
Helped us a lot thanks sir
@itstime9727
@itstime9727 4 роки тому
Thanks, So if you change the ip address of the Raspberry Pi os does it also change the ip address of Pi-Hole?
@jaimedpcaus1
@jaimedpcaus1 7 років тому
Great Miguel, did it. By the way, what if I go to another WIFI, would this configuration be useless? thx.
@StavrosSophocleous
@StavrosSophocleous 5 років тому
Thank you for the tutorial. I have a raspberry Pi with Hassio installed (Home Assistant) . I want to change my Pi to a static ip. I can do the ifconfig command and get the results as per your video but the sudo nano etc/dhcp.conf command is not recognized . I get the error -bash: -sudo: command not found. Thanks
@robelrobberflye7256
@robelrobberflye7256 5 років тому
That's cool, and what do you do when by the eth0: , there is written "flags multicast" by me, instead. It doesn't appear in other words. how can i get though that? Good Video!
@more_u-listen_more_u_love9543
@more_u-listen_more_u_love9543 4 роки тому
Hi if my raspberry pi connect through wifi then it possible to set statics password
@AaronEstebanSEO
@AaronEstebanSEO 4 роки тому
Would this fix the dynamic ip address issue from constantly changing on the router when using a RPi as a web server hosting a website or do we still have to use the dynamic ip address generated directly from the router instead of the RPi IP address when hosting a website on a RPi?
@John-fw2dk
@John-fw2dk 7 років тому
Thanks for the video! It worked but only if I used the 8.8.8.8 8.8.4.4 for the static domain name. When I put my own gateway ip I couldn't connect to the internet. Why would that be?
@salaheddinAbushhiwa
@salaheddinAbushhiwa 3 роки тому
your video helped me a lot. Thaaaank you so much
@allendevans
@allendevans 4 роки тому
Nicely done. Thank you.
@gabrielschroll3824
@gabrielschroll3824 Рік тому
Thanks for the video! I understand that the Raspberry Pi has an IP address. Is this different than the IP of my home internet? For example, if I see X IP for the Rasbperry Pi, will I see X for my computer? Or will I see Y for the computer? If they're different, I don't really understand what this is meant to do. Is it a little computer? Or does it effectively change your computer's IP like a VPN would? Also, where is this new IP from? Is it local to your physical address? Especially if I can choose my own IP address. For example, what if I live in the New York City metro area, but I want to have a Milwaukee, Wisconsin IP so that I can watch "local" Packers NFL games from New Jersey - because nobody wants to watch the Jets or Giants - no matter where I am via my SpectrumTV app? How does one go about determining where the IP is located? And during setup, can I just put any IP I want in there? How do I know if that IP is already being used by someone else? Is there a list of Milwaukee IPs that are free for me to take? I hope that's not a super dumb question. I have very specific needs, and am not sure if Raspberry Pi is going to work, so before I dive too deeply, I want to have confidence that it's going to be worth the investment. Thanks!!
@productorasb
@productorasb 4 роки тому
simple... and works, thanks
@thevolk8537
@thevolk8537 5 років тому
very very very very good video sir i appreciate it
@majiwsaud
@majiwsaud 6 років тому
Tanks for full understandable steps... I wounder if you can add another video of how to assign raspberry pi as ad hoc mode with static IP we will be appreciate your efforts
@its_justalexx7067
@its_justalexx7067 2 роки тому
What would u put instead eth0 for a wireless connection?
@kiranbariya7827
@kiranbariya7827 4 роки тому
Can assign static IP for al other router gateway?
@crustydemon4
@crustydemon4 7 років тому
Hey mate, Thanks for putting the effort on setting up this video. I followed the steps suggested by you and the static IP is working fine. However I am unable to connect to the internet. I went through the video 2 to 3 times and then relaized I had spelling errors and the subnetmask on the PI is coming as 255.0.0.0 (Surprisingly on the same network my laptop has 255.255.255.0) As suggested in your video I added the /8 after the IP address. But still unable to connect to the internet It would be very helpful if you can help me with the same. Regards, Vikas Mulchandani (India)
@sudhakarmadakaful
@sudhakarmadakaful 6 років тому
thanks man, worked perfectlty
@alberto6888
@alberto6888 5 років тому
Very useful video! thanks mate!
@ASMRRussia
@ASMRRussia 3 роки тому
What does it mean if kernel ip routing table is empty? Should I configure gateway by myself?
@yv6eda
@yv6eda 2 роки тому
Thank you Miguel!
@girinanjayan2602
@girinanjayan2602 5 років тому
I'm not connected to an internet after I assign the static IP address, the IP address of my raspberry is couldn't visible even in a router settings
@HenriqueLeal92
@HenriqueLeal92 3 роки тому
thank you so much!!!! ive changed the IP but it wasnt working just because i didnt put the /24 that you explained in the video
@ANPwarrior
@ANPwarrior 7 років тому
do I have to set a static IP address for my router?
@matttanous1
@matttanous1 7 років тому
is your method for a wired connection?
@shazol92
@shazol92 7 років тому
i just installed raspbx on my pi3, want to use my public ip into the pi to get access from anywhere over the world as ip phone service... help me out sir.. Thanks in advacne
@hikenadventure
@hikenadventure 5 років тому
a big help, thank you.
@manishagarwal8444
@manishagarwal8444 7 років тому
I'm using my college's wifi...can I setup a static IP on raspberry while my PC is connected to public wifi?
@mohammadzare3232
@mohammadzare3232 4 роки тому
It is very easy and useful , thanks .
@crasonstha3417
@crasonstha3417 5 років тому
Thank you bro!
@sasquatch1973
@sasquatch1973 2 роки тому
So helpful thank you
@robe8712
@robe8712 5 років тому
Hi, Miguel Very good Video! I tried the sam thing on the raspberry 3 and at reboot it sais My IP address is.... and so forth! My Question is why did it change not exact the same address as I have asignd it too? Only the last 4 digits have changed. Thank you for making a big change in the computing world :-) Miguel is the best!
@robertpendergast2620
@robertpendergast2620 7 років тому
Thanks. Subscribed.
@Skisful
@Skisful 3 роки тому
If putty telling you "network error connection refused", you need to run "sudo raspi-config" and enable ssh
@luizhsd1
@luizhsd1 3 роки тому
GREAT VIDEO. THANKS
@FaridAbboud
@FaridAbboud 4 роки тому
Great tutorial thanks you
@TheErico1985
@TheErico1985 4 роки тому
Hi Miguel, I quite new to linux and RPi. After configuring raspbian and connected the RPi to internet, it stops working in ~ 10min; the msg on the wifi symbol is ''eth0 link is down''. Can this method solve my problem? Thx in adv.
@EduardoReyes-il1wd
@EduardoReyes-il1wd 6 років тому
Its the same whit wlan0?
@molonlabe8792
@molonlabe8792 6 років тому
How I can locate raspberry's default gateway?
@pablohuento5190
@pablohuento5190 6 років тому
Hola , muchas gracias me fue de gran utilidad . saludos
@hamidaminirad
@hamidaminirad 4 роки тому
After having set the values as you wrote, it has now changed my IPv4 to a IPv6
@M4tt1mus
@M4tt1mus 4 роки тому
worked great!
@LassiVVV
@LassiVVV 6 років тому
Anyone can help why my Ip not change. I change everything like video and try couple different static ip address my Raspberry, but always i get connected only that ip what i get when i start raspberry first time.
@percynolan6198
@percynolan6198 4 роки тому
What was the point in writing down the stuff at the start
@424kchun424
@424kchun424 5 років тому
Thank you so sO MUCH!
@te0417
@te0417 6 років тому
Good video, thank you
@jeetpatel6437
@jeetpatel6437 6 років тому
unable to resolve host???? what i do...
@seanduggan4944
@seanduggan4944 2 роки тому
thank you !
@imranshaikh3064
@imranshaikh3064 5 років тому
how to assign static ip using 3g dongle interfacing raspberrypi3
@lilrawlsexclusive
@lilrawlsexclusive 6 років тому
Thank you!!!
@jorgef72
@jorgef72 4 роки тому
Not working for me, using raspberry pi 4 on buster linux version, ip does not change after reboot.
@molonlabe8792
@molonlabe8792 6 років тому
Wait! I put netstat -nr and it says "command not found."
@kn6bst349
@kn6bst349 4 роки тому
Is there a GUI version of doing this in the X environment of Raspbian?
@cyberlion5479
@cyberlion5479 4 роки тому
Don't think so but I bet if you look hard enough there might be some kind of 3rd party software. I wouldn't advise using it though. This way is much more secure.
@jozefbudzak5065
@jozefbudzak5065 6 років тому
Thanks !
@harijs87
@harijs87 2 роки тому
great! thanks
@jaiyesh007
@jaiyesh007 7 років тому
Thanks Bro Its working...
@Avoiderrors
@Avoiderrors 7 років тому
Great im assuming you looked at older tutorials out there and didn't work huh?
@jaiyesh007
@jaiyesh007 7 років тому
+AvoidErrors Yaa Bro....;)
@bjorka5999
@bjorka5999 3 роки тому
Thanks. this help me :)
@lycoris2831
@lycoris2831 5 років тому
After typing ifconfig it did not show inet address or mask
@louiejayjayme8095
@louiejayjayme8095 4 роки тому
i tried your method and now I can't connect to my raspberry pi 4, gotta buy an adaptor for HDMI to remove the codes
@shibinraja
@shibinraja 7 років тому
after setting it I cant able to access internet via Ethernet internet shared
@HitSousouK
@HitSousouK 7 років тому
same issue, trying to figure out a way...did you solve it? too bad the guy isn't replying....
@nizmax8478
@nizmax8478 7 років тому
Hey bro @Sagara Kun did you figure it out ?
@thanhthainguyen8381
@thanhthainguyen8381 6 років тому
a wild problem appeared, I change the interface and now it doesn't connect to my network via the ethernet cable anymore.
@Quantum_Nebula
@Quantum_Nebula 6 років тому
Haha Your problem sounds like a pokemon
@malharjajoo7393
@malharjajoo7393 6 років тому
same issue here
@thanhthainguyen8381
@thanhthainguyen8381 6 років тому
malhar jajoo you should not change the interface, just change the dhcpcd.conf. if you change interface your rasp will no longer connect to the internet. Your only option is to connect it to a screen and revert your interface back to normal
@lucidumluxbrightlight6747
@lucidumluxbrightlight6747 6 років тому
Undo any setting changes you might have done by prefixing ¨#¨ at the beginning of every line; doing so should solve the issue. Me, had the same problem but could manage to overcome it just by that. Hope it works for you.
@thanhthainguyen8381
@thanhthainguyen8381 6 років тому
Yeah, two months ago I was struggling by this a lot
@ccugliari
@ccugliari 4 роки тому
My suggestion to you is not to use the /24 it did not work for me just put in the static IP address. I put the 24 at the end and it blocked the Internet.
@gagananaik4544
@gagananaik4544 7 років тому
Sir i followed all the steps shown in the video.But while i enter the IP address in the putty ,it gives a network error:network unreachable. could you please provide a solution.
@HitSousouK
@HitSousouK 7 років тому
from your pc > run>cmd>ping "input the ip" -- if unreachable; ip address wrongly configured.. open the Rpi via another display, check the IP again..
@wavesofgrey-vb9gw
@wavesofgrey-vb9gw 6 років тому
I had the same issue and had to repeal the commands, then PuTTY worked. I also had to allow PuTTY through my firewall.
@De1taX
@De1taX 6 років тому
Didn’t work. I used wlan0 though, but it doesn’t change..
@andresnoguera2113
@andresnoguera2113 7 років тому
Thanks :-)
@kekecjan
@kekecjan 6 років тому
What if the Raspberry PI 3 doesn't save IP address correctly, what do i have to do then ?
@Avoiderrors
@Avoiderrors 6 років тому
what do you mean it should be saving it
@kekecjan
@kekecjan 6 років тому
AvoidErrors now i solved the problem i have the new version of Raspbian. Instead of eth0 i have enxb827.... and i had to insert that not eth0. well anyway thanks for fast response.
@kekecjan
@kekecjan 6 років тому
AvoidErrors and it's working fine now.
@Avoiderrors
@Avoiderrors 6 років тому
yes on the new version eth0 wrongfully named to "enxb827"
@FarNorthNetworks
@FarNorthNetworks 4 роки тому
This is the most frustrating thing ever....i have tried multiple times to get this to work but it just keeps giving me a DHCP address.
@lionstone3518
@lionstone3518 3 роки тому
Didn't helped.... but I have Class A so idk what to do cuz I cant acces the internet
@mastercute4620
@mastercute4620 5 років тому
Wala po cry
@dixienormus4230
@dixienormus4230 3 роки тому
Mine didn’t work at all. Also you didn’t do anything with the mask
@thingslinkerhindi
@thingslinkerhindi 5 років тому
Internet is not Working.....
@medmelek2662
@medmelek2662 7 років тому
what is the 8.8.8.8.8.8.4 ?
@molonlabe8792
@molonlabe8792 6 років тому
8.8.8.8 & 8.8.4.4 are google dnses.
@doge5779
@doge5779 7 років тому
what button is 'X
@alistairhogg5460
@alistairhogg5460 6 років тому
Doge controll X
@wavesofgrey-vb9gw
@wavesofgrey-vb9gw 6 років тому
control button + x
@TheJojoboy12
@TheJojoboy12 6 років тому
hi, i did this and it went wrong. I have no more connection with wifi or eth , what can i do??
@Avoiderrors
@Avoiderrors 6 років тому
TheJojoboy12 undo changes made.
@lopijagamer5112
@lopijagamer5112 6 років тому
AvoidErrors how
@malharjajoo7393
@malharjajoo7393 6 років тому
that's not really helpful
@johnfenlon2128
@johnfenlon2128 5 років тому
lost my connection
@nileshpatle7848
@nileshpatle7848 5 років тому
putty does not accept my static ip address
@cattoymaker1
@cattoymaker1 2 роки тому
Should have said this is for ethernet
@malharjajoo7393
@malharjajoo7393 6 років тому
you made me mess up my pi man :( . Now it doesnt connect via ethernet either.
@pushingtechnologytothelimi7519
@pushingtechnologytothelimi7519 4 роки тому
Good audio poor video.
Turn Your Raspberry Pi 3 Into a Retro Console
8:29
AvoidErrors
Переглядів 67 тис.
Pi-hole Made EASY - A Complete Tutorial
22:15
Tech Craft
Переглядів 74 тис.
ФОКУС С ЧИПСАМИ (секрет)
00:44
Masomka
Переглядів 3,7 млн
Зомби Апокалипсис  часть 1 🤯#shorts
00:29
INNA SERG
Переглядів 1,1 млн
10 Minutes To Escape Or This Room Explodes!
10:00
MrBeast
Переглядів 64 млн
You're running Pi-Hole wrong! Setting up your own Recursive DNS Server!
18:02
my SUPER secure Raspberry Pi Router (wifi VPN travel router)
30:57
NetworkChuck
Переглядів 1,5 млн
How to Set Up a Static IP on the Raspberry Pi (with Raspbian Jessie)
7:54
What's On My Home Server? Storage, OS, Media, Provisioning, Automation
27:30
Wolfgang's Channel
Переглядів 1,1 млн
VLANs in OpenWrt 21
28:27
OneMarcFifty
Переглядів 155 тис.
How to Set Static IP in Ubuntu Server 22.04
18:03
KeepItTechie
Переглядів 75 тис.
I Made The World's Smallest Server Rack - With UPS and SSD Storage
13:14
Michael Klements
Переглядів 160 тис.
The Ultimate BITCOIN ASIC Setup and Install Guide | Bitmain Antminer S19J Pro
19:29
🤯 Пришлось срочно выкручиваться
0:31
Мария Шортс
Переглядів 1,3 млн
Tay nghề và thể lực tốt mới chơi được
0:31
Byip-Rc
Переглядів 18 млн
Їжа Закарпаття. Великий Гід.
1:0:29
Мiша Кацурiн
Переглядів 573 тис.