[raspberry-vi] Re: wicd and wpa2-psk

  • From: "Darrel" <darrel@xxxxxxxx>
  • To: <raspberry-vi@xxxxxxxxxxxxx>
  • Date: Thu, 14 Jul 2016 19:20:10 -0500

So I am trying to understand your question. 
So are you trying to get to the PI from the outside world?
The code you have posted will create a permanent private IP address.
E.G. It will not get it's address thru DHCP. 
But it will still be a private local address. This is what 192.168... does.
Even if you do this you will not be able to get to the PI from outside your
private network. It is just the first part.
Your router will have to still be configured. Then with most small routers
you may still not be able to do it.
 Now if you have a static public address the router can say rout all traffic
from the public address to the private address.
Otherwise in most cases you will need to create a VPN tunnel. VPN stands for
virtual private network.
This will require some good network experience or a good router with it's
own vpn client software.

 Tks,
Darrel

-----Original Message-----
From: raspberry-vi-bounce@xxxxxxxxxxxxx
[mailto:raspberry-vi-bounce@xxxxxxxxxxxxx] On Behalf Of Angus MacKinnon
Sent: Thursday, July 14, 2016 6:57 PM
To: raspberry-vi@xxxxxxxxxxxxx
Subject: [raspberry-vi] Re: wicd and wpa2-psk

I am only a newbie with networking and trying to understand. Would the below
be part of the answer.


Start by editing the dhcpcd.conf file

sudo nano /etc/dhcpcd.conf



Scroll all the way to the bottom of the file and add one, or both of the
following snippets. Depending on whether you want to set a static IP address
for a wired connection or a wireless connection eth0 = wired, wlan0 =
wireless.

You'll need to edit the numbers in the snippet so they match your network
configuration.

CODE
interface eth0

static ip_address=192.168.0.10/24
static routers=192.168.0.1
static domain_name_servers=192.168.0.1

interface wlan0

static ip_address=192.168.0.10/24
static routers=192.168.0.1
static domain_name_servers=192.168.0.1
 Angus MacKinnon

===========================================================
The raspberry-vi mailing list
Archives: //www.freelists.org/archives/raspberry-vi
Administrative contact: <mike.ray@xxxxxxxxxxxxxx>
-----------------------------------------------------------
Raspberry Pi and the Raspberry Pi logo are trademarks of the Raspberry Pi
Foundation.

This list is not affiliated to the Raspberry Pi Foundation and the views and
attitudes expressed by the subscribers to this list do not reflect those of
the Foundation.

Mike Ray, list creator, January 2013


=========================================================== 
The raspberry-vi mailing list 
Archives: //www.freelists.org/archives/raspberry-vi
Administrative contact: <mike.ray@xxxxxxxxxxxxxx>
-----------------------------------------------------------
Raspberry Pi and the Raspberry Pi logo are trademarks of the Raspberry Pi 
Foundation.

This list is not affiliated to the Raspberry Pi Foundation and the views and 
attitudes expressed by the subscribers to this list do not reflect those of the 
Foundation.

Mike Ray, list creator, January 2013

Other related posts: