Manual:IPv6/DHCP Server: Difference between revisions

From MikroTik Wiki
Jump to navigation Jump to search
No edit summary
Line 22: Line 22:
{{Mr-arg-table
{{Mr-arg-table
|arg=authoritative
|arg=authoritative
|type=
|type=after-10sec-delay {{!}} after-2sec-delay {{!}} yes {{!}} no
|default=
|default=after-2sec-delay
|desc=
|desc=Whether the DHCP server is the only one DHCP server for the network:
* <var>after-10sec-delay</var> - to clients request for an address, dhcp server will wait 10 seconds and if there is another request from the client after this period of time, then dhcp server will offer the address to the client or will send DHCPNAK, if the requested address is not available from this server
* <var>after-2sec-delay</var> - to clients request for an address, dhcp server will wait 2 seconds and if there is another request from the client after this period of time, then dhcp server will offer the address to the client or will send DHCPNAK, if the requested address is not available from this server
* <var>yes</var> - to clients request for an address that is not available from this server, dhcp server will send negative acknowledgment (DHCPNAK)
* <var>no</var> - dhcp server ignores clients requests for addresses that are not available from this server
}}
}}


Line 30: Line 34:
{{Mr-arg-table
{{Mr-arg-table
|arg=delay-threshold
|arg=delay-threshold
|type=
|type=time {{!}} none
|default=
|default=none
|desc=
|desc=If secs field in DHCP packet is smaller than delay-threshold, then this packet is ignored. If set to <b>none</b> - there is no threshold (all DHCP packets are processed)
}}
}}


Line 38: Line 42:
{{Mr-arg-table
{{Mr-arg-table
|arg=disabled
|arg=disabled
|type=
|type=yes {{!}} no
|default=
|default=no
|desc=
|desc=Whether DHCPv6 server participate in prefix assignment process.
}}
}}


Line 46: Line 50:
{{Mr-arg-table
{{Mr-arg-table
|arg=lease-time
|arg=lease-time
|type=
|type=time
|default=
|default=3d
|desc=
|desc=The time that a client may use the assigned address. The client will try to renew this address after a half of this time and will request a new address after time limit expires.
}}
}}


Line 54: Line 58:
{{Mr-arg-table
{{Mr-arg-table
|arg=address-pool
|arg=address-pool
|type=
|type=string {{!}} static-only
|default=
|default=static-only
|desc=
|desc=[[M:IPv6/Pool | IPv6 pool]], from which to take IPv6 prefix for the clients. If set to <b>static-only</b>, then only the clients that have a static binding (added in [[#Bindings | bindings]] submenu) will be allowed.
}}
}}




{{Mr-arg-table
{{Mr-arg-table
|arg=interface
|arg=interface
|type=
|type=string
|default=
|default=
|desc=
|desc=Interface on which server will be running.
}}
}}


Line 70: Line 75:
{{Mr-arg-table-end
{{Mr-arg-table-end
|arg=name
|arg=name
|type=
|type=string
|default=
|default=
|desc=
|desc=Reference name
}}
}}


Line 94: Line 99:
|desc=
|desc=
}}
}}


==Bindings==
==Bindings==

Revision as of 13:57, 23 November 2011

Applies to RouterOS: v3, v4, v5+


Summary

Standards: RFC 3315, RFC 3633
Package: dhcp,ipv6

General

Sub-menu: /ipv6 dhcp-server


Properties

Property Description
authoritative (after-10sec-delay | after-2sec-delay | yes | no; Default: after-2sec-delay) Whether the DHCP server is the only one DHCP server for the network:
  • after-10sec-delay - to clients request for an address, dhcp server will wait 10 seconds and if there is another request from the client after this period of time, then dhcp server will offer the address to the client or will send DHCPNAK, if the requested address is not available from this server
  • after-2sec-delay - to clients request for an address, dhcp server will wait 2 seconds and if there is another request from the client after this period of time, then dhcp server will offer the address to the client or will send DHCPNAK, if the requested address is not available from this server
  • yes - to clients request for an address that is not available from this server, dhcp server will send negative acknowledgment (DHCPNAK)
  • no - dhcp server ignores clients requests for addresses that are not available from this server
delay-threshold (time | none; Default: none) If secs field in DHCP packet is smaller than delay-threshold, then this packet is ignored. If set to none - there is no threshold (all DHCP packets are processed)
disabled (yes | no; Default: no) Whether DHCPv6 server participate in prefix assignment process.
lease-time (time; Default: 3d) The time that a client may use the assigned address. The client will try to renew this address after a half of this time and will request a new address after time limit expires.
address-pool (string | static-only; Default: static-only) IPv6 pool, from which to take IPv6 prefix for the clients. If set to static-only, then only the clients that have a static binding (added in bindings submenu) will be allowed.
interface (string; Default: ) Interface on which server will be running.
name (string; Default: ) Reference name


Read-only Properties

Property Description
dynamic (yes | no)
invalid (yes | no)

Bindings

Sub-menu: /ipv6 dhcp-server binding


DUID is used only for dynamic bindings, so if it changes then client will receive different prefix than previously.


Property Description
address (IPv6 prefix; Default: ) IPv6 prefix that will be assigned to the client
comment (string; Default: ) Short description of an item.
disabled (yes | no; Default: no) Whether item is disabled
life-time (time; Default: 3d) Time period after which binding expires/
duid (string; Default: )
iaid (integer [0..4294967295]; Default: )
server (string | all; Default: all) Name of the server. If set to all, then binding applies to all created DHCPv6 servers.


Read-only properties

Property Description
dynamic (yes | no) Whether item is dynamically created.
expires-after (time) Time period after which binding expires.
last-seen (time) Time period since client was last seen.
status (waiting | offered | bound) Three status vales are possible:
  • waiting - Shown for static bindings if it is not used. For dynamic bindings this status is shown if it was used previously, server will wait 10 minutes to allow old client to get this binding, otherwise binding will be cleared and prefix willbe offered to other clients.
  • offered - if solicit message was received, and server responded with advertise message, but request was not received. During this state client have 2 minutes to get this binding, otherwise it is freed or changed status to waiting for static bindings.
  • bound - currently bound.


For example, dynamically assigned /62 prefix

[admin@RB493G] /ipv6 dhcp-server binding> print detail 
Flags: X - disabled, D - dynamic 
 0 D address=2a02:610:7501:ff00::/62 duid="1605fcb400241d1781f7" iaid=0 
     server=local-dhcp life-time=3d status=bound expires-after=2d23h40m10s 
     last-seen=19m50s 

 1 D address=2a02:610:7501:ff04::/62 duid="0019d1393535" iaid=2 
     server=local-dhcp life-time=3d status=bound expires-after=2d23h43m47s 
     last-seen=16m13s 


Menu specific commands

Property Description
make-static () Set dynamic binding as static.


[ Top | Back to Content ]