mikrotik:ipv6

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
mikrotik:ipv6 [2026-05-29 10:31] – [Set up DHCPv6 client] weichbrmikrotik:ipv6 [2026-06-02 12:57] (current) – [Delegate other /57] weichbr
Line 3: Line 3:
 ===== Goal ===== ===== Goal =====
  
-  * Get /56 from DTAG +  * Get /56 from DTAG (''%%2001:db8:1234:56::/56%%'') 
-  * Use one /57 to carve out /64s for local interfaces +  * Use one /57 to carve out /64s for local interfaces (''%%2001:db8:1234:5680::/57%%'') 
-  * Delegate the other /57 to another router+  * Delegate the other /57 to another router (''%%2001:db8:1234:5600::/57%%'')
  
 ===== Prerequisites ===== ===== Prerequisites =====
  
   * PPPoE configured, interface name ''%%pppoe-dsl%%''   * PPPoE configured, interface name ''%%pppoe-dsl%%''
 +  * Delegation for /57 on ''%%ether1%%''
  
 ===== Set up DHCPv6 client ===== ===== Set up DHCPv6 client =====
  
     /ipv6 dhcp-client add allow-reconfigure=yes default-route-tables=main interface=pppoe-dsl pool-name=telekom-v6-dyn pool-prefix-length=57 prefix-hint=::/56 request=prefix     /ipv6 dhcp-client add allow-reconfigure=yes default-route-tables=main interface=pppoe-dsl pool-name=telekom-v6-dyn pool-prefix-length=57 prefix-hint=::/56 request=prefix
-    /ipv6 pool add from-pool=telekom-v6-dyn name=local prefix=0:0:0:80::/57 prefix-length=64+
  
 Do **NOT** set ''%%add-default-route%%''! It will mess up your RAs and announce also the /56, then deprecate it before announcing the real prefix. Do **NOT** set ''%%add-default-route%%''! It will mess up your RAs and announce also the /56, then deprecate it before announcing the real prefix.
 +
 +===== Set up local /57 pool =====
 +
 +    /ipv6 pool add from-pool=telekom-v6-dyn name=local prefix=0:0:0:80::/57 prefix-length=64
 +
 +===== Delegate other /57 =====
 +
 +    /ipv6 dhcp-server add address-pool=telekom-v6-dyn interface=ether1 lease-time=20m name=router prefix-pool=telekom-v6-dyn
 +
 +
 +===== Assign prefix to interface =====
 +
 +Just assign an address from the pool, this will start RAs for that prefix on that interface
 +
 +    /ipv6 address add address=::49:0:0:0:1 from-pool=local interface=ether1.201
 +
 +This will assign ''%%2001:db8:1234:56c9::1/64%%'' (0x80 + 0x49 = 0xc9) to ''%%ether1.201%%''.
  • mikrotik/ipv6.1780043492.txt.gz
  • Last modified: 2026-05-29 10:31
  • by weichbr