DHCP Server on eth0 - Raspberry Pi Forums


hi,
setting pi dhcp server. have been able work upon reboot dchp server fails start. seems issue eth0 interface not starting correctly or having static ip set. have eth0 set 192.168.10.2 dhcp server handing out .10 .20. upon reboot able service start running below commands.

sudo ifup eth0
sudo ifdown eth0
sudo ifup eth0
sudo service isc-dhcp-server start

once commands run dhcp server works correctly. suspect issue eth0 not getting static information upon reboot. below ifconfig reads upon reboot out doing anything.

eth0 link encap:ethernet hwaddr b8:27:eb:47:ba:42
inet addr:169.254.178.166 bcast:169.254.255.255 mask:255.255.0.0
inet6 addr: fe80::2bc0:3945:c837::7cf1/64 scope:link
broadcast running multicast mtu:1500 metric:1
rx packets:358 errors:0 dropped:0 overruns:0 frame:0
tx packets:33 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
rx bytes:27262 (26.6 kib) tx bytes:7566 (7.3 kib)

looks tries dhcp address dhcp server on network.

in advance.
phil

so sounds 'race' (or sequencing) problem during startup?

specific advice depend on operating system running on rpi.

, if raspbian, knowing whether jessie (current) or wheezy (previous), may important too.


raspberrypi



Comments

Popular posts from this blog

invalid use of void expresion in FlexiTimer2 library

error: a function-definition is not allowed here before '{' token

LED Strip Code