Manual:IPv6 PD over PPP
Applies to RouterOS: v5.9
Summary
This example demonstrates how to set up PPPoE server and client to use IPv6 Prefix Delegation.
Starting from v5.9 IPv6 Prefixes can be delegated over ppp interfaces. When client connects, ppp will automatically add dynamic DHCPv6-PD server. This allows to run dhcpv6 client on ppp interfaces.
Configuration
Server
There is a new parameter in ppp profile called dhcpv6-pd-pool used to enable PPP-PD. PPP will use specified IPv6 pool to create dynamic DHCP server.
So first step is to add IPv6 pool:
/ipv6 pool add name=myPool prefix=2001:db8:7501:ff00::/60 prefix-length=62
Now we can configure ppp profile and add pppoe server
/ppp profile set default dhcpv6-pd-pool=myPool /interface pppoe-server server add service-name=test interface=ether1
Client
On client side we need to set up pppoe-client interface and run dhcp client on it.
/interface pppoe-client add name=client-test interface=ether1 user=a1 service-name=test /ipv6 dhcp-client add interface=client-test pool-name=ppp-test pool-prefix-length=64
Testing status
On server side check if dynamic DHCP server is added and prefix is bound to specific client:
[admin@RB1100] /ipv6 dhcp-server> print Flags: D - dynamic, X - disabled, I - invalid # NAME INTERFACE ADDRESS-POOL LEASE-TIME 0 D <pppoe-a1> <pppoe-a1> myPool 3d [admin@RB1100] /ipv6 dhcp-server binding> print Flags: X - disabled, D - dynamic # ADDRESS DU IAID SER.. STATUS 1 D 2001:db8:7501:ff04::/62 247 <pp.. bound
On client side check if dhcp client is bound and pool is added
[admin@x86-test] /ipv6 dhcp-client> print Flags: D - dynamic, X - disabled, I - invalid # INTERFACE STATUS PREFIX EXPIRES-AFTER 0 client-test bound 2001:db8:7501:ff04::/62 2d23h18m17s [admin@x86-test] /ipv6 pool> print Flags: D - dynamic # NAME PREFIX PREFIX-LENGTH 0 D ppp-test 2001:db8:7501:ff04::/62 64
[ Top | Back to Content ]