Skip to content

Instantly share code, notes, and snippets.

@jcassette
Last active April 4, 2023 22:56
Show Gist options
  • Select an option

  • Save jcassette/5ac0ef8263735fc645b3261975d4ad81 to your computer and use it in GitHub Desktop.

Select an option

Save jcassette/5ac0ef8263735fc645b3261975d4ad81 to your computer and use it in GitHub Desktop.
FreeBSD DHCP+DHCPv6 configuration
#!/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