Skip to content

Instantly share code, notes, and snippets.

@krogla
Forked from ebababi/ipv6-pppoe.rsc
Created April 4, 2024 20:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save krogla/06c2bc9fae5fe872c805fb8861e3cbae to your computer and use it in GitHub Desktop.
Save krogla/06c2bc9fae5fe872c805fb8861e3cbae 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