summaryrefslogtreecommitdiff
path: root/docs/configuration/policy/index.rst
diff options
context:
space:
mode:
authorRobert Göhler <github@ghlr.de>2021-07-13 19:42:14 +0200
committerGitHub <noreply@github.com>2021-07-13 19:42:14 +0200
commit48a32ba4b053d8d1552aed85fe65b04f363fd7ad (patch)
treedfa3e38e90529afb1f38ddaca192bd9f74b18716 /docs/configuration/policy/index.rst
parentf3389c303092e5fcf0361613579b2ee1f7cb085a (diff)
parent3f14e6ec8241e68c16469fcf1cfea10e8db1d0a0 (diff)
downloadvyos-documentation-48a32ba4b053d8d1552aed85fe65b04f363fd7ad.tar.gz
vyos-documentation-48a32ba4b053d8d1552aed85fe65b04f363fd7ad.zip
Merge pull request #570 from srividya0208/proof-reading
correction of configuration error
Diffstat (limited to 'docs/configuration/policy/index.rst')
-rw-r--r--docs/configuration/policy/index.rst16
1 files changed, 9 insertions, 7 deletions
diff --git a/docs/configuration/policy/index.rst b/docs/configuration/policy/index.rst
index 7a329500..7127957a 100644
--- a/docs/configuration/policy/index.rst
+++ b/docs/configuration/policy/index.rst
@@ -1,3 +1,5 @@
+:lastproofread:2021-07-12
+
.. include:: /_include/need_improvement.txt
######
@@ -53,7 +55,7 @@ neighbor.
.. code-block:: none
- vyos@vos1:~$ sho ip b
+ vyos@vos1:~$ show ip bgp
BGP table version is 0, local router ID is 192.168.56.101
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale, R Removed
@@ -182,7 +184,7 @@ ISP's and VyOS router will respond from the same interface that the packet was
received. Also, it used, if we want that one VPN tunnel to be through one
provider, and the second through another.
-* ``203.0.113.0.254`` IP addreess on VyOS eth1 from ISP1
+* ``203.0.113.254`` IP addreess on VyOS eth1 from ISP1
* ``192.168.2.254`` IP addreess on VyOS eth2 from ISP2
* ``table 10`` Routing table used for ISP1
* ``table 11`` Routing table used for ISP2
@@ -191,18 +193,18 @@ provider, and the second through another.
.. code-block:: none
set policy local-route rule 101 set table '10'
- set policy local-route rule 101 source '203.0.113.0.254'
+ set policy local-route rule 101 source '203.0.113.254'
set policy local-route rule 102 set table '11'
set policy local-route rule 102 source '192.0.2.254'
- set protocols static table 10 route '0.0.0.0/0' next-hop '203.0.113.0.1'
- set protocols static table 11 route '0.0.0.0/0' next-hop '192.0.2.2'
+ set protocols static table 10 route 0.0.0.0/0 next-hop '203.0.113.1'
+ set protocols static table 11 route 0.0.0.0/0 next-hop '192.0.2.2'
Add multiple source IP in one rule with same priority
.. code-block:: none
set policy local-route rule 101 set table '10'
- set policy local-route rule 101 source '203.0.113.0.254'
- set policy local-route rule 101 source '203.0.113.0.253'
+ set policy local-route rule 101 source '203.0.113.254'
+ set policy local-route rule 101 source '203.0.113.253'
set policy local-route rule 101 source '198.51.100.0/24'