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


Groups > comp.sys.raspberry-pi > #9016

Re: Raspbian boots to a DHCP address first, then the fixed IP

From Adam Funk <a24061@ducksburg.com>
Newsgroups comp.sys.raspberry-pi
Subject Re: Raspbian boots to a DHCP address first, then the fixed IP
Date 2015-07-02 10:32 +0100
Organization $CABAL
Message-ID <p1df6cxphp.ln2@news.ducksburg.com> (permalink)
References <h02d6cxhq.ln2@news.ducksburg.com> <vcUkx.5092$F62.4080@fx05.am4> <c30e6cx3hc.ln2@news.ducksburg.com> <mn1ojg$43b$1@dont-email.me>

Show all headers | View raw


On 2015-07-01, Martin Gregorie wrote:

> On Wed, 01 Jul 2015 21:45:00 +0100, Adam Funk wrote:
>
>> On 2015-07-01, Dom wrote:
>> 
>>> On 01/07/15 13:11, Adam Funk wrote:
>>>> I have a Pi using only the /boot partition on the SD card, with
>>>> /boot/cmdline.txt set to mount / from a partition on the external USB
>>>> drive, & I edited /etc/network/interfaces to use a fixed IP address on
>>>> the LAN.  But I've noticed that when I reboot it, it comes up with a
>>>> DHCP address first, then changes to the fixed IP.  What have I done
>>>> wrong, & how do I fix it?
>>>>
>>>> Thanks.
>>>>
>>> Remove or disable the dhcpdc package. It's a recent addition to the
>>> Rasbian images and tends to ignore the interfaces file and do its own
>>> thing.
>>>
>>> It's fine for the average user who uses the desktop and sets up
>>> networking via the GUI, but just gets in the way when you want to do
>>> things yourself.
>> 
>> Thanks.  Is removing it likely to break anything?
>>
> I don't think you need to do that. 
> My copy of the file /etc/network/interfaces looks like this:
>
> auto lo
>
> iface lo inet loopback
> iface eth0 inet static
> address 192.168.7.101
> netmask 255.255.255.0
> gateway 192.168.7.1

Aha, I think the problem might be that I left too much in when editing
the file; I have these lines:

auto lo
iface lo inet loopback

auto eth0
allow-hotplug eth0
iface eth0 inet static
address ....
....

as well as some auto wlan0, allow-hotplug wlan0 stuff, & same again
for wlan1, which I should delete.  I guess those come in the default
configuration for people using the USB wifi dongles instead of a
cable.


-- 
Most Americans are too civilized to hang skulls from baskets, having
been headhunters, of course, only as recently as Vietnam.
                                                  --- Kinky Friedman

Back to comp.sys.raspberry-pi | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Re: Raspbian boots to a DHCP address first, then the fixed IP Adam Funk <a24061@ducksburg.com> - 2015-07-01 21:45 +0100
  Re: Raspbian boots to a DHCP address first, then the fixed IP Rob <nomail@example.com> - 2015-07-01 21:06 +0000
    Re: Raspbian boots to a DHCP address first, then the fixed IP Adam Funk <a24061@ducksburg.com> - 2015-07-02 10:16 +0100
      Re: Raspbian boots to a DHCP address first, then the fixed IP Rob <nomail@example.com> - 2015-07-02 12:12 +0000
  Re: Raspbian boots to a DHCP address first, then the fixed IP Martin Gregorie <martin@address-in-sig.invalid> - 2015-07-01 22:12 +0000
    Re: Raspbian boots to a DHCP address first, then the fixed IP Adam Funk <a24061@ducksburg.com> - 2015-07-02 10:32 +0100
      Re: Raspbian boots to a DHCP address first, then the fixed IP The Natural Philosopher <tnp@invalid.invalid> - 2015-07-02 10:53 +0100
  Re: Raspbian boots to a DHCP address first, then the fixed IP Adam Funk <a24061@ducksburg.com> - 2015-07-02 19:40 +0100
    Re: Raspbian boots to a DHCP address first, then the fixed IP Rob <nomail@example.com> - 2015-07-02 19:30 +0000
      Re: Raspbian boots to a DHCP address first, then the fixed IP Adam Funk <a24061@ducksburg.com> - 2015-07-02 20:56 +0100
        Re: Raspbian boots to a DHCP address first, then the fixed IP Dom <domafp@blueyonder.co.uk> - 2015-07-03 06:16 +0100

csiph-web