Size: 257
Comment:
|
Size: 1954
Comment:
|
Deletions are marked like this. | Additions are marked like this. |
Line 3: | Line 3: |
Ubuntu dapper default supports IPv6, so you have to do nothing. If you want do disable IPv6 globally, please read [:disableIPv6:our section] on how to do it. | Ubuntu dapper default supports IPv6, so you have to do nothing to enable IPv6. If you want do disable IPv6 globally, please read [:IPv6hostslinux disableIPv6:our section] on how to do it. == How can I enable forwarding between IPv6 enabled interfaces? == In {{{/etc/sysctl.conf}}} add the line {{{ net/ipv6/conf/all/forwarding=1}}} and run {{{ # sysctl -p /etc/sysctl.conf}}} Please note, you cannot enable/disable IPv6 forwarding per interface as in the IPv4 case. If you want to disable IPv6 forwarding for some interfaces, use netfilter/p6tables. == How can I enable/disable autoconfiguration on all interfaces? == Autoconfiguration is enabled by default. If you want to disable it for all interfaces, add the line {{{ net/ipv6/conf/all/autoconf=0}}} to {{{/etc/sysctl.conf}}} and reload the file by {{{sysctl}}} as it is shown above. == How can I enable/disable router behaviour (i.e not to accept router advertisements) on all devices? == The kernel default accepts router advertisements. You can disable it on all interfaces by adding the line {{{ net/ipv6/conf/all/accept_ra=0}}} to {{{/etc/sysctl.conf}}} and reloading it by {{{sysctl}}}. == How can I configure an interface statically with global IPv6 address? == Use the standard {{{/etc/network/interfaces}}} file on Debian/Ubuntu systems: {{{ iface eth0 inet6 static address dead:beef::1 netmask 64}}} You can add a static default gateway if you want to ignore router advertisements: {{{ iface eth0 inet6 static address dead:beef::1 netmask 64 gateway dead:beef::}}} Please note, you cannot bring up just the IPv6 settings of an interface, so in order your changes take effect you have to issue the commands {{{ # ifdown eth0 # ifup eth0}}} which brings down IPv4 on your interface. |
IPv6 configuration on Ubuntu (dapper) systems
How can I enable/disable IPv6 globally?
Ubuntu dapper default supports IPv6, so you have to do nothing to enable IPv6. If you want do disable IPv6 globally, please read [:IPv6hostslinux disableIPv6:our section] on how to do it.
How can I enable forwarding between IPv6 enabled interfaces?
In /etc/sysctl.conf add the line
net/ipv6/conf/all/forwarding=1
and run
# sysctl -p /etc/sysctl.conf
Please note, you cannot enable/disable IPv6 forwarding per interface as in the IPv4 case. If you want to disable IPv6 forwarding for some interfaces, use netfilter/p6tables.
How can I enable/disable autoconfiguration on all interfaces?
Autoconfiguration is enabled by default. If you want to disable it for all interfaces, add the line
net/ipv6/conf/all/autoconf=0
to /etc/sysctl.conf and reload the file by sysctl as it is shown above.
How can I enable/disable router behaviour (i.e not to accept router advertisements) on all devices?
The kernel default accepts router advertisements. You can disable it on all interfaces by adding the line
net/ipv6/conf/all/accept_ra=0
to /etc/sysctl.conf and reloading it by sysctl.
How can I configure an interface statically with global IPv6 address?
Use the standard /etc/network/interfaces file on Debian/Ubuntu systems:
iface eth0 inet6 static address dead:beef::1 netmask 64
You can add a static default gateway if you want to ignore router advertisements:
iface eth0 inet6 static address dead:beef::1 netmask 64 gateway dead:beef::
Please note, you cannot bring up just the IPv6 settings of an interface, so in order your changes take effect you have to issue the commands
# ifdown eth0 # ifup eth0
which brings down IPv4 on your interface.