Difference between revisions of "IPv6"

From ArchWiki
Jump to: navigation, search
(brought up to date)
(Added summary box)
Line 1: Line 1:
 
[[Category:Networking (English)]]
 
[[Category:Networking (English)]]
 
{{i18n|IPv6}}
 
{{i18n|IPv6}}
 +
{{Article summary start}}
 +
{{Article summary text|This article covers IPv6, and basics of configuring different IPv6 related things like static IP adresses.}}
 +
{{Article summary heading|Related}}
 +
{{Article summary wiki|IPv6 - Disabling the Module}}
 +
{{Article summary wiki|IPv6 - Tunnel Broker Setup}}
 +
{{Article summary end}}
 +
  
 
In Arch Linux, IPv6 is enabled by default. In some cases, it can be useful to [[IPv6 - Disabling the Module|disable the IPv6 stack]].
 
In Arch Linux, IPv6 is enabled by default. In some cases, it can be useful to [[IPv6 - Disabling the Module|disable the IPv6 stack]].

Revision as of 22:25, 1 April 2012

This template has only maintenance purposes. For linking to local translations please use interlanguage links, see Help:i18n#Interlanguage links.


Local languages: Català – Dansk – English – Español – Esperanto – Hrvatski – Indonesia – Italiano – Lietuviškai – Magyar – Nederlands – Norsk Bokmål – Polski – Português – Slovenský – Česky – Ελληνικά – Български – Русский – Српски – Українська – עברית – العربية – ไทย – 日本語 – 正體中文 – 简体中文 – 한국어


External languages (all articles in these languages should be moved to the external wiki): Deutsch – Français – Română – Suomi – Svenska – Tiếng Việt – Türkçe – فارسی

Summary help replacing me
This article covers IPv6, and basics of configuring different IPv6 related things like static IP adresses.
Related
IPv6 - Disabling the Module
IPv6 - Tunnel Broker Setup


In Arch Linux, IPv6 is enabled by default. In some cases, it can be useful to disable the IPv6 stack.

If you are looking for information regarding IPv6 tunnels, you may want to look at IPv6 - Tunnel Broker Setup.

Privacy Extensions

To enable Privacy Extensions for Stateless Address Autoconfiguration in IPv6 according to RFC 4941, reproduce the following steps:

Add these lines to /etc/sysctl.conf:

# Enable IPv6 Privacy Extensions
net.ipv6.conf.all.use_tempaddr = 2
net.ipv6.conf.default.use_tempaddr = 2
net.ipv6.conf.<nic0>.use_tempaddr = 2
...
net.ipv6.conf.<nicN>.use_tempaddr = 2

Where <nic0> to <nicN> are your nic's (the "all" or "default" parameters do not apply to nic's that already exist when the sysctl settings are applied).

After a reboot, at the latest, Privacy Extensions should be enabled.

Neighbor Discovery

Pinging the multicast address ff02::1 results in all hosts in link-local scope responding. An interface has to be specified. With a ping to the multicast address ff02::2 only routers will respond.

$ ping6 ff02::1%eth0

If you add an option -I <your-global-ipv6>, link-local hosts will respond with their link-global scope addresses. The interface can be omitted in this case.

$ ping6 -I 2001:4f8:fff6::21 ff02::1

Static Address

To assign a static address (for example 2001:470:1000:1000::5/64):

Add your static IP using netcfg. You can load them at startup by specifying your netcfg profiles in the NETWORKS section of /etc/rc.conf:

/etc/network.d/eth0

CONNECTION='ethernet'
DESCRIPTION='ipv6+ipv4 eth0'
INTERFACE='eth0'

IP=static
ADDR=192.168.1.5
NETMASK=24
ROUTES=
GATEWAY=192.168.1.1

IP6=static
ADDR6=(2001:470:1000:1000::5/64)
GATEWAY6=2001:470:1000:1000::1

/etc/rc.conf

NETWORKS=(eth0)

Finally DAEMONS section should contain "net-profiles" instead of the deprecated "network". See Netcfg for more information.