diff options
author | srividya0208 <a.srividya@vyos.io> | 2021-07-12 11:23:21 -0400 |
---|---|---|
committer | srividya0208 <a.srividya@vyos.io> | 2021-07-12 11:23:21 -0400 |
commit | d7833fb327c8a0a28dde053f4b80daf00f662f7a (patch) | |
tree | 7e538487d1013908a87571fd69b5a21037c9cc2f /docs/configuration/policy/index.rst | |
parent | 9397cc646ff241b17ce8c12befb53107202fdfde (diff) | |
download | vyos-documentation-d7833fb327c8a0a28dde053f4b80daf00f662f7a.tar.gz vyos-documentation-d7833fb327c8a0a28dde053f4b80daf00f662f7a.zip |
correction of configuration error
Diffstat (limited to 'docs/configuration/policy/index.rst')
-rw-r--r-- | docs/configuration/policy/index.rst | 16 |
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' |