Path: csiph.com!aioe.org!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Adam Funk Newsgroups: comp.sys.raspberry-pi Subject: Re: Raspbian boots to a DHCP address first, then the fixed IP Date: Thu, 02 Jul 2015 10:32:09 +0100 Organization: $CABAL Lines: 59 Message-ID: References: X-Trace: individual.net y55fs+YSogiGfS2ufdbkDQovJoT04P0q3i7HBb0nGmqoq+LCdY X-Orig-Path: news.ducksburg.com!not-for-mail Cancel-Lock: sha1:nzEus+NkND/W+9S+52V1NtKB7YQ= sha1:hUntTVMUNmV7R6BjnSRq6NdtZ3o= User-Agent: slrn/pre1.0.3-4 (Linux) Xref: aioe.org comp.sys.raspberry-pi:9016 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