User Tools

Site Tools


doc:appunti:net:ipv6

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 [2017/11/15 18:40] – [IPv6 su PPP] niccolodoc:appunti:net:ipv6 [2019/08/26 11:06] (current) – [Configurazione automatica] niccolo
Line 49: Line 49:
  
 Quindi se esiste un host che annuncia la configurazione IPv6 (ad esempio un host GNU/Linux che esegue **radvd**, //Router Advertisement Daemon//), gli host nella stessa LAN si assegnano automaticamente un indirizzo IPv6 valido (ma non il default gateway). Quindi se esiste un host che annuncia la configurazione IPv6 (ad esempio un host GNU/Linux che esegue **radvd**, //Router Advertisement Daemon//), gli host nella stessa LAN si assegnano automaticamente un indirizzo IPv6 valido (ma non il default gateway).
 +
 +Per modificare uno di quei parametri creare un file **/etc/sysctl.d/90-local-ipv6.conf** con ad esempio:
 +
 +<file>
 +net.ipv6.conf.eth1.accept_ra=0
 +</file>
 +
 +Per rendere immediatamente attive le modifiche:
 +
 +<code>
 +cat /proc/sys/net/ipv6/conf/eth1/accept_ra 
 +1
 +sysctl --system
 +cat /proc/sys/net/ipv6/conf/eth1/accept_ra 
 +0
 +</code>
 ===== Configurazione manuale ===== ===== Configurazione manuale =====
  
Line 304: Line 320:
 sysctl -w net.ipv6.conf.ppp0.accept_ra=2 sysctl -w net.ipv6.conf.ppp0.accept_ra=2
 </code> </code>
 +
 +=== Riferimenti web ===
 +
 +Vedere questo post: **[[http://strugglers.net/~andy/blog/2011/09/04/linux-ipv6-router-advertisements-and-forwarding/|Linux, IPv6, router advertisements and forwarding]]**, nel quale si legge:
 +
 +//By default, a Linux host on an IPv6 network will listen for and
 +solicit router advertisements in order to choose an IPv6 address
 +for itself and to set up its default route. This is referred to
 +as stateless address autoconfiguration (SLAAC).//
 +
 +//In this context, what makes the difference between router or not
 +are the settings of the /proc/sys/net/ipv6/conf/*/forwarding
 +files (or the net.ipv6.conf.*.forwarding sysctl). If you turn
 +your host into a router by setting one of those to “1”, you may
 +find that your host removes any IPv6 address and default route
 +it learnt via SLAAC.//
doc/appunti/net/ipv6.1510767609.txt.gz · Last modified: 2017/11/15 18:40 by niccolo