summaryrefslogtreecommitdiff
path: root/docs/configexamples/ospf-unnumbered.rst
diff options
context:
space:
mode:
authorRobert Göhler <github@ghlr.de>2021-01-24 22:14:00 +0100
committerGitHub <noreply@github.com>2021-01-24 22:14:00 +0100
commitc25c40dfa96dfeb022b203280c607c1f1835417b (patch)
treeed05f81d48c65639e621ee3a067f435cb204ea9e /docs/configexamples/ospf-unnumbered.rst
parentce9f2016218f0c162bd48457a41a18db15e52749 (diff)
downloadvyos-documentation-c25c40dfa96dfeb022b203280c607c1f1835417b.tar.gz
vyos-documentation-c25c40dfa96dfeb022b203280c607c1f1835417b.zip
Migrate new file structure to crux (#435)
* order workflows and add submodule * rename gitmodules file * delete docs/.gitignore * add vyos custom linter * correct __pycache__ in gitignore * add test-coverage.py * move draw.io folder * arrange changelog, install history and about * arrange: firewall * arrange: highavailability * arrange: loadbalancing * arrange: nat * arrange: services * sort configexamples and configuration interfaces * wireles: rename wireless * rearrange: Protocols and Policy * rearrange: Firewall and Zone Policy * rearrange: Interfaces * rearrange: Interfaces * rearrange: dynamic DNS * hostinfo: add page to index * rearrange: appendix * venv: add Pipfile * rearrange: contributing * index: remove debugging * rearrange: fix all figure and refs * rearrange: commandtree * fix: cli, openvpn, install headline level * protocols: change headline * firewall: move mss clamping * ip: separate ipv4 and ipv6 * arp: move to static page * igmp: rename multicast page * Update to year 2021
Diffstat (limited to 'docs/configexamples/ospf-unnumbered.rst')
-rw-r--r--docs/configexamples/ospf-unnumbered.rst125
1 files changed, 125 insertions, 0 deletions
diff --git a/docs/configexamples/ospf-unnumbered.rst b/docs/configexamples/ospf-unnumbered.rst
new file mode 100644
index 00000000..84fc691e
--- /dev/null
+++ b/docs/configexamples/ospf-unnumbered.rst
@@ -0,0 +1,125 @@
+.. _examples-ospf-unnumbered:
+
+VyOS OSPF unnumbered with ecmp
+----------------------------------------------
+
+General infomration can be found in the :ref:`routing-ospf` chapter.
+
+Configuration
+^^^^^^^^^^^^^
+
+- Router A:
+
+.. code-block:: none
+
+ set interfaces ethernet eth0 address '10.0.0.1/24'
+ set interfaces ethernet eth1 address '192.168.0.1/32'
+ set interfaces ethernet eth1 ip ospf authentication md5 key-id 1 md5-key 'yourpassword'
+ set interfaces ethernet eth1 ip ospf network 'point-to-point'
+ set interfaces ethernet eth2 address '192.168.0.1/32'
+ set interfaces ethernet eth2 ip ospf authentication md5 key-id 1 md5-key 'yourpassword'
+ set interfaces ethernet eth2 ip ospf network 'point-to-point'
+ set interfaces loopback lo address '192.168.0.1/32'
+ set protocols ospf area 0.0.0.0 authentication 'md5'
+ set protocols ospf area 0.0.0.0 network '192.168.0.1/32'
+ set protocols ospf parameters router-id '192.168.0.1'
+ set protocols ospf redistribute connected
+
+- Router B:
+
+.. code-block:: none
+
+ set interfaces ethernet eth0 address '10.0.0.2/24'
+ set interfaces ethernet eth1 address '192.168.0.2/32'
+ set interfaces ethernet eth1 ip ospf authentication md5 key-id 1 md5-key 'yourpassword'
+ set interfaces ethernet eth1 ip ospf network 'point-to-point'
+ set interfaces ethernet eth2 address '192.168.0.2/32'
+ set interfaces ethernet eth2 ip ospf authentication md5 key-id 1 md5-key 'yourpassword'
+ set interfaces ethernet eth2 ip ospf network 'point-to-point'
+ set interfaces loopback lo address '192.168.0.2/32'
+ set protocols ospf area 0.0.0.0 authentication 'md5'
+ set protocols ospf area 0.0.0.0 network '192.168.0.2/32'
+ set protocols ospf parameters router-id '192.168.0.2'
+ set protocols ospf redistribute connected
+
+
+Results
+^^^^^^^^^^^^^
+
+- Router A:
+
+.. code-block:: none
+
+ vyos@vyos:~$ show interfaces
+ Codes: S - State, L - Link, u - Up, D - Down, A - Admin Down
+ Interface IP Address S/L Description
+ --------- ---------- --- -----------
+ eth0 10.0.0.1/24 u/u
+ eth1 192.168.0.1/32 u/u
+ eth2 192.168.0.1/32 u/u
+ lo 127.0.0.1/8 u/u
+ 192.168.0.1/32
+ ::1/128
+ vyos@vyos:~$
+
+
+.. code-block:: none
+
+ vyos@vyos:~$ show ip route
+ Codes: K - kernel route, C - connected, S - static, R - RIP,
+ O - OSPF, I - IS-IS, B - BGP, E - EIGRP, N - NHRP,
+ T - Table, v - VNC, V - VNC-Direct, A - Babel, D - SHARP,
+ F - PBR, f - OpenFabric,
+ > - selected route, * - FIB route, q - queued route, r - rejected route
+
+ S>* 0.0.0.0/0 [210/0] via 10.0.0.254, eth0, 00:57:34
+ O 10.0.0.0/24 [110/20] via 192.168.0.2, eth1 onlink, 00:13:21
+ via 192.168.0.2, eth2 onlink, 00:13:21
+ C>* 10.0.0.0/24 is directly connected, eth0, 00:57:35
+ O 192.168.0.1/32 [110/0] is directly connected, lo, 00:48:53
+ C * 192.168.0.1/32 is directly connected, eth2, 00:56:31
+ C * 192.168.0.1/32 is directly connected, eth1, 00:56:31
+ C>* 192.168.0.1/32 is directly connected, lo, 00:57:36
+ O>* 192.168.0.2/32 [110/1] via 192.168.0.2, eth1 onlink, 00:29:03
+ * via 192.168.0.2, eth2 onlink, 00:29:03
+ vyos@vyos:~$
+
+
+- Router B:
+
+.. code-block:: none
+
+ vyos@vyos:~$ show interfaces
+ Codes: S - State, L - Link, u - Up, D - Down, A - Admin Down
+ Interface IP Address S/L Description
+ --------- ---------- --- -----------
+ eth0 10.0.0.2/24 u/u
+ eth1 192.168.0.2/32 u/u
+ eth2 192.168.0.2/32 u/u
+ lo 127.0.0.1/8 u/u
+ 192.168.0.2/32
+ ::1/128
+ vyos@vyos:~$
+
+
+.. code-block:: none
+
+ vyos@vyos:~$ show ip route
+ Codes: K - kernel route, C - connected, S - static, R - RIP,
+ O - OSPF, I - IS-IS, B - BGP, E - EIGRP, N - NHRP,
+ T - Table, v - VNC, V - VNC-Direct, A - Babel, D - SHARP,
+ F - PBR, f - OpenFabric,
+ > - selected route, * - FIB route, q - queued route, r - rejected route
+
+ S>* 0.0.0.0/0 [210/0] via 10.0.0.254, eth0, 00:57:34
+ O 10.0.0.0/24 [110/20] via 192.168.0.1, eth1 onlink, 00:13:21
+ via 192.168.0.1, eth2 onlink, 00:13:21
+ C>* 10.0.0.0/24 is directly connected, eth0, 00:57:35
+ O 192.168.0.2/32 [110/0] is directly connected, lo, 00:48:53
+ C * 192.168.0.2/32 is directly connected, eth2, 00:56:31
+ C * 192.168.0.2/32 is directly connected, eth1, 00:56:31
+ C>* 192.168.0.2/32 is directly connected, lo, 00:57:36
+ O>* 192.168.0.1/32 [110/1] via 192.168.0.1, eth1 onlink, 00:29:03
+ * via 192.168.0.1, eth2 onlink, 00:29:03
+ vyos@vyos:~$
+