Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #171906 > unrolled thread

Jessie & Fixed IP Address

Started byDavid <david.g_jones@ntlworld.com>
First post2016-09-08 19:20 +0200
Last post2016-09-08 21:20 +0200
Articles 10 — 7 participants

Back to article view | Back to linux.debian.user


Contents

  Jessie & Fixed IP Address David <david.g_jones@ntlworld.com> - 2016-09-08 19:20 +0200
    Re: Jessie & Fixed IP Address Greg Wooledge <wooledg@eeg.ccf.org> - 2016-09-08 19:40 +0200
      Re: Jessie & Fixed IP Address Cindy-Sue Causey <butterflybytes@gmail.com> - 2016-09-09 11:30 +0200
        Re: Jessie & Fixed IP Address Tim McDonough <tmcdonough@gmail.com> - 2016-09-09 21:20 +0200
          Re: Jessie & Fixed IP Address <tomas@tuxteam.de> - 2016-09-09 22:50 +0200
    Re: Jessie & Fixed IP Address Tim McDonough <tmcdonough@gmail.com> - 2016-09-08 19:50 +0200
      Re: Jessie & Fixed IP Address David <david.g_jones@ntlworld.com> - 2016-09-09 10:20 +0200
        Re: Jessie & Fixed IP Address Joe <joe@jretrading.com> - 2016-09-09 10:50 +0200
          Re: Jessie & Fixed IP Address_Solved David <david.g_jones@ntlworld.com> - 2016-09-11 15:50 +0200
    Re: Jessie & Fixed IP Address Brian <ad44@cityscape.co.uk> - 2016-09-08 21:20 +0200

#171906 — Jessie & Fixed IP Address

FromDavid <david.g_jones@ntlworld.com>
Date2016-09-08 19:20 +0200
SubjectJessie & Fixed IP Address
Message-ID<sfb9v-bn-1@gated-at.bofh.it>
Hi Everybody,

I am working with a Raspberry PI running Jessie and I'm not happy about
the solutions I found to change it from DHCP to a fixed IP address.

Editing the file /etc/dhcpcd.conf does not seem to work correctly.

Can I go back to the old method of editing /etc/network/interfaces

Or is there a better way of setting a fixed IP on Jessie?

Thank you,

David.

[toc] | [next] | [standalone]


#171907

FromGreg Wooledge <wooledg@eeg.ccf.org>
Date2016-09-08 19:40 +0200
Message-ID<sfbsS-hA-19@gated-at.bofh.it>
In reply to#171906
On Thu, Sep 08, 2016 at 06:08:04PM +0100, David wrote:
> I am working with a Raspberry PI running Jessie and I'm not happy about
> the solutions I found to change it from DHCP to a fixed IP address.
> 
> Can I go back to the old method of editing /etc/network/interfaces

If it's Debian Jessie, then yes, you can edit /etc/network/interfaces.
Change the line that says something like "iface eth0 inet dhcp" to
"iface eth0 inet static", and add indented lines below that for the
address, netmask and gateway.  Then configure your /etc/resolv.conf
file to point to some valid nameservers.

If it's Raspbian Jessie, which is not the same as Debian Jessie, then
all bets are off.

[toc] | [prev] | [next] | [standalone]


#171937

FromCindy-Sue Causey <butterflybytes@gmail.com>
Date2016-09-09 11:30 +0200
Message-ID<sfqid-12l-21@gated-at.bofh.it>
In reply to#171907
On 9/8/16, Greg Wooledge <wooledg@eeg.ccf.org> wrote:
> On Thu, Sep 08, 2016 at 06:08:04PM +0100, David wrote:
>> I am working with a Raspberry PI running Jessie and I'm not happy about
>> the solutions I found to change it from DHCP to a fixed IP address.
>>
>> Can I go back to the old method of editing /etc/network/interfaces
>
> If it's Debian Jessie, then yes, you can edit /etc/network/interfaces.
> Change the line that says something like "iface eth0 inet dhcp" to
> "iface eth0 inet static", and add indented lines below that for the
> address, netmask and gateway.  Then configure your /etc/resolv.conf
> file to point to some valid nameservers.
>
> If it's Raspbian Jessie, which is not the same as Debian Jessie, then
> all bets are off.


This is too cool. The whole deal with my... battling Wi-Fi and
Bluetooth right now just paid off again. Yesterday I learned something
appropriate for this that.. *DISCLAIMER*... may or may not be true.

What I read out on the Net said that, if you have two or more similar
entries in /etc/network/interfaces, you only declare "gateway" _one
time_ or you run into problems.** Rightly or wrongly, I currently
presume that declaration would be made in the first (top) block
(module) of declarations.

Additionally I'm not experienced enough at this to know if there are
instances where that declaration would be a different [number]. If
that situation exists, I could see that being an instance where you
WOULD make two declarations because they don't clash and would be
necessary declarations.

My purpose in jumping in here is to help prevent someone from hitting
unnecessary hair pulling roadblocks in the event anyone goes playing
around with these settings while they're being discussed. And again,
that may or may *not* be true, but it does sound reasonable enough to
share out loud.. :)

You know what, though, I did have two entries in there the other day.
And I found that tip because I was getting the "RTNETLINK answers:
File exists" error that led to that tip (k/t Raspberry Pi @
StackExchange). My firsthand experience is that tip leans towards
being true because I eliminated ALL my homespun entries and am now no
longer receiving *that* particular error message. *grin*

Cindy

-- 
Cindy-Sue Causey
Talking Rock, Pickens County, Georgia, USA

* runs with duct tape *

[toc] | [prev] | [next] | [standalone]


#171957

FromTim McDonough <tmcdonough@gmail.com>
Date2016-09-09 21:20 +0200
Message-ID<sfzvc-6Ve-9@gated-at.bofh.it>
In reply to#171937
On 9/9/2016 4:26 AM, Cindy-Sue Causey wrote:
> You know what, though, I did have two entries in there the other day.
> And I found that tip because I was getting the "RTNETLINK answers:
> File exists" error that led to that tip (k/t Raspberry Pi @
> StackExchange). My firsthand experience is that tip leans towards
> being true because I eliminated ALL my homespun entries and am now no
> longer receiving *that* particular error message. *grin*

You typically (most networks) would have only one gateway specified. 
It's the IP address of the router used by your network to access the 
Internet.

I imagine there are more elaborate schemes with multiple gateways and 
could not offer advice on that, I have no experience.

Tim

[toc] | [prev] | [next] | [standalone]


#171963

From<tomas@tuxteam.de>
Date2016-09-09 22:50 +0200
Message-ID<sfAUh-7Iw-17@gated-at.bofh.it>
In reply to#171957
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Fri, Sep 09, 2016 at 02:10:53PM -0500, Tim McDonough wrote:
> On 9/9/2016 4:26 AM, Cindy-Sue Causey wrote:
> >You know what, though, I did have two entries in there the other day.
> >And I found that tip because I was getting the "RTNETLINK answers:
> >File exists" error that led to that tip (k/t Raspberry Pi @
> >StackExchange). My firsthand experience is that tip leans towards
> >being true because I eliminated ALL my homespun entries and am now no
> >longer receiving *that* particular error message. *grin*
> 
> You typically (most networks) would have only one gateway specified.
> It's the IP address of the router used by your network to access the
> Internet.
> 
> I imagine there are more elaborate schemes with multiple gateways
> and could not offer advice on that, I have no experience.

You can define different gateways depending on target hosts/networks.
The default gateway "takes the rest".

Example:

  ip route add to 192.168.99/24 via 192.168.42.12

sets up host 192.168.42.12 as gateway to the subnet 192.168.99.xxx

regards
- -- t
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iEYEARECAAYFAlfTHrsACgkQBcgs9XrR2kbGbgCaAxwUHaUbxd45A/uRHlY/fjXU
3G8An1A7UWJS/kHfnjblNycPBPBMCTHH
=3Ya9
-----END PGP SIGNATURE-----

[toc] | [prev] | [next] | [standalone]


#171909

FromTim McDonough <tmcdonough@gmail.com>
Date2016-09-08 19:50 +0200
Message-ID<sfbCx-kM-11@gated-at.bofh.it>
In reply to#171906
On 9/8/2016 12:08 PM, David wrote:
> I am working with a Raspberry PI running Jessie and I'm not happy about
> the solutions I found to change it from DHCP to a fixed IP address.
>
> Editing the file /etc/dhcpcd.conf does not seem to work correctly.
>
> Can I go back to the old method of editing /etc/network/interfaces
>
> Or is there a better way of setting a fixed IP on Jessie?

Raspbian Jessie (not Debian Jessie) uses systemd by default. I found the 
following instructions worked well on my R-Pi 3 board:

<http://www.circuitbasics.com/how-to-set-up-a-static-ip-on-the-raspberry-pi/>

I too found it really confusing that many of the files we formerly used 
to configure networking are still present but have no effect. I do not 
know what all is involved in re-configuring to not use this newer method.

Tim

[toc] | [prev] | [next] | [standalone]


#171934

FromDavid <david.g_jones@ntlworld.com>
Date2016-09-09 10:20 +0200
Message-ID<sfpct-qw-15@gated-at.bofh.it>
In reply to#171909
On Thu, 2016-09-08 at 12:42 -0500, Tim McDonough wrote:
> On 9/8/2016 12:08 PM, David wrote:
> > 
> > I am working with a Raspberry PI running Jessie and I'm not happy
> > about
> > the solutions I found to change it from DHCP to a fixed IP address.
> > 
> > Editing the file /etc/dhcpcd.conf does not seem to work correctly.
> > 
> > Can I go back to the old method of editing /etc/network/interfaces
> > 
> > Or is there a better way of setting a fixed IP on Jessie?
> 
> Raspbian Jessie (not Debian Jessie) uses systemd by default. I found
> the 
> following instructions worked well on my R-Pi 3 board:
> 
> <http://www.circuitbasics.com/how-to-set-up-a-static-ip-on-the-raspbe
> rry-pi/>
> 
> I too found it really confusing that many of the files we formerly
> used 
> to configure networking are still present but have no effect. I do
> not 
> know what all is involved in re-configuring to not use this newer
> method.
> 
> Tim
> 
Thank you for the replies.

Firstly an apology, I did not realise there was a Debian Jessie and a
Raspbian Jessie.

I'm working with Raspbian Jessie.

Having seen Tim's email I did some further searching and found some
suggestions which are to remove the daemon dhcpcd and edit the
/etc/network/interfaces file.

David.

[toc] | [prev] | [next] | [standalone]


#171936

FromJoe <joe@jretrading.com>
Date2016-09-09 10:50 +0200
Message-ID<sfpFv-zV-15@gated-at.bofh.it>
In reply to#171934
On Fri, 09 Sep 2016 09:12:14 +0100
David <david.g_jones@ntlworld.com> wrote:


> 
> Firstly an apology, I did not realise there was a Debian Jessie and a
> Raspbian Jessie.
> 
> I'm working with Raspbian Jessie.
> 

Debian is the root of many other distributions such as Knoppix and
Ubuntu, and many less famous.

Raspbian is one that rings bells because it is based on the ARM, which
probably no full-sized computer is these days (the Acorn Archimedes
series used it almost thirty years ago). The range of Debian packages
ported to the ARM RISC architecture is significantly smaller than those
for i386 and amd64, so some things have to be done differently. The
limitations of the system-on-chip which composes almost all of the Pi
hardware imposes further limitations, compared to general-purpose
desktop hardware or even laptop hardware. The relatively small storage
space available again imposes restrictions.

So Raspbian may well be quite different to a stock amd64 Jessie,
utilising many of the tricks of older days of computing to make the
best of limited hardware.

-- 
Joe

[toc] | [prev] | [next] | [standalone]


#172045 — Re: Jessie & Fixed IP Address_Solved

FromDavid <david.g_jones@ntlworld.com>
Date2016-09-11 15:50 +0200
SubjectRe: Jessie & Fixed IP Address_Solved
Message-ID<sgdiW-6Lw-15@gated-at.bofh.it>
In reply to#171936
On Fri, 2016-09-09 at 09:40 +0100, Joe wrote:
> On Fri, 09 Sep 2016 09:12:14 +0100
> David <david.g_jones@ntlworld.com> wrote:
> 
> 
> > 
> > 
> > Firstly an apology, I did not realise there was a Debian Jessie and
> > a
> > Raspbian Jessie.
> > 
> > I'm working with Raspbian Jessie.
> > 
> 
> Debian is the root of many other distributions such as Knoppix and
> Ubuntu, and many less famous.
> 
> Raspbian is one that rings bells because it is based on the ARM,
> which
> probably no full-sized computer is these days (the Acorn Archimedes
> series used it almost thirty years ago). The range of Debian packages
> ported to the ARM RISC architecture is significantly smaller than
> those
> for i386 and amd64, so some things have to be done differently. The
> limitations of the system-on-chip which composes almost all of the Pi
> hardware imposes further limitations, compared to general-purpose
> desktop hardware or even laptop hardware. The relatively small
> storage
> space available again imposes restrictions.
> 
> So Raspbian may well be quite different to a stock amd64 Jessie,
> utilising many of the tricks of older days of computing to make the
> best of limited hardware.
> 
Many thanks to all those that replied.

The problem was that the person who created the SD card for the Pi did
a few odd things, hence some things did not work.

One was reading the DNS server settings when in fixed IP mode,
resolv.conf was empty. Putting the Pi back into DHCP mode caused a
whole multitude of problems.

The thing learnt here is to wipe the SD card clean, I use GPARTED, then
write the image to the SD card, I use Susie Image Writer.

Just to confirm Raspbian Jessie is working correctly with the
instructions given previously to get it into fixed IP mode.

David.

[toc] | [prev] | [next] | [standalone]


#171913

FromBrian <ad44@cityscape.co.uk>
Date2016-09-08 21:20 +0200
Message-ID<sfd1E-1mN-21@gated-at.bofh.it>
In reply to#171906
On Thu 08 Sep 2016 at 18:08:04 +0100, David wrote:

> I am working with a Raspberry PI running Jessie and I'm not happy about
> the solutions I found to change it from DHCP to a fixed IP address.

That's a shame.
 
> Editing the file /etc/dhcpcd.conf does not seem to work correctly.

Nobody in their right mind would be editing /etc/dhcpcd.conf to get a
fixed IP address.

> Can I go back to the old method of editing /etc/network/interfaces

You can go back to whatever works for you.

> Or is there a better way of setting a fixed IP on Jessie?

Better? That's a matter of opinion. A suitable /e/n/i is good enough.
You have advice on this.

But you could use connman if it keeps your Raspberry PI happy. That
might be a step too far, though.

[toc] | [prev] | [standalone]


Back to top | Article view | linux.debian.user


csiph-web