Script for dynamically generating isc-dhcp-server6 sub-prefix delegation based on an upstream delegation
A tool for generating dhcpd6 IPv6 prefix sub-delegation configs for the ISC DHCP server.
Tested on CentOS 7.3.1611.
Install:
yum install dhcp python-netaddr python-jinja2
- copy script to server
chmod 755 /path/to/dhcp6-prefix-config.py
systemctl enable dhcpd6
- set up cron job to run as root on some periodic basis (in case upstream ISP delegation changes and a new config needs to be generated)
Startup script for DD-WRT routers that enables ripngd to aid in routing IPv6 subnets (such as those that have been delegated from an ISP) to other routers on your local network.
Tested on DD-WRT v3.0-r32170 big (06/01/17) firmware.
Install:
- enable JJFS filesystem
- place script in
/jffs/etc/config/ripng_dd-wrt.startup
chmod 755 /jffs/etc/config/ripng_dd-wrt.startup
- run script by hand OR reboot router to start
ripngd