stop dhcpcd client in slackware

If we use dhcp (dynamic host configuration protocol) in our slackware then the machine automatically getting the ip from the server and use it.
The program that run this function is dhcpcd.
But sometime when we decide to use static ip and configure it in /etc/rc.d/rc.inet1.conf
the static setting won’t work. It is because the dhcpcd still running in memory.

So we need to shut it down. here’s how.
root@user:#/sbin/dhcpcd -x eth0

Now try to restart rc.inet1.conf again
root@user:#/etc/rc.d/rc.inet1 restart

The machine should use the static ip now.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.