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:39] – [Shorewall6: iptables con IPv6] niccolodoc:appunti:net:ipv6 [2026/07/13 12:30] (current) – [Disabilitare IPv6] niccolo
Line 15: Line 15:
  
 Da Debian Squeeze: Da Debian Squeeze:
 +
 +Per disabilitarlo a runtime:
 +
 +<code>
 +sysctl net.ipv6.conf.all.disable_ipv6=1
 +</code>
 +
 +Per disabilitarlo al bootstrap:
  
 <code> <code>
 echo net.ipv6.conf.all.disable_ipv6=1 > /etc/sysctl.d/disableipv6.conf echo net.ipv6.conf.all.disable_ipv6=1 > /etc/sysctl.d/disableipv6.conf
 </code> </code>
 +
  
 ===== Aggiungere e togliere un indirizzo IPv6 ===== ===== Aggiungere e togliere un indirizzo IPv6 =====
Line 49: Line 58:
  
 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 249: Line 274:
 === Configurazione manuale === === Configurazione manuale ===
  
-Se lo stack PPP non è opportunamente configurato, è possibile procedere alla **configurazione manuale** dell'indirizzo IPv6 e del relativo default gateway dopo che la connessione è avvenuta. È ovviamente necessario conoscere i parametri che dovrebbero essere forniti dal provider. Ecco un esempio dei comandi da eseguire:+Se lo stack PPP non è opportunamente configurato, è possibile procedere alla **configurazione manuale** dell'indirizzo IPv6 e del relativo default gateway dopo che la connessione è stabilita. È ovviamente necessario conoscere i parametri che dovrebbero essere forniti dal provider. Ecco un esempio dei comandi da eseguire:
  
 <code> <code>
Line 304: Line 329:
 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.1510767569.txt.gz · Last modified: by niccolo