The following command works perfectly to start DHCP:
# dhcpcd -p eth0 DHCP cannot be stopped once it is started. The following command does not work:
# dhcpcd -k eth0 It returns the following:
dhcpcd[4700]: sending signal 1 to pid 4086 dhcpcd[4700]: dhcpcd not running dhcpcd[4700]: kill: Bad file number Could anyone offer a tip on how to kill DHCP?
var=$(ps | grep dhcp). Then, in a new line, dokill $(echo -n $var | cut -d " " -f 0), and it should kill the process altogether.su -c 'killall dhcpcd'work?