mirror of
https://github.com/vyos/vyos-documentation.git
synced 2025-10-26 08:41:46 +01:00
Merge pull request #1275 from vyos/srv6-T5849
srv6: T5849: add segment support to "protocols static route6"
This commit is contained in:
commit
79a74a54e7
@ -59,6 +59,29 @@ Static Routes
|
|||||||
.. note:: Routes with a distance of 255 are effectively disabled and not
|
.. note:: Routes with a distance of 255 are effectively disabled and not
|
||||||
installed into the kernel.
|
installed into the kernel.
|
||||||
|
|
||||||
|
.. cfgcmd:: set protocols static route6 <subnet> next-hop <address> segments <segments>
|
||||||
|
|
||||||
|
It is possible to specify a static route for ipv6 prefixes using an SRv6 segments
|
||||||
|
instruction. The `/` separator can be used to specify multiple segment instructions.
|
||||||
|
|
||||||
|
Example:
|
||||||
|
|
||||||
|
.. code-block:: none
|
||||||
|
|
||||||
|
set protocols static route6 2001:db8:1000::/36 next-hop 2001:db8:201::ffff segments '2001:db8:aaaa::7/2002::4/2002::3/2002::2'
|
||||||
|
|
||||||
|
.. code-block:: none
|
||||||
|
|
||||||
|
vyos@vyos:~$ show ipv6 route
|
||||||
|
Codes: K - kernel route, C - connected, S - static, R - RIPng,
|
||||||
|
O - OSPFv3, I - IS-IS, B - BGP, N - NHRP, T - Table,
|
||||||
|
v - VNC, V - VNC-Direct, A - Babel, F - PBR,
|
||||||
|
f - OpenFabric,
|
||||||
|
> - selected route, * - FIB route, q - queued, r - rejected, b - backup
|
||||||
|
t - trapped, o - offload failure
|
||||||
|
C>* 2001:db8:201::/64 is directly connected, eth0.201, 00:00:46
|
||||||
|
S>* 2001:db8:1000::/36 [1/0] via 2001:db8:201::ffff, eth0.201, seg6 2001:db8:aaaa::7,2002::4,2002::3,2002::2, weight 1, 00:00:08
|
||||||
|
|
||||||
|
|
||||||
Interface Routes
|
Interface Routes
|
||||||
================
|
================
|
||||||
@ -103,6 +126,17 @@ Interface Routes
|
|||||||
|
|
||||||
Range is 1 to 255, default is 1.
|
Range is 1 to 255, default is 1.
|
||||||
|
|
||||||
|
.. cfgcmd:: set protocols static route6 <subnet> interface
|
||||||
|
<interface> segments <segments>
|
||||||
|
|
||||||
|
It is possible to specify a static route for ipv6 prefixes using an SRv6 segments
|
||||||
|
instruction. The `/` separator can be used to specify multiple segment instructions.
|
||||||
|
|
||||||
|
Example:
|
||||||
|
|
||||||
|
.. code-block:: none
|
||||||
|
|
||||||
|
set protocols static route6 2001:db8:1000::/36 interface eth0 segments '2001:db8:aaaa::7/2002::4/2002::3/2002::2'
|
||||||
|
|
||||||
Blackhole
|
Blackhole
|
||||||
=========
|
=========
|
||||||
@ -133,7 +167,6 @@ Blackhole
|
|||||||
Defines blackhole distance for this route, routes with smaller administrative
|
Defines blackhole distance for this route, routes with smaller administrative
|
||||||
distance are elected prior to those with a higher distance.
|
distance are elected prior to those with a higher distance.
|
||||||
|
|
||||||
|
|
||||||
Alternate Routing Tables
|
Alternate Routing Tables
|
||||||
========================
|
========================
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user