summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2024-03-03 10:00:59 +0100
committerChristian Breunig <christian@breunig.cc>2024-03-03 10:01:23 +0100
commit4263ff840a19efc7fdd9de13c7048a493dcb23b2 (patch)
tree09617d355e6b632610607ff159adf2e4619bf171
parent762dba6581429b003f0187b5fd8e62f08923896c (diff)
downloadvyos-documentation-4263ff840a19efc7fdd9de13c7048a493dcb23b2.tar.gz
vyos-documentation-4263ff840a19efc7fdd9de13c7048a493dcb23b2.zip
ipv6: improve PPPoE and RA examples
(cherry picked from commit 62b36a812a922ad6fc17f636bba029e463f35d49)
-rw-r--r--docs/configuration/interfaces/pppoe.rst12
-rw-r--r--docs/configuration/service/router-advert.rst8
2 files changed, 15 insertions, 5 deletions
diff --git a/docs/configuration/interfaces/pppoe.rst b/docs/configuration/interfaces/pppoe.rst
index b37e95a2..65081e1c 100644
--- a/docs/configuration/interfaces/pppoe.rst
+++ b/docs/configuration/interfaces/pppoe.rst
@@ -380,9 +380,13 @@ IPv6 DHCPv6-PD Example
.. stop_vyoslinter
-The following configuration will assign a /64 prefix out of a /56 delegation
-to eth0. The IPv6 address assigned to eth0 will be <prefix>::ffff/64.
-If you do not know the prefix size delegated to you, start with sla-len 0.
+The following configuration will setup a PPPoE session source from eth1 and
+assign a /64 prefix out of a /56 delegation (requested from the ISP) to eth0.
+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
@@ -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 ipv6 address autoconf
set interfaces pppoe pppoe0 source-interface eth1
+
+ set service router-advert interface eth0 prefix ::/64
diff --git a/docs/configuration/service/router-advert.rst b/docs/configuration/service/router-advert.rst
index eb1a6844..f179153a 100644
--- a/docs/configuration/service/router-advert.rst
+++ b/docs/configuration/service/router-advert.rst
@@ -26,7 +26,7 @@ Supported interface types:
Enabling Advertisments
~~~~~~~~~~~~~~~~~~~~~~~
-.. cfgcmd:: set service router-advert interface <interface> ....
+.. cfgcmd:: set service router-advert interface <interface> ...
.. stop_vyoslinter
@@ -52,7 +52,11 @@ Enabling Advertisments
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