Skip to content

Instantly share code, notes, and snippets.

@ebababi
Created March 28, 2020 19:52
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save ebababi/7b7991775cdfc27c667fc7c222ce3991 to your computer and use it in GitHub Desktop.
Save ebababi/7b7991775cdfc27c667fc7c222ce3991 to your computer and use it in GitHub Desktop.
MikroTik RouterOS Script: Configure DHCPv6-PD on the PPPoE interface.
# Configure DHCPv6-PD on the PPPoE interface.
#
# Prior script execution, enable IPv6 package:
# /system
# package enable ipv6
# reboot
#
# Resources:
# https://kb.pentanet.com.au/faq/how-to-configure-a-mikrotik-routerboard-router-to-accept-ipv6
# https://www.netdaily.org/tag/mikrotik-ipv6/
/ipv6 dhcp-client
add interface=pppoe-out1 pool-name=pppoe-pd \
pool-prefix-length=56 request=prefix
/ipv6 dhcp-server
add interface=bridge address-pool=pppoe-pd name=server-pd
/ipv6 address
add interface=bridge from-pool=pppoe-pd advertise=yes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment