void-docs icon indicating copy to clipboard operation
void-docs copied to clipboard

config/network/index.md: Misleading dhcpcd setup for specific interfaces

Open Alogani opened this issue 8 months ago • 3 comments

Hello,

Completing the documentation to avoid confusion on setting voidlinux dhcpcd when multiple interfaces are present.

Thanks!

PS: I have read CONTRIBUTING

Alogani avatar Apr 25 '25 16:04 Alogani

don't close/open new prs, just force push

classabbyamp avatar Apr 25 '25 16:04 classabbyamp

sorry for the inconvenience

Alogani avatar Apr 25 '25 17:04 Alogani

For reference, how to setup two interfaces (not worth including in docs) :

# avoid conflicts
rm /var/service/dhclient-eth0

# for better dns resolution
printf "\nhostname\n" >> /etc/dhcpcd.conf

# # dhcpcd-eth0
ln -s /etc/sv/dhcpcd-eth0 /var/service/

# # dhcpcd-eth1
cp -R /etc/sv/dhcpcd-eth0 /etc/sv/dhcpcd-eth1
sed -i 's/eth0/eth1/' /etc/sv/dhcpcd-eth1/run
sed -i 's/eth0/eth1/' /etc/sv/dhcpcd-eth1/log/run
mkdir /run/runit/supervise.dhcpcd-eth1
ln -s /run/runit/supervise.dhcpcd-eth1 /etc/sv/dhcpcd-eth1/supervise
mkdir /run/runit/supervise.dhcpcd-eth1-log
ln -s /etc/sv/dhcpcd-eth1/log/supervise /run/runit/supervise.dhcpcd-eth1-log
ln -s /etc/sv/dhcpcd-eth1 /var/service/

Alogani avatar Apr 25 '25 17:04 Alogani