ipv6: improve PPPoE and RA examples

This commit is contained in:
Christian Breunig 2024-03-03 10:00:59 +01:00
parent b09abf5924
commit 62b36a812a
2 changed files with 15 additions and 5 deletions

View File

@ -380,9 +380,13 @@ IPv6 DHCPv6-PD Example
.. stop_vyoslinter .. stop_vyoslinter
The following configuration will assign a /64 prefix out of a /56 delegation The following configuration will setup a PPPoE session source from eth1 and
to eth0. The IPv6 address assigned to eth0 will be <prefix>::ffff/64. assign a /64 prefix out of a /56 delegation (requested from the ISP) to eth0.
If you do not know the prefix size delegated to you, start with sla-len 0. The IPv6 address assigned to eth0 will be <prefix>::1/64. If you do not know
the prefix size delegated to you, start with sla-len 0.
In addition we setup IPv6 :abbr:`RA (Router Advertisements)` to make the
prefix known on the eth0 link.
.. start_vyoslinter .. start_vyoslinter
@ -395,3 +399,5 @@ If you do not know the prefix size delegated to you, start with sla-len 0.
set interfaces pppoe pppoe0 dhcpv6-options pd 0 length '56' set interfaces pppoe pppoe0 dhcpv6-options pd 0 length '56'
set interfaces pppoe pppoe0 ipv6 address autoconf set interfaces pppoe pppoe0 ipv6 address autoconf
set interfaces pppoe pppoe0 source-interface eth1 set interfaces pppoe pppoe0 source-interface eth1
set service router-advert interface eth0 prefix ::/64

View File

@ -26,7 +26,7 @@ Supported interface types:
Enabling Advertisments Enabling Advertisments
~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~
.. cfgcmd:: set service router-advert interface <interface> .... .. cfgcmd:: set service router-advert interface <interface> ...
.. stop_vyoslinter .. stop_vyoslinter
@ -52,7 +52,11 @@ Enabling Advertisments
Advertising a Prefix Advertising a Prefix
'''''''''''''''''''' ''''''''''''''''''''
.. cfgcmd:: set service router-advert interface <interface> prefix 2001:DB8::/32 .. cfgcmd:: set service router-advert interface <interface> prefix <prefix/mask>
.. note:: You can also opt for using `::/64` as prefix for your :abbr:`RAs (Router
Advertisements)`. This will take the IPv6 GUA prefix assigned to the interface,
which comes in handy when using DHCPv6-PD.
.. stop_vyoslinter .. stop_vyoslinter