himani18
Posts: 44
Joined: Fri Feb 19, 2016 4:52 pm

Help needed for making IP address dyanamic..

Sat Apr 02, 2016 6:20 am

Few days ago.. i followed some tutorials and made my raspi id address static...
Now I am facing lots of issue because of static ip..
My internet is not working now on RPi,,,

So i want to make ip address dyanamic..

I have tried to change config file in sudo nano /etc/network/interfaces
I have done the following changes... but still my internet is not working..

Code: Select all

# 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 manual
    wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf

allow-hotplug wlan1
iface wlan1 inet manual
    wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
iface default inet dhcp

PS: i am using internet via ethernet cable

:( :(

User avatar
MarkHaysHarris777
Posts: 1820
Joined: Mon Mar 23, 2015 7:39 am
Location: Rochester, MN
Contact: Website

Re: Help needed for making IP address dyanamic..

Sat Apr 02, 2016 6:32 am

himani18 wrote:I have tried to change config file in sudo nano /etc/network/interfaces
I have done the following changes... but still my internet is not working..
Here is a copy of the /etc/network/interfaces from a working (dynamic) RPI3 :

Code: Select all

# 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 manual

allow-hotplug wlan0
iface wlan0 inet manual
    wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf

allow-hotplug wlan1
iface wlan1 inet manual
    wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf

Did you make any changes to interfaces.d ?

There are many many reasons why your PI may not be connecting. If you want some help, give more details. What model are you using, which OS, and what diagnostics have you run ?

sudo ifconfig ? results? eth0 and wifi
sudo iwconfig ? results? wifi only

How is the rest of your network doing? other PIs ?

Sometimes it is just easier to get a friend over to the house who knows networking and can be there for you? yes?

Best of luck
Last edited by MarkHaysHarris777 on Sat Apr 02, 2016 6:37 am, edited 1 time in total.
marcus
:ugeek:

himani18
Posts: 44
Joined: Fri Feb 19, 2016 4:52 pm

Re: Help needed for making IP address dyanamic..

Sat Apr 02, 2016 6:35 am

still Sir..
my internet is not working...

User avatar
MarkHaysHarris777
Posts: 1820
Joined: Mon Mar 23, 2015 7:39 am
Location: Rochester, MN
Contact: Website

Re: Help needed for making IP address dyanamic..

Sat Apr 02, 2016 6:40 am

himani18 wrote:still Sir..
my internet is not working...

um... I love car analogies...

still Sir...
"my car is not working..."

Did you forget to put gas in it... ? Did you crash it... ? Did someone steal it... ? Did you lose the keys... ?

(what kind of car is it...?)

:roll:
marcus
:ugeek:

himani18
Posts: 44
Joined: Fri Feb 19, 2016 4:52 pm

Re: Help needed for making IP address dyanamic..

Sat Apr 02, 2016 6:43 am

rather this.. I have not made any changes in config files..

ifconfig command is working..

& i am not able to use ping command...

User avatar
MarkHaysHarris777
Posts: 1820
Joined: Mon Mar 23, 2015 7:39 am
Location: Rochester, MN
Contact: Website

Re: Help needed for making IP address dyanamic..

Sat Apr 02, 2016 6:57 am

Are you trying to use eth0 or wlan0?

Is the cable plugged in? Is your router powered on an working with the rest of your computers (if any)?

What is the output of ifconfig ?

What is the output of iwconfig ?

Your first post stated that you changed the config files... your last post denied changing anything/... which is it?

Like Jesus asked the sick man at the pool of Bethesda... "do you want to be healed?"
marcus
:ugeek:

Return to “Beginners”