From 269023845a5dcd936d406fbe1edc2edd45262a24 Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Thu, 28 Nov 2019 21:41:32 +0100 Subject: Refactor "code-block:: console" to "code-block:: none" --- docs/system/host-information.rst | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) (limited to 'docs/system/host-information.rst') diff --git a/docs/system/host-information.rst b/docs/system/host-information.rst index b5b16ed0..71209412 100644 --- a/docs/system/host-information.rst +++ b/docs/system/host-information.rst @@ -21,7 +21,7 @@ or over the internet. Set a system host name: -.. code-block:: console +.. code-block:: none set system host-name @@ -29,19 +29,19 @@ Set a system host name: Show host name: -.. code-block:: console +.. code-block:: none show system host-name Delete host name: -.. code-block:: console +.. code-block:: none delete system host-name Example: Set system hostname to 'RT01': -.. code-block:: console +.. code-block:: none set system host-name RT01 commit @@ -56,7 +56,7 @@ unique. Set the system's domain: -.. code-block:: console +.. code-block:: none set system domain-name @@ -64,19 +64,19 @@ Set the system's domain: Show domain: -.. code-block:: console +.. code-block:: none show system domain-name Remove domain name: -.. code-block:: console +.. code-block:: none set system delete domain-name Example: Set system domain to example.com: -.. code-block:: console +.. code-block:: none set system domain-name example.com commit @@ -90,20 +90,20 @@ How to assign IPs to interfaces is described in chapter :ref:`interfaces-addresses`. This section shows how to statically map a system IP to its host name for local (meaning on this VyOS instance) DNS resolution: -.. code-block:: console +.. code-block:: none set system static-host-mapping host-name inet Show static mapping: -.. code-block:: console +.. code-block:: none show system static-host-mapping Example: Create a static mapping between the system's hostname `RT01` and IP address `10.20.30.41`: -.. code-block:: console +.. code-block:: none set system static-host-mapping host-name RT01 inet 10.20.30.41 commit @@ -117,25 +117,25 @@ Aliases One or more system aliases (static mappings) can be defined: -.. code-block:: console +.. code-block:: none set system static-host-mapping host-name alias Show aliases: -.. code-block:: console +.. code-block:: none show system static-mapping Delete alias: -.. code-block:: console +.. code-block:: none delete system static-host-mapping host-name alias Example: Set alias `router1` for system with hostname `RT01`: -.. code-block:: console +.. code-block:: none set system static-host-mapping host-name RT01 alias router1 commit @@ -154,19 +154,19 @@ existing configurations are migrated to the new CLI commands. It is replaced by inserting a static route into the routing table using: -.. code-block:: console +.. code-block:: none set protocols static route 0.0.0.0/0 next-hop Delete the default route from the system -.. code-block:: console +.. code-block:: none delete protocols static route 0.0.0.0/0 Show default route: -.. code-block:: console +.. code-block:: none vyos@vyos$ show ip route 0.0.0.0 Routing entry for 0.0.0.0/0 -- cgit v1.2.3