Skip to content

Conversation

Alogani
Copy link

@Alogani Alogani commented Apr 25, 2025

Hello,

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

Thanks!

PS: I have read CONTRIBUTING

Completing the documentation to avoid confusion on setting voidlinux dhcpcd when multiple interfaces are present.
@classabbyamp
Copy link
Member

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

@Alogani
Copy link
Author

Alogani commented Apr 25, 2025

sorry for the inconvenience

@Alogani
Copy link
Author

Alogani commented Apr 25, 2025

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/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants