How To Assign A Static IP Address To Raspberry Pi (OLD METHOD)

  Переглядів 12,765

LiveSparks

LiveSparks

8 років тому

***** NOTE *****
this method doesn't work on the latest version of raspbian
checkout this video for the working method : • How to Set Static IP f...
*******************
Learn How To Give The Raspberry Pi A Static IP Address. Which is useful for many purposes including SSH as well as your own web server.
The Steps are Simple and Easy to follow.
For in-depth instructions you can checkout the Instructables here: www.instructables.com/id/How-T...
How To Install Raspbian : • How to Install Raspbia...
Learn How To Use SSH : • How To Use SSH with Ra...
You can follow me on Twiiter : / livesparking
Google+ : google.com/+livesparks
Instructables : www.instructables.com/member/L...
Song : Two Steps

КОМЕНТАРІ: 55
@michaellove3554
@michaellove3554 7 років тому
Thanks for this video. Simple, clear and easy to follow.
@ALZlper
@ALZlper 8 років тому
The Video was so helpful that the english was no problem! Big thumbs up!
@sidharthmahesh1995
@sidharthmahesh1995 7 років тому
awesome video good instructions😀
@lxw5231
@lxw5231 8 років тому
thanks for tutorial! nice feedback.
@pinkeye00
@pinkeye00 8 років тому
Simple, fast and easy. :) Thanks!
@WisdomofElectronics
@WisdomofElectronics 8 років тому
u are awesome ..u r explanation is very nice .it is easy to understand .
@MrBengourben
@MrBengourben 7 років тому
brilliant! worked a treat. thank you very much!
@LiveSparks
@LiveSparks 7 років тому
+Jason Murphy Glad to help
@MartiinCarrillo
@MartiinCarrillo 8 років тому
thanks for your video! by the way, i really liked the music :)
@beaurosario8358
@beaurosario8358 8 років тому
Thanks for the tutorial! I have followed your steps on how to do static ip in Jessie, and I've double checked these steps with a number of different sources, and all prove that I'm doing the right steps with the dhcpcd.conf file. However, after I reboot and it refreshes to my newly assigned IP, I cannot connect to the internet. (Unless I have wifi on, which uses the dynamic IP.) Any ideas?
@LiveSparks
@LiveSparks 8 років тому
+Beau Rosario Actually the steps shown in the video don't work with Raspbian Jessie. Cookie these steps instead : First of all enter this command: sudo vi /etc/dhcpcd.conf Then all you need to do is add the following to the bottom of the file. Make sure to use the IP that you want. interface eth0 static ip_address=192.168.1.141/24 static routers=192.168.1.1 static domain_name_servers=192.168.1.1 The above mentioned steps should work
@derickghoda1947
@derickghoda1947 8 років тому
Thanks for this tutorial, very helpful. But if I want to stop having a static IP address, do I just do the reverse of what is done in the tutorial ?
@LiveSparks
@LiveSparks 8 років тому
+Derick Ghoda Yes, just reverse the steps.
@ivancalvo6323
@ivancalvo6323 7 років тому
I LOVE YOU MAN! THANKS! YOU SAVE MY LIFE!
@LiveSparks
@LiveSparks 7 років тому
+Iván Calvo That's what I do man!.... I save lives!
@AndyinMokum
@AndyinMokum 8 років тому
This is an excellent tutorial - well done. Are you going to make a similar one for Raspbian Jessie? With the implementation of systemd, the way of setting a static IP address has changed and not for the better. I've been trying for days to achieve it, with no success. Everyone I've asked so far has conflicting ideas and none of them work, or the explanation is so obtuse, it's impossible to follow. It would be really nice if you could give it a try. Maybe you'll be able to explain how to do this.
@LiveSparks
@LiveSparks 8 років тому
I have looked into it and the procedure for setting the static IP hasn't changed much. first of all enter this command: sudo vi /etc/dhcpcd.conf Then all you need to do is add the following to the bottom of the file. Make sure to use the IP that you want. interface eth0 static ip_address=192.168.1.141/24 static routers=192.168.1.1 static domain_name_servers=192.168.1.1 If you are still facing problems let me know the exact problem you are facing.
@LiveSparks
@LiveSparks 8 років тому
+Andy Mitchell Since I can't cover everything in the comments I'll to make a video explaining all the changes in the Raspbian Jessie.
@AndyinMokum
@AndyinMokum 8 років тому
+Live Sparks That would be fantastic. I'm sure there are many people like myself who are finding working with Raspbian Jessie anything but simple. I have tried both Jessie and the newer Jessie Lite. Testing ping is the first thing that was driving me insane. Ping would only work with elevated privileges. It makes you think you've been hacked. You have to change the permissions: chmod u+s /bin/ping. Then it'll work. Why it's like this, is a mystery. I finally assign a static IP address but I find I have two IP addresses, a static one and a dynamic one. I haven't been able to fix that. That's yet another mystery. I can still ping out to google and receive all the packets back okay. However, I can't update, upgrade or install packages with confirmation. Jessie won't connect to the repos properly. That's one mystery too many and the point where I said Jessie is horrible and gave up. I know I'm at some point soon going to have to move to Jessie unless another distro ports to ARM; Ubuntu Server would be great. Anyway, I'm dreaming. If you have better luck with Jessie, please tell me how you performed this miracle. I'm sure I'm not the only person that'll thank you.
@LiveSparks
@LiveSparks 8 років тому
I'll try to address all these issues in an upcoming video but until then you can use the raspbian weezy because jessie doesn't offer many performance improvements.
@AndyinMokum
@AndyinMokum 8 років тому
+Live Sparks That would be fantastic. I have one more quick question. In your previous reply you give a example of an edit to /etc/dhcpcd.conf in Raspbian Jessie. You give an dummy example static IP address: 192.168.1.141/24. I'm unfamiliar with the /24 extension to it. What does it mean and is it necessary for when I apply my own static IP address?
@ishbenowan4329
@ishbenowan4329 8 років тому
My man this is a really nice video tutorial but please lower the music in your video
@hudsonjames147
@hudsonjames147 8 років тому
I want to assign a static IP address in the Pi for running my project.They have specifically said that I need to modify to the IP address mentioned by them
@LiveSparks
@LiveSparks 8 років тому
+Hudson James Then just replace the IP with the one you want but you will have to make sure that no other device on your network has the same IP. You will have to check for that I your router settings.
@ttbooster
@ttbooster 8 років тому
For wlan0 (wifi dongle, ex Edimax): # interfaces(5) file used by ifup(8) and ifdown(8) # Please note that this file is written to be used with dhcpcd # For static IP, consult /etc/dhcpcd.conf and 'man dhcpcd.conf' # Include files from /etc/network/interfaces.d: source-directory /etc/network/interfaces.d auto lo iface lo inet loopback iface eth0 inet dhcp allow-hotplug wlan0 iface wlan0 inet static address 192.. netmask 255.. network 192.. broadcast 192.. gateway 192.. wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf #allow-hotplug wlan1 #iface wlan1 inet manual #wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
@hudsonjames147
@hudsonjames147 8 років тому
I followed the same procedure as above.It hasn't changed
@LiveSparks
@LiveSparks 8 років тому
+Hudson James What exactly hasn't changed? The IP address isn't supposed to change. Although if the file hasn't changed them you might be using Raspbian Jessie for which the procedure is different.
@hudsonjames147
@hudsonjames147 8 років тому
Instead of dhcp I'm getting manual .I have followed that same procedure but the IP address did not change
@LiveSparks
@LiveSparks 8 років тому
+Hudson James The IP doesn't need to change, if you followed the exact same procedure than the IP would stay the same and never change (static IP) which is what we want. Manual instead of dhcp doesn't make a difference, just replace it with static.
@LiveSparks
@LiveSparks 8 років тому
+Hudson James The IP doesn't need to change, if you followed the exact same procedure than the IP would stay the same and never change (static IP) which is what we want. Manual instead of dhcp doesn't make a difference, just replace it with static.
@lxw5231
@lxw5231 8 років тому
I'm using jessie, after reading Andy's thread. seems this tutorial doesn't work for jessie. I'll switch back to weezy
@LiveSparks
@LiveSparks 8 років тому
Unfortunately, the procedure is a little different for Jessie though I have already answered Andy on how to do it on Jessie.
@lxw5231
@lxw5231 8 років тому
thanks Sparks. I just tested my system. I did not do anything to router or my pi, I reboot , or shutdown my pi. my ip address stay same. why?
@LiveSparks
@LiveSparks 8 років тому
This really depends upon your router, some try to give the same ip to the same devices whereas some routers assign the ip randomly. But there is a chance that some new device might occupy the ip your Pi is at and then your Pi's ip will change. This is why it is a good idea to give a static ip.
@lxw5231
@lxw5231 8 років тому
+Live Sparks with this static ip address, how do you visit your pi world wide?
@LiveSparks
@LiveSparks 8 років тому
After giving the static ip, you need to port forward the Pi so that it is visible outside your network. There will be an option for port forwarding in your router settings.
@DrequimaX
@DrequimaX 7 років тому
How to give your Rasvari Pi a staic ip?
@DrequimaX
@DrequimaX 7 років тому
Good vid bro.
@LiveSparks
@LiveSparks 7 років тому
This method doesn't work on the latest versions of the raspbian OS. for the new method go to : ukposts.info/have/v-deo/nJaLoIOtsYeH1H0.html
@svb9002
@svb9002 8 років тому
Very annoying music! Impossible to watch!
@hudsonjames147
@hudsonjames147 8 років тому
I followed the same procedure as above.It hasn't changed
@sunamsaha7650
@sunamsaha7650 8 років тому
do have u solve the problem ultimately??
@LiveSparks
@LiveSparks 8 років тому
+Sunam Saha The procedure mentioned in the video doesn't work with the newer raspbian Jessie. Though it still works with Raspbian Weezy
@sunamsaha7650
@sunamsaha7650 8 років тому
how it can work for the new model??pls ans
@LiveSparks
@LiveSparks 8 років тому
+Sunam Saha Please check my reply to the comment by Beau Rosario
2016: Assign a Static IP Address to Raspberry Pi
5:24
AvoidErrors
Переглядів 133 тис.
Парковка Пошла Не По Плану 😨
00:12
Глеб Рандалайнен
Переглядів 11 млн
Simmerstats: The genius old tech that controls your stovetop
36:31
Technology Connections
Переглядів 572 тис.
Turn The Raspberry Pi Zero Into A Mini Dongle Computer
3:53
N-O-D-E
Переглядів 259 тис.
CNC Machining Will Never Be The Same: This is Next Level
8:26
TITANS of CNC MACHINING
Переглядів 34 тис.
How AI 'Understands' Images (CLIP) - Computerphile
18:05
Computerphile
Переглядів 40 тис.
SDRplay - Setting up a Raspberry Pi Server with SDRconnect (VID640)
11:35
SDRplay Software Defined Radio Receiver
Переглядів 7 тис.
Raspberry Pi Zero USB/Ethernet Gadget Tutorial
12:47
Circuit Basics
Переглядів 155 тис.
Raspberry Pi Setting a static IP Address
8:16
theurbanpenguin
Переглядів 61 тис.
How to Set Up a Static IP on the Raspberry Pi (with Raspbian Jessie)
7:54
2 Raspberry Pi host Doesnot Exist,Connection refuse, timeout (SOLVED)
7:34
Секретная функция ютуба 😱🐍 #shorts
0:14
Владислав Шудейко
Переглядів 827 тис.
300 000 за🚀МОЩНЫЙ, Но МЕРТВЫЙ ноут из Китая. Ремонт cyberpowerpc tracer 7 EDGE. Нюансы китай ноутов.
46:12
ААНТ КОНТАКТ Сервис по ремонту техники в ЕКБ, СПБ
Переглядів 59 тис.
GOOGLE СДЕЛАЛИ НЕВОЗМОЖНОЕ! Это круче любого Samsung, Apple и Xiaomi…
13:16
Thebox - о технике и гаджетах
Переглядів 66 тис.
ИГРОВОЙ ПК c WILDBERRIES за 40 тысяч рублей
30:17
Ремонтяш
Переглядів 462 тис.