Manual:IPv6/DHCP Client: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 147: | Line 147: | ||
|desc=Renew current leases. If the renew operation was not successful, client tries to reinitialize lease (i.e. it starts lease request procedure (rebind) as if it had not received an IP address yet) | |desc=Renew current leases. If the renew operation was not successful, client tries to reinitialize lease (i.e. it starts lease request procedure (rebind) as if it had not received an IP address yet) | ||
}} | }} | ||
==Application Examples== | |||
===Use received prefix for local RA=== | |||
Consider following setup: | |||
[[File:DHCP-PD-local-RA.png]] | |||
* DHCP client on router R2 receives delegated /64 prefix from the DHCP server (R1). | |||
* Router R2 uses received prefix to set up RA on the local interface | |||
Revision as of 10:37, 1 June 2012
Applies to RouterOS: v5.9 +
Summary
Currently DHCPv6 client can receive only delegated prefix from DHCPv6-PD server.
Quick setup example
This simple example demonstrates how to enable dhcp client to receive IPv6 prefix and add it to the pool.
/ipv6 dhcp-client add pool-name=test-ipv6 pool-prefix-length=64 interface=ether13
Detailed print should show status of the client and we can verify if prefix is received
[admin@x86-test] /ipv6 dhcp-client> print detail Flags: D - dynamic, X - disabled, I - invalid 0 interface=bypass pool-name="test-ipv6" pool-prefix-length=64 status=bound prefix=2001:db8:7501:ff04::/62 expires-after=2d23h11m53s
Notice that server gave us prefix 2a02:610:7501:ff04::/62 . And it should be also added to ipv6 pools
[admin@MikroTik] /ipv6 pool> print Flags: D - dynamic # NAME PREFIX PREFIX-LENGTH 0 D test-ipv6 2001:db8:7501:ff04::/62 64
It works! Now you can use this pool, for example, for pppoe clients.
Properties
Sub-menu: /ipv6 dhcp-client
Property | Description |
---|---|
comment (string; Default: ) | Short description of the client |
disabled (yes | no; Default: no) | |
interface (string; Default: ) | Interface on which DHCPv6 client will be running. |
pool-name (string; Default: ) | Name of the IPv6 pool in which received IPv6 prefix will be added |
pool-prefix-length (string; Default: ) | Prefix length parameter that will be set for IPv6 pool in which received IPv6 prefix is added. Prefix length must be greater than the length of received prefix, otherwise prefix-length will be set to received prefix length + 8 bits. |
Status
Command /ipv6 dhcp-client print detail
will show current status of dhcp client and read-only properties listed in table below:
Property | Description |
---|---|
dynamic (yes | no) | |
expires-after (time) | Time when the IPv6 prefix expires (specified by the DHCPv6 server). |
invalid (yes | no) | Shows whether configuration is invalid. |
prefix (IPv6 prefix) | Shows received IPv6 prefix from DHCPv6-PD server |
status (stopped | searching | requesting... | bound | renewing | rebinding | error | stopping) | Shows the status of DHCPv6 Client:
|
Menu specific commands
Property | Description |
---|---|
release (numbers) | Release current binding and restart DHCPv6 client |
renew (numbers) | Renew current leases. If the renew operation was not successful, client tries to reinitialize lease (i.e. it starts lease request procedure (rebind) as if it had not received an IP address yet) |
Application Examples
Use received prefix for local RA
Consider following setup:
- DHCP client on router R2 receives delegated /64 prefix from the DHCP server (R1).
- Router R2 uses received prefix to set up RA on the local interface
[ Top | Back to Content ]