geffers
Posts: 397
Joined: Sun Jun 24, 2012 6:25 am
Location: UK
Contact: Website

Fixed IP different location

Thu Apr 07, 2016 8:34 pm

Folks,

I understand the Pi uses a different method to configure network other than /etc/network/interfaces

If I fix the IP on the Pi then have to connect to a different network does dhcp default or would I have to reset it?

Geffers

User avatar
NormanDunbar
Posts: 111
Joined: Wed Nov 23, 2011 12:13 pm
Location: Leeds, West Yorkshire, England.
Contact: Website

Re: Fixed IP different location

Thu Apr 07, 2016 8:52 pm

If your pi has a static IP on a particular lan, then connecting to another lan will work provided that your static IP is not conflicting it any device on the new lan, and your netmask matches the new one too. I suspect he default gateway should also match.

If your IP is 192.168.1.50 with a netmask of 255.255.255.0 then plugging into ant network whose IP addresses start 192.168.1.?? Will still work, provided nobody has .50.

On wifi, you might need to set up a different network said etc in the wpa_supplicant.conf file and in dhcpcd.conf too.

Good luck.

Cheers,
Norm.
Why do they put lightning conductors on churches?
Why did Tarzan never have a beard?

DirkS
Posts: 10197
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: Fixed IP different location

Thu Apr 07, 2016 10:27 pm

Maybe you can use some of the methods explored in viewtopic.php?f=66&t=140252

geffers
Posts: 397
Joined: Sun Jun 24, 2012 6:25 am
Location: UK
Contact: Website

Re: Fixed IP different location

Sun Apr 10, 2016 3:15 pm

NormanDunbar wrote:If your pi has a static IP on a particular lan, then connecting to another lan will work provided that your static IP is not conflicting it any device on the new lan, and your netmask matches the new one too. I suspect he default gateway should also match.

Cheers,
Norm.
Thanks Norm,

Know how the old /etc/network/interfaces works, not so sure about this one.

Geffers

geffers
Posts: 397
Joined: Sun Jun 24, 2012 6:25 am
Location: UK
Contact: Website

Re: Fixed IP different location

Sun Apr 10, 2016 3:26 pm

DirkS wrote:Maybe you can use some of the methods explored in viewtopic.php?f=66&t=140252
Thanks Dirk,

Interesting link.

Geffers

Return to “General discussion”