Static IP configured, but DHCP still getting used - Raspberry Pi Forums
on fresh install of latest version of raspbian (2015-05-05), i'm trying configure network interface (wired) static ip. reason, in addition static ip i've configured, when raspberry pi boots it's still requesting , using dynamic ip address well.
i've edited /etc/network/interfaces file contains this:
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 192.168.1.4
netmask 255.255.255.0
gateway 192.168.1.1
when reboot, see these messages:
[....] configuring network interfaces...done.
init: entering runlevel: 2
[info] using makefile-style concurrent boot in runlevel 2.
[info] initializing cgroups.
dhcpcd[1915]: version 6.7.1 starting
dhcpcd[1915]: all: ipv6 kernel autoconf disabled
dhcpcd[1915]: eth0: adding address fe80::12e5:378a:f785:494f
dhcpcd[1915]: if_addaddress6: operation not supported
dhcpcd[1915]: duid 00:01:00:01:1c:dd:6b:61:80:1f:02:9b:bb:90
dhcpcd[1915]: eth0: iaid eb:7c:ee:6c
dhcpcd[1915]: eth0: rebinding lease of 192.168.1.35
[....] network interface plugging daemon...skip eth0...done.
[....] starting enhanced syslogd: rsyslogd.
[....] starting periodic command scheduler: cron.
[....] starting system message bus: dbus.
[....] starting avahi mdns/dns-sd daemon: avahi-daemon.
[....] starting ntp server: ntpd.
[....] starting openbsd secure shell server: sshd.
dhcpcd[1915]: eth0: leased 192.168.1.35 86400 seconds
dhcpcd[1915]: eth0: adding route 192.168.1.0/24
dhcpcd[1915]: eth0: adding default route via 192.168.1.1
dhcpcd[1915]: forked background, child pid 2247
my ip address 192.168.1.4 192.168.1.35
know why it's still requesting ip address dhcp?
i've edited /etc/network/interfaces file contains this:
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 192.168.1.4
netmask 255.255.255.0
gateway 192.168.1.1
when reboot, see these messages:
[....] configuring network interfaces...done.
init: entering runlevel: 2
[info] using makefile-style concurrent boot in runlevel 2.
[info] initializing cgroups.
dhcpcd[1915]: version 6.7.1 starting
dhcpcd[1915]: all: ipv6 kernel autoconf disabled
dhcpcd[1915]: eth0: adding address fe80::12e5:378a:f785:494f
dhcpcd[1915]: if_addaddress6: operation not supported
dhcpcd[1915]: duid 00:01:00:01:1c:dd:6b:61:80:1f:02:9b:bb:90
dhcpcd[1915]: eth0: iaid eb:7c:ee:6c
dhcpcd[1915]: eth0: rebinding lease of 192.168.1.35
[....] network interface plugging daemon...skip eth0...done.
[....] starting enhanced syslogd: rsyslogd.
[....] starting periodic command scheduler: cron.
[....] starting system message bus: dbus.
[....] starting avahi mdns/dns-sd daemon: avahi-daemon.
[....] starting ntp server: ntpd.
[....] starting openbsd secure shell server: sshd.
dhcpcd[1915]: eth0: leased 192.168.1.35 86400 seconds
dhcpcd[1915]: eth0: adding route 192.168.1.0/24
dhcpcd[1915]: eth0: adding default route via 192.168.1.1
dhcpcd[1915]: forked background, child pid 2247
my ip address 192.168.1.4 192.168.1.35
know why it's still requesting ip address dhcp?
/etc/network/interfaces file not used latest raspbian using `dhcpcd`
if search site find lots of discussion attempts use static address dhcpcd
misguided/half-baked attempt make easier setup wifi via gui.dougielawson wrote:
raspberrypi-net-mods package badly broken.
if search site find lots of discussion attempts use static address dhcpcd
raspberrypi
Comments
Post a Comment