Difference between revisions of "Ubuntu IPv6"

From Teknologisk videncenter
Jump to: navigation, search
m (In flight)
m (Disable permanent)
Line 26: Line 26:
 
net.ipv6.conf.lo.disable_ipv6 = 1
 
net.ipv6.conf.lo.disable_ipv6 = 1
 
</source>
 
</source>
 +
=Configure as IPv6 Router
 +
Uncomment the line ''net.ipv6.conf.all.forwarding=1'' in ''/etc/sysctl.conf
 +
==Install Route Advertisement daemon for IPv6=
 +
<source lang=cli>
 +
sudo apt-get install radvd
 +
</source>
 +
==Configure radvd==
 +
Example configuration of ''/etc/radvd'' shown below. (See /usr/share/doc/radvd/examples)
 +
<source lang=cli>
 +
interface eth1
 +
{
 +
        AdvSendAdvert on;
 +
        prefix 2001:470:51dc:1::/64
 +
        {
 +
                AdvOnLink on;
 +
                AdvAutonomous on;
 +
        };
 +
};
 +
</source>
 +
 +
=Links=
 +
*[https://wiki.ubuntu.com/IPv6 Ubuntu IPv6]
 
{{Source cli}}
 
{{Source cli}}
 
[[Category:Linux]][[Category:IPv6]]
 
[[Category:Linux]][[Category:IPv6]]

Revision as of 16:54, 2 September 2013

Enabling/Disabling IPv6

In flight

Note
Enabling or disabling IPv6 this way is only in effect until next boot.

Disabling

sysctl -w net.ipv6.conf.all.disable_ipv6=1
sysctl -w net.ipv6.conf.default.disable_ipv6=1
sysctl -w net.ipv6.conf.lo.disable_ipv6=1

Enabling

sysctl -w net.ipv6.conf.all.disable_ipv6=0
sysctl -w net.ipv6.conf.default.disable_ipv6=0
sysctl -w net.ipv6.conf.lo.disable_ipv6=0

Manually adding an IPv6 Address

ifconfig eth0 add 2001:16d8:dd85:139::50/64

Disable permanent

Add the following lines to /etc/sysctl.conf.

net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1

=Configure as IPv6 Router Uncomment the line net.ipv6.conf.all.forwarding=1 in /etc/sysctl.conf

=Install Route Advertisement daemon for IPv6

sudo apt-get install radvd

Configure radvd

Example configuration of /etc/radvd shown below. (See /usr/share/doc/radvd/examples)

interface eth1
{
        AdvSendAdvert on;
        prefix 2001:470:51dc:1::/64
        {
                AdvOnLink on;
                AdvAutonomous on;
        };
};

Links