summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2019-01-18 12:02:11 +0100
committerGitHub <noreply@github.com>2019-01-18 12:02:11 +0100
commita981af6640c97418ab4c1c9fa599cd9b94d64669 (patch)
treee6329c4f089b2c8f9d0fe61c18bd9e75246a963b
parentdcaf982da32791492e797efd64c1cc251bfc31eb (diff)
parent169c5ae113189cf848aaeb7e273de478e3e35bb1 (diff)
downloadvyos-documentation-a981af6640c97418ab4c1c9fa599cd9b94d64669.tar.gz
vyos-documentation-a981af6640c97418ab4c1c9fa599cd9b94d64669.zip
Merge pull request #5 from kmpm/feature/dhcp-range
dhcp ranges
-rw-r--r--docs/quick-start.rst3
-rw-r--r--docs/services.rst11
2 files changed, 11 insertions, 3 deletions
diff --git a/docs/quick-start.rst b/docs/quick-start.rst
index b4905f2a..34dd5115 100644
--- a/docs/quick-start.rst
+++ b/docs/quick-start.rst
@@ -45,7 +45,8 @@ Configure a DHCP Server:
set service dhcp-server shared-network-name LAN subnet 192.168.0.0/24 dns-server '192.168.0.1'
set service dhcp-server shared-network-name LAN subnet 192.168.0.0/24 domain-name 'internal-network'
set service dhcp-server shared-network-name LAN subnet 192.168.0.0/24 lease '86400'
- set service dhcp-server shared-network-name LAN subnet 192.168.0.0/24 start 192.168.0.9 stop '192.168.0.254'
+ set service dhcp-server shared-network-name LAN subnet 192.168.0.0/24 range 0 start 192.168.0.9
+ set service dhcp-server shared-network-name LAN subnet 192.168.0.0/24 range 0 stop '192.168.0.254'
And a DNS forwarder:
diff --git a/docs/services.rst b/docs/services.rst
index af245a44..3c092d91 100644
--- a/docs/services.rst
+++ b/docs/services.rst
@@ -289,10 +289,17 @@ Explanation
to shorten this period, unless you are running a network with lots of devices
appearing and disappearing.
+
* :code:`set service dhcp-server shared-network-name dhcpexample subnet
- 172.16.17.0/24 start 172.16.17.100 stop 172.16.17.199`
+ 172.16.17.0/24 range 0 start 172.16.17.100`
+
+ Make a range of addresses available for clients starting from .100 [...]
+
+* :code:`set service dhcp-server shared-network-name dhcpexample subnet
+ 172.16.17.0/24 range 0 stop 172.16.17.199`
+
+ [...] and ending at .199
- Make the IP Addresses between .100 and .199 available for clients.
DHCPv6 server
-------------