From b13fd424a155ab09904cdbab45051a77adf1e6a1 Mon Sep 17 00:00:00 2001 From: srividya0208 <68350089+srividya0208@users.noreply.github.com> Date: Thu, 20 May 2021 00:35:02 +0530 Subject: tftp: add verification help/example Added verification section so that it will in testing the feature --- docs/configuration/service/tftp-server.rst | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'docs/configuration/service') diff --git a/docs/configuration/service/tftp-server.rst b/docs/configuration/service/tftp-server.rst index d220d789..11011144 100644 --- a/docs/configuration/service/tftp-server.rst +++ b/docs/configuration/service/tftp-server.rst @@ -52,3 +52,21 @@ The resulting configuration will look like: listen-address 2001:db8::1 listen-address 192.0.2.1 } + +Verification +------------ + +Client: + +.. code-block:: none + + vyos@RTR2:~$ tftp -p -l /config/config.boot -r backup 192.0.2.1 + backup1 100% |******************************| 723 0:00:00 ETA + +Server: + +.. code-block:: none + + vyos@RTR1# ls -ltr /config/tftpboot/ + total 1 + -rw-rw-rw- 1 tftp tftp 1995 May 19 16:02 backup -- cgit v1.2.3 From 6553b5f6dea9ff97971c62215c8e209f39b9839a Mon Sep 17 00:00:00 2001 From: joolli Date: Fri, 21 May 2021 16:00:40 +0000 Subject: dhcp-server: add configuration example for UniFi devices --- docs/configuration/service/dhcp-server.rst | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'docs/configuration/service') diff --git a/docs/configuration/service/dhcp-server.rst b/docs/configuration/service/dhcp-server.rst index 28dddb2f..3f435605 100644 --- a/docs/configuration/service/dhcp-server.rst +++ b/docs/configuration/service/dhcp-server.rst @@ -374,6 +374,29 @@ Raw Parameters set service dhcp-server shared-network-name dhcpexample subnet 192.0.2.0/24 static-mapping example static-mapping-parameters "option domain-name-servers 192.0.2.11, 192.0.2.12;" set service dhcp-server shared-network-name dhcpexample subnet 192.0.2.0/24 static-mapping example static-mapping-parameters "option pxelinux.configfile "pxelinux.cfg/01-00-15-17-44-2d-aa";" +Option 43 for UniFI +------------------- + +* These parameters need to be part of the DHCP global options. They stay unchanged. + + +.. code-block:: none + + set service dhcp-server global-parameters 'option space ubnt;' + set service dhcp-server global-parameters 'option ubnt.unifi-address code 1 = ip-address;' + set service dhcp-server global-parameters 'class "ubnt" {' + set service dhcp-server global-parameters 'match if substring (option vendor-class-identifier, 0, 4) = "ubnt";' + set service dhcp-server global-parameters 'option vendor-class-identifier "ubnt";' + set service dhcp-server global-parameters 'vendor-option-space ubnt;' + set service dhcp-server global-parameters '}' + +* Now we add the option to the scope, adapt to your setup + + +.. code-block:: none + + set service dhcp-server shared-network-name example-scope subnet 10.1.1.0/24 subnet-parameters 'option ubnt.unifi-address 172.16.1.10;' + Operation Mode ============== -- cgit v1.2.3