summaryrefslogtreecommitdiff
path: root/docs/routing/ospf.rst
diff options
context:
space:
mode:
Diffstat (limited to 'docs/routing/ospf.rst')
-rw-r--r--docs/routing/ospf.rst18
1 files changed, 9 insertions, 9 deletions
diff --git a/docs/routing/ospf.rst b/docs/routing/ospf.rst
index b8366cdc..06840214 100644
--- a/docs/routing/ospf.rst
+++ b/docs/routing/ospf.rst
@@ -17,13 +17,13 @@ OSPFv2 (IPv4)
In order to have a VyOS system exchanging routes with OSPF neighbors, you will at least need to configure the area and a network,
-.. code-block:: sh
+.. code-block:: console
set protocols ospf area 0 network 192.168.0.0/24
as well as the router ID.
-.. code-block:: sh
+.. code-block:: console
set protocols ospf parameters router-id 10.1.1.1
@@ -33,7 +33,7 @@ Below you can see a typical configuration using 2 nodes, redistribute loopback a
**Node 1**
-.. code-block:: sh
+.. code-block:: console
set interfaces loopback lo address 10.1.1.1/32
set protocols ospf area 0 network 192.168.0.0/24
@@ -50,7 +50,7 @@ Below you can see a typical configuration using 2 nodes, redistribute loopback a
**Node 2**
-.. code-block:: sh
+.. code-block:: console
set interfaces loopback lo address 10.2.2.2/32
set protocols ospf area 0 network 192.168.0.0/24
@@ -69,7 +69,7 @@ A typical configuration using 2 nodes.
**Node 1:**
-.. code-block:: sh
+.. code-block:: console
set protocols ospfv3 area 0.0.0.0 interface eth1
set protocols ospfv3 area 0.0.0.0 range 2001:db8:1::/64
@@ -78,7 +78,7 @@ A typical configuration using 2 nodes.
**Node 2:**
-.. code-block:: sh
+.. code-block:: console
set protocols ospfv3 area 0.0.0.0 interface eth1
set protocols ospfv3 area 0.0.0.0 range 2001:db8:2::/64
@@ -93,7 +93,7 @@ Example configuration for WireGuard interfaces:
**Node 1**
-.. code-block:: sh
+.. code-block:: console
set interfaces wireguard wg01 address 'fe80::216:3eff:fe51:fd8c/64'
set interfaces wireguard wg01 address '192.168.0.1/24'
@@ -108,7 +108,7 @@ Example configuration for WireGuard interfaces:
**Node 2**
-.. code-block:: sh
+.. code-block:: console
set interfaces wireguard wg01 address 'fe80::216:3eff:fe0a:7ada/64'
set interfaces wireguard wg01 address '192.168.0.2/24'
@@ -123,7 +123,7 @@ Example configuration for WireGuard interfaces:
**Status**
-.. code-block:: sh
+.. code-block:: console
vyos@ospf01:~$ sh ipv6 ospfv3 neighbor
Neighbor ID Pri DeadTime State/IfState Duration I/F[State]