summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-04-05 16:25:36 +0200
committerGitHub <noreply@github.com>2021-04-05 16:25:36 +0200
commit38f788913f20cf0022fe48fabd11a8667cf0cb18 (patch)
tree4c69d1234b9b4a3513e7fe958810fb820125ed23
parent4a26755f132646e4fc66afa94fd98f54fc7cad14 (diff)
parent4b37accdbbdd62278c6abe604df9af6f35eaf3a2 (diff)
downloadvyos-documentation-38f788913f20cf0022fe48fabd11a8667cf0cb18.tar.gz
vyos-documentation-38f788913f20cf0022fe48fabd11a8667cf0cb18.zip
Merge pull request #500 from scj643/master
interfaces: dhcp-client: T3454: add reject option
-rw-r--r--docs/_include/interface-dhcp-options.txt15
1 files changed, 15 insertions, 0 deletions
diff --git a/docs/_include/interface-dhcp-options.txt b/docs/_include/interface-dhcp-options.txt
index 2030ae3d..27a80acd 100644
--- a/docs/_include/interface-dhcp-options.txt
+++ b/docs/_include/interface-dhcp-options.txt
@@ -59,3 +59,18 @@
.. code-block:: none
set interfaces {{ var0 }} {{ var1 }} {{ var2 }} {{ var4 }} {{ var5 }} {{ var7 }} dhcp-options default-route-distance 220
+
+.. cfgcmd:: set interfaces {{ var0 }} <interface> {{ var2 }} {{ var3 }}
+ {{ var5 }} {{ var6 }} dhcp-options reject <address>
+
+ Reject DHCP leases from a given address or range.
+ This is useful when a modem gives a local IP when first starting.
+
+ * **address** can be specified multiple times,
+ e.g. 192.168.100.1 and/or 192.168.100.0/24
+
+ Example:
+
+ .. code-block:: none
+
+ set interfaces {{ var0 }} {{ var1 }} {{ var2 }} {{ var4 }} {{ var5 }} {{ var7 }} dhcp-options reject 192.168.100.0/24