Go to advanced search

by repriilis
Sun Feb 28, 2016 5:15 pm
Forum: General discussion
Topic: DHCP server with unplugged eth0
Replies: 8
Views: 2185

Re: DHCP server with unplugged eth0

Of course in this case dhcp server is not running all the time but is only started after interface comes up.
the biggest struggling from my side was to find the right place for startup command ;)
by repriilis
Sun Feb 28, 2016 4:55 pm
Forum: General discussion
Topic: DHCP server with unplugged eth0
Replies: 8
Views: 2185

Re: DHCP server with unplugged eth0

iface eth0 inet static
address ...
netmask ...
gateway ...
up run_my_upscript
down run_my_downscript
this is good idea to make stuff understandable later :)
I will test this approach some when
by repriilis
Thu Feb 25, 2016 9:55 pm
Forum: General discussion
Topic: DHCP server with unplugged eth0
Replies: 8
Views: 2185

Re: DHCP server with unplugged eth0

Hmm, there is no directory /lib/dhcpcd/dhcpcd-hooks in my pi :/ I created it and placed sample file there (giving it +x ) but nothing happened .. Aren't you using dhcp for client not server in your example ? Looks I found the place. I added to file /etc/ifplugd/ifplugd.action under case up : case "$...
by repriilis
Wed Feb 24, 2016 6:56 pm
Forum: General discussion
Topic: DHCP server with unplugged eth0
Replies: 8
Views: 2185

Re: DHCP server with unplugged eth0

actually I placed additional script to /etc/network/if-up.d :
#! /bin/sh
logger abc
and chmod +x , but it does not execute when I plug the cable :/
by repriilis
Tue Feb 23, 2016 10:19 am
Forum: General discussion
Topic: DHCP server with unplugged eth0
Replies: 8
Views: 2185

DHCP server with unplugged eth0

Hi! Pi is controlling some stuff, normally it is not connected to any network. Time to time there is need to do some maintenance or take log files, so a laptop is connected by straight patch cord to eth0 of pi. I've installed ISC DHCP server in order to have "plug and play" - DHCP server from Pi giv...

Go to advanced search