summaryrefslogtreecommitdiff
path: root/docs/services/dhcp.rst
diff options
context:
space:
mode:
authorJernej Jakob <jernej.jakob@gmail.com>2019-12-06 18:20:05 +0100
committerJernej Jakob <jernej.jakob@gmail.com>2019-12-13 08:49:45 +0100
commita6f4597b83db535822061fd73298591d0b7c6f58 (patch)
tree6945acd796c18c8db8e9ab08a500a589cb67bdeb /docs/services/dhcp.rst
parent8f71162fb28cb3d73bb5b0c5003d338972134f5c (diff)
downloadvyos-documentation-a6f4597b83db535822061fd73298591d0b7c6f58.tar.gz
vyos-documentation-a6f4597b83db535822061fd73298591d0b7c6f58.zip
dhcpv6: fix identifier in static mappings description
Diffstat (limited to 'docs/services/dhcp.rst')
-rw-r--r--docs/services/dhcp.rst11
1 files changed, 5 insertions, 6 deletions
diff --git a/docs/services/dhcp.rst b/docs/services/dhcp.rst
index 87ff11ba..e7011387 100644
--- a/docs/services/dhcp.rst
+++ b/docs/services/dhcp.rst
@@ -466,16 +466,16 @@ be created. The following example explains the process.
**Example:**
* IPv6 address ``2001:db8::101`` shall be statically mapped
-* Device MAC address will be ``00:53:c5:b7:5e:23``
* Host specific mapping shall be named ``client1``
-.. hint:: The MAC address identifier is defined by the last 4 byte of the
- MAC address.
+.. hint:: The identifier is the device's DUID: colon-separated hex list (as used by isc-dhcp option dhcpv6.client-id).
+ If the device already has a dynamic lease from the DHCPv6 server, its DUID can be found with ``show service dhcpv6 server leases``.
+ The DUID begins at the 5th octet (after the 4th colon) of IAID_DUID.
.. code-block:: none
set service dhcpv6-server shared-network-name 'NET1' subnet 2001:db8::/64 static-mapping client1 ipv6-address 2001:db8::101
- set service dhcpv6-server shared-network-name 'NET1' subnet 2001:db8::/64 static-mapping client1 identifier c5b75e23
+ set service dhcpv6-server shared-network-name 'NET1' subnet 2001:db8::/64 static-mapping client1 identifier 00:01:00:01:12:34:56:78:aa:bb:cc:dd:ee:ff
The configuration will look as follows:
@@ -492,12 +492,11 @@ The configuration will look as follows:
}
static-mapping client1 {
ipv6-address 2001:db8::101
- identifier c5b75e23
+ identifier 00:01:00:01:12:34:56:78:aa:bb:cc:dd:ee:ff
}
}
}
-
Operation Mode
--------------