Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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