doc:appunti:net:ipv6_on_ppp
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| doc:appunti:net:ipv6_on_ppp [2026/09/27 09:08] – [Using a static IPv6 address] niccolo | doc:appunti:net:ipv6_on_ppp [2026/10/06 10:34] (current) – [Configuring Shorewall6] niccolo | ||
|---|---|---|---|
| Line 57: | Line 57: | ||
| </ | </ | ||
| - | This is the reason why the IPv6 global (public) address is propbably | + | This is the reason why the IPv6 global (public) address is probably |
| < | < | ||
| Line 109: | Line 109: | ||
| / | / | ||
| </ | </ | ||
| + | |||
| + | ===== Manual configuration of the IPv6 prefix delegation ===== | ||
| + | |||
| + | If your ISP assigns to you a **Prefix Delegation** (an IPv6 subnet), but it does not offer the **DHCPv6 service**, you need to configure the address manually. In our case the WAN IPv6 address is automatically negotiated on the ppp0 interface, so we manually configure the LAN IPv6 address (the delegated prefix) on the internal interface **br0**. | ||
| + | |||
| + | Just add the following section into **/ | ||
| + | |||
| + | < | ||
| + | iface br0 inet6 static | ||
| + | address 2a02: | ||
| + | netmask 64 | ||
| + | </ | ||
| + | |||
| ===== DHCPv6 client: the wide-dhcpv6-client.service ===== | ===== DHCPv6 client: the wide-dhcpv6-client.service ===== | ||
| Line 490: | Line 503: | ||
| </ | </ | ||
| - | Like for the IPv4, the **CLAMPMSS=Yes** is often required in **/etc/shorewall/shorewall.conf** (see above): | + | If you want to forward packets from internal interface to the external one (and vice-versa), |
| + | |||
| + | < | ||
| + | IP_FORWARDING=On | ||
| + | </ | ||
| + | |||
| + | Like for the IPv4, the **CLAMPMSS=Yes** is often required in **/etc/shorewall6/shorewall6.conf** (see above): | ||
| < | < | ||
| Line 574: | Line 593: | ||
| # Execute first the default Debian script (DNS, etc.), if it exists. | # Execute first the default Debian script (DNS, etc.), if it exists. | ||
| - | [ -x / | + | # We do not need this because the DNS is configured locally, not via DHCPv6. |
| + | #[ -x / | ||
| get_src() { | get_src() { | ||
| Line 611: | Line 631: | ||
| </ | </ | ||
| - | The script we added calls the default Debian script | + | If you need to call the default Debian |
| - | ===== Commands | + | You can see all the times that the script is executed (because the DHCPv6 lease renews) using the command: |
| + | |||
| + | < | ||
| + | journalctl --boot -t dhcp6c-src | ||
| + | </ | ||
| + | |||
| + | ===== Useful commands | ||
| Mostra la **rotta predefinita** per IPv6: | Mostra la **rotta predefinita** per IPv6: | ||
| Line 638: | Line 664: | ||
| inet6 2a02: | inet6 2a02: | ||
| | | ||
| + | </ | ||
| + | |||
| + | **Imposta o rimuove manualmente** un indirizzo IPv6 su una interfaccia: | ||
| + | |||
| + | < | ||
| + | ip -6 addr add 2a02: | ||
| + | ip -6 addr del 2a02: | ||
| </ | </ | ||
doc/appunti/net/ipv6_on_ppp.1790492905.txt.gz · Last modified: by niccolo
