You're right in that the solution lies in /etc/rc.d
However, you don't have to fiddle around with dhcpcd directly. dhcpcd will be called from /etc/rc.d/rc.inet1, which is configured in /etc/rc.d/rc.inet1.conf.
You can configure your IP address settings directly in etc/rc.d/rc.inet1.conf. If you do this, you have to change the appropriate instance of
USE_DHCP[n]="" to
USE_DHCP[n]="yes", where
n is the number corresponding to the NIC which connects to the DHCP server. Meaning, if the output of
ifconfig says something like
Code:
eth0 Link encap:Ethernet HWaddr XX:XX:XX:XX:XX:XX
inet addr:XXX.XXX.XXX.XXX Bcast:XXX.XXX.XXX.XXX Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:335384 errors:0 dropped:0 overruns:0 frame:0
TX packets:263564 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:393359444 (375.1 Mb) TX bytes:26390656 (25.1 Mb)
Interrupt:18 Base address:0xe800
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:16788 errors:0 dropped:0 overruns:0 frame:0
TX packets:16788 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:21083024 (20.1 Mb) TX bytes:21083024 (20.1 Mb)
then you can see that
n is 0 ("eth
0").
However, I must say that I find it easier to use the command
netconfig, which lets you set your IP address(es) up really easily. I'm sure you remember this from when you installed Slack.
HTH