diff options
author | Ricky Pai <rickyp999+github@gmail.com> | 2022-08-12 10:08:35 -0700 |
---|---|---|
committer | Ricky Pai <rickyp999+github@gmail.com> | 2022-08-12 10:08:35 -0700 |
commit | 1b65bcf2f7aae8d3501528d879f1bd00524553c8 (patch) | |
tree | ca3bbf4f0454a83c4a558aab7c066ca5018d5edd /docs/configuration/service | |
parent | b0544eab8dfbe583686c1fdb98241eaee6d11d8f (diff) | |
download | vyos-documentation-1b65bcf2f7aae8d3501528d879f1bd00524553c8.tar.gz vyos-documentation-1b65bcf2f7aae8d3501528d879f1bd00524553c8.zip |
ipv4 static mapping example
Diffstat (limited to 'docs/configuration/service')
-rw-r--r-- | docs/configuration/service/dhcp-server.rst | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/docs/configuration/service/dhcp-server.rst b/docs/configuration/service/dhcp-server.rst index 75f8b8f0..45fe63fb 100644 --- a/docs/configuration/service/dhcp-server.rst +++ b/docs/configuration/service/dhcp-server.rst @@ -225,6 +225,27 @@ inside the subnet definition but can be outside of the range statement. .. hint:: This is the equivalent of the host block in dhcpd.conf of isc-dhcpd. +**Example:** + +* IP address ``192.168.1.100`` shall be statically mapped to client named ``client100`` + +.. code-block:: none + + set service dhcp-server shared-network-name 'NET1' subnet 192.168.1.0/24 static-mapping client1 ip-address 192.168.1.100 + set service dhcp-server shared-network-name 'NET1' subnet 192.168.1.0/24 static-mapping client1 mac-address aa:bb:11:22:33:00 + +The configuration will look as follows: + +.. code-block:: none + + show service dhcp-server shared-network-name NET1 + subnet 192.168.1.0/24 { + static-mapping client1 { + ip-address 192.168.1.100 + mac-address aa:bb:11:22:33:00 + } + } + Options ======= |