Skip to content

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

Closed
Alogani wants to merge 1 commit intovoid-linux:masterfrom
Alogani:Alogani-patch-config/network/index.md-dhcpcd-1
Closed

config/network/index.md: Misleading dhcpcd setup for specific interfaces#839
Alogani wants to merge 1 commit intovoid-linux:masterfrom
Alogani:Alogani-patch-config/network/index.md-dhcpcd-1

Conversation

@Alogani
Copy link
Copy Markdown

@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
Copy Markdown
Member

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

@Alogani
Copy link
Copy Markdown
Author

Alogani commented Apr 25, 2025

sorry for the inconvenience

@Alogani
Copy link
Copy Markdown
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/

@classabbyamp
Copy link
Copy Markdown
Member

merged #848 instead

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