diff options
author | Christian Poessinger <christian@poessinger.com> | 2019-11-28 21:41:32 +0100 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2019-11-28 21:41:32 +0100 |
commit | 269023845a5dcd936d406fbe1edc2edd45262a24 (patch) | |
tree | 52787b010fff5e7090f9e4c9c36554851d7b3259 /docs/services/dhcp.rst | |
parent | 03eaf80e6fb39a3bf76ae996b0c12c041c11a6a3 (diff) | |
download | vyos-documentation-269023845a5dcd936d406fbe1edc2edd45262a24.tar.gz vyos-documentation-269023845a5dcd936d406fbe1edc2edd45262a24.zip |
Refactor "code-block:: console" to "code-block:: none"
Diffstat (limited to 'docs/services/dhcp.rst')
-rw-r--r-- | docs/services/dhcp.rst | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/docs/services/dhcp.rst b/docs/services/dhcp.rst index e2c8a05e..a2aa087b 100644 --- a/docs/services/dhcp.rst +++ b/docs/services/dhcp.rst @@ -28,7 +28,7 @@ Prerequisites: Multiple DHCP ranges can be defined and may contain holes. -.. code-block:: console +.. code-block:: none set service dhcp-server shared-network-name '<name>' authoritative set service dhcp-server shared-network-name '<name>' subnet 192.0.2.0/24 default-router 192.0.2.1 @@ -39,7 +39,7 @@ Multiple DHCP ranges can be defined and may contain holes. The generated config will look like: -.. code-block:: console +.. code-block:: none vyos@vyos# show service dhcp-server shared-network-name '<name>' authoritative @@ -97,7 +97,7 @@ Failover VyOS provides support for DHCP failover: -.. code-block:: console +.. code-block:: none set service dhcp-server shared-network-name 'LAN' subnet '192.0.2.0/24' \ failover local-address '192.0.2.1' @@ -111,14 +111,14 @@ VyOS provides support for DHCP failover: The primary and secondary statements determines whether the server is primary or secondary -.. code-block:: console +.. code-block:: none set service dhcp-server shared-network-name 'LAN' subnet '192.0.2.0/24' \ failover status 'primary' or -.. code-block:: console +.. code-block:: none set service dhcp-server shared-network-name 'LAN' subnet '192.0.2.0/24' \ failover status 'secondary' @@ -237,7 +237,7 @@ server. The following example describes a common scenario. * Address pool shall be ``2001:db8::100`` through ``2001:db8::199``. * Lease time will be left at the default value which is 24 hours -.. code-block:: console +.. code-block:: none set service dhcpv6-server shared-network-name 'NET1' subnet 2001:db8::/64 \ address-range start 2001:db8::100 stop 2001:db8::199 @@ -246,7 +246,7 @@ server. The following example describes a common scenario. The configuration will look as follows: -.. code-block:: console +.. code-block:: none show service dhcpv6-server shared-network-name NET1 { @@ -275,7 +275,7 @@ be created. The following example explains the process. .. hint:: The MAC address identifier is defined by the last 4 byte of the MAC address. -.. code-block:: console +.. code-block:: none set service dhcpv6-server shared-network-name 'NET1' subnet 2001:db8::/64 \ static-mapping client1 ipv6-address 2001:db8::101 @@ -284,7 +284,7 @@ be created. The following example explains the process. The configuration will look as follows: -.. code-block:: console +.. code-block:: none show service dhcp-server shared-network-name NET1 shared-network-name NET1 { @@ -362,7 +362,7 @@ Example The generated configuration will look like: -.. code-block:: console +.. code-block:: none show service dhcp-relay interface eth1 @@ -440,7 +440,7 @@ Example The generated configuration will look like: -.. code-block:: console +.. code-block:: none commit show service dhcpv6-relay |