


It is possible to add a script that will be executed when a prefix or an address is acquired and applied or expires and is removed using DHCP client. Whether to accept the DNS settings advertised by the IPv6 DHCP Server. options - array of received options (only ROSv7).na-address - the address acquired by the client if any.na-valid - if the address is acquired by the client.pd-prefix - the prefix acquired by the client if any.pd-valid - if the prefix is acquired by the client.Run this script on the dhcp-client status change. To choose if the DHCPv6 request will ask for the address or the IPv6 prefix, or both. Prefix length must be greater than the length of received prefix, otherwise prefix-length will be set to received prefix length + 8 bits.

Prefix length parameter that will be set for IPv6 pool in which received IPv6 prefix is added. Name of the IPv6 pool in which received IPv6 prefix will be added Interface on which DHCPv6 client will be running. Whether to add default IPv6 route after client connects. Now you can use this pool, for example, for pppoe clients.Īdd-default-route ( yes | no Default: no) And it should be also added to ipv6 /ipv6 pool> printĠ D test-ipv6 2001:db8:7501:ff04::/62 prefix 64 ipv6 dhcp-client add request=prefix pool-name=test-ipv6 pool-prefix-length=64 interface=ether13ĭetailed print should show status of the client and we can verify if prefix is /ipv6 dhcp-client> print detailįlags: D - dynamic, X - disabled, I - invalidĠ interface=bypass pool-name="test-ipv6" pool-prefix-length=64 status=bound This simple example demonstrates how to enable dhcp client to receive IPv6 prefix and add it to the pool. So it is able to get a prefix from DHCP-PD server as well as DHCPv6 stateful address from DHCPv6 server. DHCP-client in RouterOS is capable of being a DHCPv6-client and DHCP-PD client.
