User Tools

Site Tools


doc:appunti:net:ipv6_on_ppp

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
doc:appunti:net:ipv6_on_ppp [2026/09/27 07:27] – [Using a static IPv6 address] niccolodoc:appunti:net:ipv6_on_ppp [2026/09/27 09:37] (current) – [Commands] niccolo
Line 574: Line 574:
  
 # Execute first the default Debian script (DNS, etc.), if it exists. # Execute first the default Debian script (DNS, etc.), if it exists.
-[ -x /etc/wide-dhcpv6/dhcp6c-script ] && /etc/wide-dhcpv6/dhcp6c-script+# We do not need this because the DNS is configured locally, not via DHCPv6. 
 +#[ -x /etc/wide-dhcpv6/dhcp6c-script ] && /etc/wide-dhcpv6/dhcp6c-script
  
 get_src() { get_src() {
Line 600: Line 601:
 </code> </code>
  
-===== Commands =====+To hook this script to the moment the IPv6 configuration is received, modify the **/etc/wide-dhcpv6/dhcp6c.conf** configuration file by replacing the default value of //script// in the //interface ppp0// section: 
 + 
 +<file> 
 +interface ppp0 { 
 +    # Send an option for "Identity Association for Prefix Delegation" with ID=0. 
 +    send ia-pd 0; 
 +    # Script executed when the daemon receives a reply message. 
 +    script "/etc/wide-dhcpv6/dhcp6c-src-route"; 
 +}; 
 +</file> 
 + 
 +If you need to call the default Debian hook script **/etc/wide-dhcpv6/dhcp6c-script** (used mainly to set the DNS nameserver on DHCPv6) you need to uncomment the relevant line in the scrtip above. 
 + 
 +You can see all the times that the script is executed (because the DHCPv6 lease renews) using the command: 
 + 
 +<code> 
 +journalctl --boot -t dhcp6c-src 
 +</code> 
 + 
 +===== Useful commands =====
  
 Mostra la **rotta predefinita** per IPv6: Mostra la **rotta predefinita** per IPv6:
doc/appunti/net/ipv6_on_ppp.1790486869.txt.gz · Last modified: by niccolo