Last active
April 4, 2023 22:56
-
-
Save jcassette/5ac0ef8263735fc645b3261975d4ad81 to your computer and use it in GitHub Desktop.
FreeBSD DHCP+DHCPv6 configuration
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| # FreeBSD DHCP+DHCPv6 configuration | |
| pkg install -y dhcpcd | |
| cat >> /etc/rc.conf << EOF | |
| ipv6_activate_all_interfaces="YES" | |
| ifconfig_epair0b="SYNCDHCP" | |
| EOF | |
| mkdir /usr/local/etc/rc.conf.d | |
| cat >> /usr/local/etc/rc.conf.d/dhcpcd << EOF | |
| rtsold_enable="YES" | |
| dhcpcd_enable="YES" | |
| dhclient_program="dhcpcd" | |
| EOF |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment