vrf: dynamic routing is now supported - document this

This commit is contained in:
Christian Poessinger 2021-04-16 19:23:25 +02:00
parent e21c80c6e1
commit 62f8241b09
8 changed files with 26 additions and 158 deletions

View File

@ -4,7 +4,7 @@
BGP IPv6 unnumbered with extended nexthop BGP IPv6 unnumbered with extended nexthop
######################################### #########################################
General information can be found in the :ref:`bgp` chapter. General information can be found in the :ref:`routing-bgp` chapter.
Configuration Configuration
============= =============

View File

@ -13,8 +13,8 @@ you can have as many as you want.
.. hint:: A Dummy interface is always up, thus it could be used for .. hint:: A Dummy interface is always up, thus it could be used for
management traffic or as source/destination for and :abbr:`IGP (Interior management traffic or as source/destination for and :abbr:`IGP (Interior
Gateway Protocol)` like :ref:`bgp` so your internal BGP link is not dependent Gateway Protocol)` like :ref:`routing-bgp` so your internal BGP link is not
on physical link states and multiple routes can be chosen to the dependent on physical link states and multiple routes can be chosen to the
destination. A :ref:`dummy-interface` Interface should always be preferred destination. A :ref:`dummy-interface` Interface should always be preferred
over a :ref:`loopback-interface` interface. over a :ref:`loopback-interface` interface.

View File

@ -14,8 +14,8 @@ services on your local machine.
.. hint:: A lookback interface is always up, thus it could be used for .. hint:: A lookback interface is always up, thus it could be used for
management traffic or as source/destination for and :abbr:`IGP (Interior management traffic or as source/destination for and :abbr:`IGP (Interior
Gateway Protocol)` like :ref:`bgp` so your internal BGP link is not dependent Gateway Protocol)` like :ref:`routing-bgp` so your internal BGP link is not
on physical link states and multiple routes can be chosen to the dependent on physical link states and multiple routes can be chosen to the
destination. A :ref:`dummy-interface` Interface should always be preferred destination. A :ref:`dummy-interface` Interface should always be preferred
over a :ref:`loopback-interface` interface. over a :ref:`loopback-interface` interface.

View File

@ -1,4 +1,4 @@
.. _bgp: .. _routing-bgp:
### ###
BGP BGP

View File

@ -1,6 +1,6 @@
.. include:: /_include/need_improvement.txt .. include:: /_include/need_improvement.txt
.. _isis: .. _routing-isis:
##### #####
IS-IS IS-IS
@ -16,9 +16,6 @@ neighbors. IS-IS runs directly on the data link layer (Layer 2). IS-IS
addresses are called :abbr:`NETs (Network Entity Titles)` and can be addresses are called :abbr:`NETs (Network Entity Titles)` and can be
8 to 20 bytes long, but are generally 10 bytes long. 8 to 20 bytes long, but are generally 10 bytes long.
******* *******
General General
******* *******

View File

@ -1,4 +1,4 @@
.. _static-routing: .. _routing-static:
###### ######
Static Static

View File

@ -36,5 +36,5 @@ Operation
Last update 09:46:30 ago Last update 09:46:30 ago
* 172.18.201.254, via eth0.201 * 172.18.201.254, via eth0.201
.. seealso:: Configuration of :ref:`static-routing` .. seealso:: Configuration of :ref:`routing-static`

View File

@ -14,7 +14,6 @@ in the very least need different default gateways.
different then they are implemented and handled right now - please feedback different then they are implemented and handled right now - please feedback
via a task created in Phabricator_. via a task created in Phabricator_.
Configuration Configuration
============= =============
@ -58,157 +57,29 @@ itself needs to be assigned to an interface.
Routing Routing
------- -------
Static .. note:: VyOS 1.4 (sagitta) introduced dynamic routing support for VRFs.
^^^^^^
Static routes are manually configured routes, which, in general, cannot be Currently dynamic routing is supported for the following protocols:
updated dynamically from information VyOS learns about the network topology from
other routing protocols. However, if a link fails, the router will remove
routes, including static routes, from the :abbr:`RIPB (Routing Information
Base)` that used this interface to reach the next hop. In general, static
routes should only be used for very simple network topologies, or to override
the behavior of a dynamic routing protocol for a small number of routes. The
collection of all routes the router has learned from its configuration or from
its dynamic routing protocols is stored in the RIB. Unicast routes are directly
used to determine the forwarding table used for unicast packet forwarding.
Static Routes - :ref:`routing-bgp`
""""""""""""" - :ref:`routing-isis`
- :ref:`routing-ospf`
- :ref:`routing-static`
.. cfgcmd:: set protocols vrf <name> static route <subnet> next-hop <address> The CLI configuration the same as mentioned in above articles. The only
difference is, that each routing protocol used, must be prefixed with the `vrf
name <name>` command.
Configure next-hop `<address>` for an IPv4 static route in the VRF identified Example
by `<name>`. Multiple static routes can be created. ^^^^^^^
.. cfgcmd:: set protocols vrf <name> static route <subnet> next-hop <address> The following commands would be required to set options ofr a given dynamic
disable routing protocol inside a given vrf:
Disable IPv4 static route entry in the VRF identified by `<name>`
.. cfgcmd:: set protocols vrf <name> static route <subnet> next-hop <address>
distance <distance>
Defines next-hop distance for this route, routes with smaller administrative
distance are elected prior those with a higher distance.
Range is 1 to 255, default is 1.
.. cfgcmd:: set protocols vrf <name> static route6 <subnet> next-hop <address>
Configure next-hop `<address>` for an IPv6 static route in the VRF identified
by `<name>`. Multiple IPv6 static routes can be created.
.. cfgcmd:: set protocols vrf <name> static route6 <subnet> next-hop <address>
disable
Disable IPv6 static route entry in the VRF identified by `<name>`.
.. cfgcmd:: set protocols vrf <name> static route6 <subnet> next-hop <address>
distance <distance>
Defines next-hop distance for this route, routes with smaller administrative
distance are elected prior those with a higher distance.
Range is 1 to 255, default is 1.
.. note:: Routes with a distance of 255 are effectively disabled and not
installed into the kernel.
Leaking
"""""""
.. cfgcmd:: set protocols vrf <name> static route <subnet> next-hop <address>
vrf <default | vrf-name>
Use this command if you have shared services or routes that should be shared
between multiple VRF instances. This will add an IPv4 route to VRF `<name>`
routing table to reach a `<subnet>` via a next-hop gatewys `<address>` in
a different VRF or leak it into the default VRF.
.. cfgcmd:: set protocols vrf <name> static route6 <subnet> next-hop <address>
vrf <default | vrf-name>
Use this command if you have shared services or routes that should be shared
between multiple VRF instances. This will add an IPv6 route to VRF `<name>`
routing table to reach a `<subnet>` via a next-hop gatewys `<address>` in
a different VRF or leak it into the default VRF.
Interface Routes
""""""""""""""""
.. cfgcmd:: set protocols vrf <name> static route <subnet>
interface <interface>
Allows you to configure the next-hop interface for an interface-based IPv4
static route. `<interface>` will be the next-hop interface where trafic is
routed for the given `<subnet>`.
.. cfgcmd:: set protocols vrf <name> static route <subnet>
interface <interface> disable
Disables interface-based IPv4 static route.
.. cfgcmd:: set protocols vrf <name> static route <subnet>
interface <interface> distance <distance>
Defines next-hop distance for this route, routes with smaller administrative
distance are elected prior those with a higher distance.
Range is 1 to 255, default is 1.
.. cfgcmd:: set protocols vrf <name> static route6 <subnet>
interface <interface>
Allows you to configure the next-hop interface for an interface-based IPv6
static route. `<interface>` will be the next-hop interface where trafic is
routed for the given `<subnet>`.
.. cfgcmd:: set protocols vrf <name> static route6 <subnet>
interface <interface> disable
Disables interface-based IPv6 static route.
.. cfgcmd:: set protocols vrf <name> static route6 <subnet>
interface <interface> distance <distance>
Defines next-hop distance for this route, routes with smaller administrative
distance are elected prior those with a higher distance.
Range is 1 to 255, default is 1.
Blackhole
"""""""""
.. cfgcmd:: set protocols vrf <name> static route <subnet> blackhole
Use this command to configure a "black-hole" route on the router. A
black-hole route is a route for which the system silently discard packets
that are matched. This prevents networks leaking out public interfaces, but
it does not prevent them from being used as a more specific route inside your
network.
.. cfgcmd:: set protocols vrf <name> static route <subnet> blackhole distance
<distance>
Defines blackhole distance for this route, routes with smaller administrative
distance are elected prior those with a higher distance.
.. cfgcmd:: set protocols vrf <name> static route6 <subnet> blackhole
Use this command to configure a "black-hole" route on the router. A
black-hole route is a route for which the system silently discard packets
that are matched. This prevents networks leaking out public interfaces, but
it does not prevent them from being used as a more specific route inside your
network.
.. cfgcmd:: set protocols vrf <name> static route6 <subnet> blackhole distance
<distance>
Defines blackhole distance for this route, routes with smaller administrative
distance are elected prior those with a higher distance.
- :ref:`routing-bgp`: ``set vrf name <name> protocols bgp ...``
- :ref:`routing-isis`: ``set vrf name <name> protocols isis ...``
- :ref:`routing-ospf`: ``set vrf name <name> protocols ospf ...``
- :ref:`routing-static`: ``set vrf name <name> protocols static ...``
Operation Operation
========= =========