You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
IPv6 is the next-generation internet protocol and it's becoming more important quickly. Due to that, it should always be available, and should be compiled into the kernel image instead of merely being provided as a loadable module.
It's hard to follow without any arguments. How are you (e.g.) going to use an IPv6 NFS root? Do you see any problems with including IPv6 support by default?
In most cases it might also be sensible to instead load IPv6 by default on the relevant distributions, mostly Raspbian. That requires additional work, though. Given how ubiquitous IPv6 is going to be, including it into the kernel image makes perfect sense in my opinion.
The vast majority of Raspberry Pis attached to a local area network will be at the beck and call of a SOHO (small office/home office) router or crapware router that comes with your internet subscriber package.
We're about 10 years away from these sorts of devices properly implementing native IPv6 on their LAN interfaces. Once they do have some sane IPv6 support, how long is it going to be before the old, perfectly functional router is thrown out?
As an example, when loaded on 3.12 the ip6 module consumes:
ipv6 308648 9 ip6_tunnel
300k of ram, thereabouts. The tunneling module adds about 20k.
This is more than all the other modules currently loaded on my Pi combined.
We're about 10 years away from these sorts of devices properly implementing native IPv6 on their LAN interfaces.
This is simply ignoring reality. Many CPEs have had IPv6 support for a couple of years, and many ISPs are already handing out IPv6 prefixes to those. Some ISPs are actually doing CGN or DualStack Lite, due to lack of IPv4 address space. That is, they don't really give customers proper globally routable IPv4 addresses anymore, and require IPv6 for full end-to-end connectivity.
IPv6 will soon become much more important, simply because of necessity. All major address registries have exhausted their address pools.
Furthermore, link-local IPv6 alone can already be quite useful, as it gives the Pi a static local address, that will never change. I have used link-local IPv6 since the very beginning to communicate with Raspberry Pis in my personal networks.
This is more than all the other modules currently loaded on my Pi combined.
Yet it's a drop in a bucket compared to the total amount of memory available.
I've changed ISPs (in the UK, between two major wholesalers) twice in the last 3 years, each time I've gotten a crapware router. Neither has supported IPv6 on the LAN side in any capacity.
Also, the majority UK provider's offering does not support IPv6:
IPv6 uses additional RAM and is not something the majority of users will ever need, therefore there's no point compiling the module into the default distribution.
Feel free to roll your own kernel should you require otherwise. There are plenty guides around on how to do that.
Sorry, but your arguments don't make sense. The Raspberry Pi doesn't only target the UK, and your personal experience doesn't really matter a whole lot. The fact is that IPv6 has non-trivial rollouts in various countries with various carriers [1]. To give you some numbers, in the US and Germany about 8% of end users have IPv6 connectivity. And it shouldn't nearly take 10 years for that move forward. Of course, if people and projects keep on holding back adoption on purpose, it will take an infinite number of years.
The Raspi is a memory limited system in some ways - using up 300k when the majority of users will not be using V6 seems daft. Keeping it as a loadable module means that only those people who have IPv6 need to use that 300k. And since by your own numbers, only 8% of people are using IPv6, that means 92% of people would be throwing away 300k of memory.
What's wrong with that?
If and when IPv6 becomes more commonplace - I'd say 50% penetration to be democratic - it can then be built in because more people would benefit than suffer.
And in the UK, I've yet to use any sort of IPv6...so P33M is not alone...
Okay, if you really think the 300 KB are an issue, maybe the module can be loaded by default on Raspbian, at least? People that have memory-sensitive use cases could simply remove the module from /etc/modules, and save about 0.05% of memory.
I'm not really sure if there is a proper place to request this. According to [1] the lack of IPv6 actually causes problems with various packages, but one of the Raspbian devs said the Foundation are making their own images.
If and when IPv6 becomes more commonplace - I'd say 50% penetration to be democratic - it can then be built in because more people would benefit than suffer.
This is exactly the backwards attitude that caused slow IPv6 adoption. As much as I hate this saying, you are "part of the problem"...
I cannot even begin to fathom the ignorance in this bug report as demonstrated by the owner.
You are second-guessing a technical decision already decided on by the developers of every single other major OS out there, including all major Linux distros, Windows, and OS X who have all decided that IPv6 is necessary, and therefore enabled by default.
I understand that the Raspberry Pi has special requirements, but to second-guess IPv6 on this basis demonstrates arrogance that flies in the face of sanity.
IPv6 is a chicken-and-egg problem. By not enabling it, you are part of the problem. I demand that you enable IPv6 immediately.
Clearly RPi has two main target markets - educational and embedded. In both cases, I can't imagine why IPv6 support would be optional. Schools and universities have some of the biggest takeup of IPv6 on the LAN, mainly in order to provide scalable multi-campus deployment that allows more direct interaction with the rest of the Internet, rather than via proxies, and NATs, and so on. In the embedded space, if you are looking at deploying thousands or more devices to participate in the Internet of Things, you would be crazy to not be owning your own address space no matter where you deploy, driving you towards IPv6. Crazy and muddle-headed to not have IPv6 in the standard build.
As for [1] above we shouldn't be adding it because other software packages have bugs, they should fix their bugs!
Well, I don't believe Debian consider these issues bugs, because they ship with IPv6 enabled by default. As you should be today, RFC6540 [1] mandates that all new IP nodes must support IPv6.
And again, I still can't understand why these 300 KB of memory should matter. It's only 0.1% of 256 MB or 0.05% of 512 MB RAM. There is a lot more bloat going on in the userspace by default (lots of gettys, thd, etc.). The Raspberry Pi really isn't THAT resource constrained. And again, I think the module is mostly fine as long as it is automatically loaded. It's simply really suboptimal at the moment. Especially for headless Pis it's bad, they won't have connectivity over IPv6 by default, while IPv6 is incredibly useful for the "first contact" due to the always available link-local addresses.
@jeremyvisser I know that some people have a passion for IPv6 (me included), but I think you should be a bit more polite and level-headed here.
I use IPv6 at home. I'm not alone. There are more of us than you think or expect.
To exclude this on the basis of 300kb I believe is short sighted. RPi should be seen as solving problems, not being part of the problem.
IPv6 support should be in as a default. No need to argue about this. Doing it correctly paves the way for very interesting use cases. Denying it as a default will deny innovation in networking possibilities.
IPv6 is available as a module. In Raspbian if you comment out or delete
/etc/modprobe.d/ipv6.conf then IPv6 comes up at system start. ifupdown
gives interfaces IPv6 addresses at the same time as all of the other
protocols. All of the packages have been compiled with IPv6 present, so
Apache, SSH and so on are ready to work with IPv6 as-is.
I quite successfully run a website, DNS master, SMTP mailer and IMAP spool
running IPv4 and IPv6 from a SLAAC subnet on a stock kernel Raspberry Pi
using Raspbian with no recompiled packages; namely http://www.gdt.id.au/. I also run a ADSL gateway on a Raspberry Pi with
IPv6, again with stock Raspbian and kernel. This is documented at http://vk5tu.livejournal.com/37206.html.
The request was to compile IPv6 into the kernel. That is, that it be
available during very early boot. It's difficult to think of scenarios
where that is useful to an RPi user.
I don't really take NFS root seriously on the RPi. The RPi lacks PXE on
boot, so a lot of the systems administration advantages of running NFS
root are already missing. In any case, NFS root is more of an argument for
port of a bootloader which will allow a initramfs and thus allow any
module to be accessed during early boot; for example, what if you want to
use a USB/WiFi dongle for that NFS root?
Although I agree that IPv6 should be on by default, that's not a kernel
issue, that's an issue for Raspbian.
Claims of ignorance, arrogance, etc seem to me to be excessive in light of
the limited additional IPv6 functionality being requested.
Thanks Glen for your most reasonable response. Just to clarify the "issue for Raspbian" part. Not loading the ipv6 module by default is a Foundation decision rather than one made by the upstream Raspbian developers, which is one reason why the debate is going on here.
@DAFlippers there is no reason to believe that enabling IPv6 by default will cause any problems, though. It is not some immature or new tech, and enabled by default and all consumer OSs.
Still, adding a toggle to raspi-config is good, as it will raise some awareness about IPv6.
The request was to compile IPv6 into the kernel. That is, that it be available during very early boot. It's difficult to think of scenarios where that is useful to an RPi user.
Well, that was just an example, but I think there are some NFS root users (I used it myself for SD card compatibility testing). The primary reason why I'd like to see IPv6 enabled is simply because there is no particular reason to not have it, in this day and age. Ignoring IPv6 will stiffle adoption, and it's already too slow.
Some service providers will only see the light when they ask their LIR/RIR for IPv4 address space and finally get a "no" back. End users are already suffering from address shortage on a large scale, though. There are Carrier-Grade NAT rollouts everywhere. Also in Britain.
I agree, I was thinking of asking Alex to add the IPV6 enabling to
raspi-config
That would be good. Turning it on is easy (change
/etc/modprobe.d/ipv6.conf and modprobe ipv6), turning it off needs a
reboot because a stack of other modules will be holding IPv6 resources
(change /etc/modprobe.conf/ipv6.conf, reboot). In any case the reboot
stops people getting into strife trying to turn off IPv6 from a IPv6-using
ssh session :-)
It would be worth mentioning in the help screen that the interface is
activated for native IPv6 networking, obtaining addressing using stateless
addressing. Further command-line work is needed to set up stateful
addressing, an IP tunnel to a IPv6 provider or PPP to a IPv6-native ADSL
ISP.
On a separate note, seriously IPV6 300kb... Doesn't anyone else think
this is a bit heavyweight...
I once wrote an IPV4 layer for a transputer and it was a couple of kb!
IPv6 is slightly more complex than IPv4. Consider that it includes the
address allocation which IPv6 pushes to user-space. But IPv4 and IPv6
aren't too far apart in LOC.
What's changed since the Transputer is the nature of the network. I'm sure
your implementation was perfect, but I'm also also sure that it didn't do
data structures for a routing table of half a million routes, or to be
able to sustain some tens of thousands of concurrent connections, or to
provide exactly the same resource use whatever the route used, or to
rate-limit ICMP responses. Unfortunately the nature of the modern Internet
means that if you don't do these things then some mongrel will simply
exploit whatever implementation shortcut you took. Look upon it as "a
couple of kb" of code, 98kb of feature creep, and 200kb of hard-earned
lessions about the ways software can be abused.
Just to clarify the "issue for Raspbian" part. Not loading the ipv6
module by default is a Foundation decision rather than one made by the
upstream Raspbian developers, which is one reason why the debate is
going on here.
Thanks Alex, so that's what I had missed. My apologies.
My $0.02 is to turn it on by default for two reasons, one practical, one
philospohical.
Practical: The eth0 interface will come up with a link-local address upon
boot. The MAC address is printed on the box, so a simple algorithm (hidden
behind a web page if you want) can convert that MAC address and the user's
own link-local address into the address which they can use to ssh to their
new RPi. This makes getting started with a headless pi much simpler. Note
carefully that IPv6 link local addresses exist even where there is no
global IPv6 service (on the so-called "IPv4 only network" you have at
home).
Philospohical: The RPi is about teaching programming. IPv6 is the future
of networking. I know that penetration in the UK is low, but for Comcast
IPv6 is 50% of their traffic. Services from Google, Facebook, etc offer
both IPv6 and IPv6. Understanding IPv6 is pretty much required for network
programming.
Having said that, I'd make it very easy to turn off (ie, raspi-config).
I would also make it very prominent in the release notes. Reminding people
that in this release that if they have configured iptables to limit access
then they must also configure ip6tables in a similar fashion. I'd even put
a "deny all" ip6tables configuration into the release notes for people to
cut-and-paste. Mention that they must configure the firewall even if they
are on a IPv4 network (because they'll still get a IPv6 link-local
address).
Aside: I'd also like to point out the usefulness of IPv6 for embedded
systems. Those systems struggle with how to automatically and securely
find and connect with neighbours, such as controllers and user interface
units. IPv6 link local, zeroconf's mDNS SRV records, HTTPS with a
certificate-controlled access, and REST gives a reliable, secure and
easily programmed approach. Using standards building blocks allows simple
extension of the system into the wide area or interfacing with customer's
own systems.
As for a Certain Employer: do encourage them to get IPv6 on their network.
We recently bought new switches and management via IPv6 was mandatory as
we're not going to waste perfectly good IPv4 addresses on the interior of
our network when we could be using them for customer access (or at other
ISPs: assigning them to customers and getting revenue). At NANOG the vibe
was very much that IPv4 enterprise addressing doesn't scale for large
switch purchasers such as ISPs and cloud providers (as too many people
want to use network 10 -- the customers, the network, the VMs in the
servers -- and the result is unmanageable). This does have a pushback into
hardware design (eg, a fixed TCAM split for each address family gets
annoying enough that we ask vendors about their TCAM entry allocation
technique).
I've now wandered well from the topic, thanks for your tolerance, glen
@grigorig I realise it is not likely to cause issues but the possibility cannot be ruled out. Demanding something immediately raises barriers however offering help is more likely to achieve the ultimate goal.
More grist for the mill. From http://www.theregister.co.uk/2014/04/24/ipv6_iot/ - "Yes, within the existing IPv4 infrastructure you can do things such as network address translation (NAT), but in terms of scalability and sustainability and actually being able to support the capability we're talking about – some 50 billion devices by the year 2020 – that's going to be really difficult to do on a IPv4 environment.
I think the adoption of IPv6 will be key. The ability for the UK in particular to start to more heavily deploy it at a consumer level is also important."
It should also be noted that the size of private address ranges from RFC 1918 are too small for some companies already. In addition, because there are so few ranges, collisions are common. So it does indeed make sense to also use IPv6 for private networks and smaller local area home networks.
Some time has passed and IPv6 support is even more important now. Many more ISPs provide native IPv6 (for instance, there's about 14% IPv6 rolled out in US and DE) and the IPv4 shortage is quite a problem. So, how about enabling it by default now?
@DAFlippers I'm not demanding IPv6 support, I'm asking for it and I try to prove with data why it's necessary and useful. Maybe some people are not that constructive, but it's easy to get emotional at some point if people so often just refuse to listen. Especially if you're passionate about this.
Agreed, and in fact, by that standard, there are large parts of the kernel that need to be made modular. Linux is not a pure modular kernel, period, and there is no way to make it such. If you want something like that, you need to be looking at a micro-kernel system like MINIX3 (which sadly does not run on the Pi (although it does run on the BeagleBone)).
Now, as to the issue of building IPv6 into the kernel, I'm not hugely sympathetic at this point. The Foundation obviously isn't going to do it unless something seriously changes, and it's not hard to build a kernel locally if you need it built in (and most people really don't (the only reason that I know of that you actually need it built in for is root on NFS without an initrd)). Yes, building a kernel takes a long time on a Pi, but that doesn't mean it's hard, that just means it takes time (and if you really want to complain about how long it takes, I would love to point out that I have an almost 20-year old PA-RISC system that a kernel build takes between 48 and 72 hours on, and know people with similarly old SPARCstations that take between 24 and 36, so I'm not all that sympathetic to people complaining about 8 hour kernel builds on a Pi).
Activity
grigorig commentedon May 29, 2014
It's hard to follow without any arguments. How are you (e.g.) going to use an IPv6 NFS root? Do you see any problems with including IPv6 support by default?
In most cases it might also be sensible to instead load IPv6 by default on the relevant distributions, mostly Raspbian. That requires additional work, though. Given how ubiquitous IPv6 is going to be, including it into the kernel image makes perfect sense in my opinion.
P33M commentedon May 29, 2014
The vast majority of Raspberry Pis attached to a local area network will be at the beck and call of a SOHO (small office/home office) router or crapware router that comes with your internet subscriber package.
We're about 10 years away from these sorts of devices properly implementing native IPv6 on their LAN interfaces. Once they do have some sane IPv6 support, how long is it going to be before the old, perfectly functional router is thrown out?
As an example, when loaded on 3.12 the ip6 module consumes:
300k of ram, thereabouts. The tunneling module adds about 20k.
This is more than all the other modules currently loaded on my Pi combined.
grigorig commentedon May 29, 2014
This is simply ignoring reality. Many CPEs have had IPv6 support for a couple of years, and many ISPs are already handing out IPv6 prefixes to those. Some ISPs are actually doing CGN or DualStack Lite, due to lack of IPv4 address space. That is, they don't really give customers proper globally routable IPv4 addresses anymore, and require IPv6 for full end-to-end connectivity.
IPv6 will soon become much more important, simply because of necessity. All major address registries have exhausted their address pools.
Furthermore, link-local IPv6 alone can already be quite useful, as it gives the Pi a static local address, that will never change. I have used link-local IPv6 since the very beginning to communicate with Raspberry Pis in my personal networks.
Yet it's a drop in a bucket compared to the total amount of memory available.
P33M commentedon May 29, 2014
I've changed ISPs (in the UK, between two major wholesalers) twice in the last 3 years, each time I've gotten a crapware router. Neither has supported IPv6 on the LAN side in any capacity.
Also, the majority UK provider's offering does not support IPv6:
http://www.neilturner.me.uk/2013/07/18/bt-home-hub-4-review.html
IPv6 uses additional RAM and is not something the majority of users will ever need, therefore there's no point compiling the module into the default distribution.
Feel free to roll your own kernel should you require otherwise. There are plenty guides around on how to do that.
grigorig commentedon May 29, 2014
Sorry, but your arguments don't make sense. The Raspberry Pi doesn't only target the UK, and your personal experience doesn't really matter a whole lot. The fact is that IPv6 has non-trivial rollouts in various countries with various carriers [1]. To give you some numbers, in the US and Germany about 8% of end users have IPv6 connectivity. And it shouldn't nearly take 10 years for that move forward. Of course, if people and projects keep on holding back adoption on purpose, it will take an infinite number of years.
[1] https://www.google.com/intl/en/ipv6/statistics.html
JamesH65 commentedon May 30, 2014
The Raspi is a memory limited system in some ways - using up 300k when the majority of users will not be using V6 seems daft. Keeping it as a loadable module means that only those people who have IPv6 need to use that 300k. And since by your own numbers, only 8% of people are using IPv6, that means 92% of people would be throwing away 300k of memory.
What's wrong with that?
If and when IPv6 becomes more commonplace - I'd say 50% penetration to be democratic - it can then be built in because more people would benefit than suffer.
And in the UK, I've yet to use any sort of IPv6...so P33M is not alone...
grigorig commentedon May 30, 2014
Okay, if you really think the 300 KB are an issue, maybe the module can be loaded by default on Raspbian, at least? People that have memory-sensitive use cases could simply remove the module from /etc/modules, and save about 0.05% of memory.
I'm not really sure if there is a proper place to request this. According to [1] the lack of IPv6 actually causes problems with various packages, but one of the Raspbian devs said the Foundation are making their own images.
This is exactly the backwards attitude that caused slow IPv6 adoption. As much as I hate this saying, you are "part of the problem"...
[1] https://bugs.launchpad.net/raspbian/+bug/1216624
ghollingworth commentedon May 30, 2014
If the call for this is greater then we may look at it but currently it just requires people modprobe the module...
Otherwise 300KBytes is a huge size for functionality that isn't going to be used for >90% of people.
Unless you can find a module to remove that uses more than this to compensate?
As for [1] above we shouldn't be adding it because other software packages have bugs, they should fix their bugs!
Gordon
jeremyvisser commentedon May 31, 2014
I cannot even begin to fathom the ignorance in this bug report as demonstrated by the owner.
You are second-guessing a technical decision already decided on by the developers of every single other major OS out there, including all major Linux distros, Windows, and OS X who have all decided that IPv6 is necessary, and therefore enabled by default.
I understand that the Raspberry Pi has special requirements, but to second-guess IPv6 on this basis demonstrates arrogance that flies in the face of sanity.
IPv6 is a chicken-and-egg problem. By not enabling it, you are part of the problem. I demand that you enable IPv6 immediately.
martyvis commentedon May 31, 2014
Clearly RPi has two main target markets - educational and embedded. In both cases, I can't imagine why IPv6 support would be optional. Schools and universities have some of the biggest takeup of IPv6 on the LAN, mainly in order to provide scalable multi-campus deployment that allows more direct interaction with the rest of the Internet, rather than via proxies, and NATs, and so on. In the embedded space, if you are looking at deploying thousands or more devices to participate in the Internet of Things, you would be crazy to not be owning your own address space no matter where you deploy, driving you towards IPv6. Crazy and muddle-headed to not have IPv6 in the standard build.
grigorig commentedon May 31, 2014
@ghollingworth
Well, I don't believe Debian consider these issues bugs, because they ship with IPv6 enabled by default. As you should be today, RFC6540 [1] mandates that all new IP nodes must support IPv6.
And again, I still can't understand why these 300 KB of memory should matter. It's only 0.1% of 256 MB or 0.05% of 512 MB RAM. There is a lot more bloat going on in the userspace by default (lots of gettys, thd, etc.). The Raspberry Pi really isn't THAT resource constrained. And again, I think the module is mostly fine as long as it is automatically loaded. It's simply really suboptimal at the moment. Especially for headless Pis it's bad, they won't have connectivity over IPv6 by default, while IPv6 is incredibly useful for the "first contact" due to the always available link-local addresses.
@jeremyvisser I know that some people have a passion for IPv6 (me included), but I think you should be a bit more polite and level-headed here.
[1] https://www.rfc-editor.org/rfc/rfc6540.txt
duncaninnes commentedon May 31, 2014
I use IPv6 at home. I'm not alone. There are more of us than you think or expect.
To exclude this on the basis of 300kb I believe is short sighted. RPi should be seen as solving problems, not being part of the problem.
harishpillay commentedon May 31, 2014
IPv6 support should be in as a default. No need to argue about this. Doing it correctly paves the way for very interesting use cases. Denying it as a default will deny innovation in networking possibilities.
23 remaining items
ghollingworth commentedon Jun 4, 2014
It's easier if I just delete his comments... People who can't discuss issues without being passive aggressive don't get to have an opinion
vk5tu commentedon Jun 4, 2014
Hello folks,
Have a I missed an important point here?
IPv6 is available as a module. In Raspbian if you comment out or delete
/etc/modprobe.d/ipv6.conf then IPv6 comes up at system start. ifupdown
gives interfaces IPv6 addresses at the same time as all of the other
protocols. All of the packages have been compiled with IPv6 present, so
Apache, SSH and so on are ready to work with IPv6 as-is.
I quite successfully run a website, DNS master, SMTP mailer and IMAP spool
running IPv4 and IPv6 from a SLAAC subnet on a stock kernel Raspberry Pi
using Raspbian with no recompiled packages; namely
http://www.gdt.id.au/. I also run a ADSL gateway on a Raspberry Pi with
IPv6, again with stock Raspbian and kernel. This is documented at
http://vk5tu.livejournal.com/37206.html.
The request was to compile IPv6 into the kernel. That is, that it be
available during very early boot. It's difficult to think of scenarios
where that is useful to an RPi user.
I don't really take NFS root seriously on the RPi. The RPi lacks PXE on
boot, so a lot of the systems administration advantages of running NFS
root are already missing. In any case, NFS root is more of an argument for
port of a bootloader which will allow a initramfs and thus allow any
module to be accessed during early boot; for example, what if you want to
use a USB/WiFi dongle for that NFS root?
Although I agree that IPv6 should be on by default, that's not a kernel
issue, that's an issue for Raspbian.
Claims of ignorance, arrogance, etc seem to me to be excessive in light of
the limited additional IPv6 functionality being requested.
Best wishes to all, glen
Glen Turner http://www.gdt.id.au/~gdt/
asb commentedon Jun 4, 2014
Thanks Glen for your most reasonable response. Just to clarify the "issue for Raspbian" part. Not loading the ipv6 module by default is a Foundation decision rather than one made by the upstream Raspbian developers, which is one reason why the debate is going on here.
grigorig commentedon Jun 4, 2014
@DAFlippers there is no reason to believe that enabling IPv6 by default will cause any problems, though. It is not some immature or new tech, and enabled by default and all consumer OSs.
Still, adding a toggle to raspi-config is good, as it will raise some awareness about IPv6.
@vk5tu
Well, that was just an example, but I think there are some NFS root users (I used it myself for SD card compatibility testing). The primary reason why I'd like to see IPv6 enabled is simply because there is no particular reason to not have it, in this day and age. Ignoring IPv6 will stiffle adoption, and it's already too slow.
Some service providers will only see the light when they ask their LIR/RIR for IPv4 address space and finally get a "no" back. End users are already suffering from address shortage on a large scale, though. There are Carrier-Grade NAT rollouts everywhere. Also in Britain.
vk5tu commentedon Jun 4, 2014
That would be good. Turning it on is easy (change
/etc/modprobe.d/ipv6.conf and modprobe ipv6), turning it off needs a
reboot because a stack of other modules will be holding IPv6 resources
(change /etc/modprobe.conf/ipv6.conf, reboot). In any case the reboot
stops people getting into strife trying to turn off IPv6 from a IPv6-using
ssh session :-)
It would be worth mentioning in the help screen that the interface is
activated for native IPv6 networking, obtaining addressing using stateless
addressing. Further command-line work is needed to set up stateful
addressing, an IP tunnel to a IPv6 provider or PPP to a IPv6-native ADSL
ISP.
IPv6 is slightly more complex than IPv4. Consider that it includes the
address allocation which IPv6 pushes to user-space. But IPv4 and IPv6
aren't too far apart in LOC.
What's changed since the Transputer is the nature of the network. I'm sure
your implementation was perfect, but I'm also also sure that it didn't do
data structures for a routing table of half a million routes, or to be
able to sustain some tens of thousands of concurrent connections, or to
provide exactly the same resource use whatever the route used, or to
rate-limit ICMP responses. Unfortunately the nature of the modern Internet
means that if you don't do these things then some mongrel will simply
exploit whatever implementation shortcut you took. Look upon it as "a
couple of kb" of code, 98kb of feature creep, and 200kb of hard-earned
lessions about the ways software can be abused.
Cheers, glen
Glen Turner http://www.gdt.id.au/~gdt/
vk5tu commentedon Jun 4, 2014
Thanks Alex, so that's what I had missed. My apologies.
My $0.02 is to turn it on by default for two reasons, one practical, one
philospohical.
Practical: The eth0 interface will come up with a link-local address upon
boot. The MAC address is printed on the box, so a simple algorithm (hidden
behind a web page if you want) can convert that MAC address and the user's
own link-local address into the address which they can use to ssh to their
new RPi. This makes getting started with a headless pi much simpler. Note
carefully that IPv6 link local addresses exist even where there is no
global IPv6 service (on the so-called "IPv4 only network" you have at
home).
Philospohical: The RPi is about teaching programming. IPv6 is the future
of networking. I know that penetration in the UK is low, but for Comcast
IPv6 is 50% of their traffic. Services from Google, Facebook, etc offer
both IPv6 and IPv6. Understanding IPv6 is pretty much required for network
programming.
Having said that, I'd make it very easy to turn off (ie, raspi-config).
I would also make it very prominent in the release notes. Reminding people
that in this release that if they have configured iptables to limit access
then they must also configure ip6tables in a similar fashion. I'd even put
a "deny all" ip6tables configuration into the release notes for people to
cut-and-paste. Mention that they must configure the firewall even if they
are on a IPv4 network (because they'll still get a IPv6 link-local
address).
Aside: I'd also like to point out the usefulness of IPv6 for embedded
systems. Those systems struggle with how to automatically and securely
find and connect with neighbours, such as controllers and user interface
units. IPv6 link local, zeroconf's mDNS SRV records, HTTPS with a
certificate-controlled access, and REST gives a reliable, secure and
easily programmed approach. Using standards building blocks allows simple
extension of the system into the wide area or interfacing with customer's
own systems.
As for a Certain Employer: do encourage them to get IPv6 on their network.
We recently bought new switches and management via IPv6 was mandatory as
we're not going to waste perfectly good IPv4 addresses on the interior of
our network when we could be using them for customer access (or at other
ISPs: assigning them to customers and getting revenue). At NANOG the vibe
was very much that IPv4 enterprise addressing doesn't scale for large
switch purchasers such as ISPs and cloud providers (as too many people
want to use network 10 -- the customers, the network, the VMs in the
servers -- and the result is unmanageable). This does have a pushback into
hardware design (eg, a fixed TCAM split for each address family gets
annoying enough that we ask vendors about their TCAM entry allocation
technique).
I've now wandered well from the topic, thanks for your tolerance, glen
Glen Turner http://www.gdt.id.au/~gdt/
DAFlippers commentedon Jun 4, 2014
@grigorig I realise it is not likely to cause issues but the possibility cannot be ruled out. Demanding something immediately raises barriers however offering help is more likely to achieve the ultimate goal.
David
martyvis commentedon Jun 4, 2014
More grist for the mill. From http://www.theregister.co.uk/2014/04/24/ipv6_iot/ - "Yes, within the existing IPv4 infrastructure you can do things such as network address translation (NAT), but in terms of scalability and sustainability and actually being able to support the capability we're talking about – some 50 billion devices by the year 2020 – that's going to be really difficult to do on a IPv4 environment.
I think the adoption of IPv6 will be key. The ability for the UK in particular to start to more heavily deploy it at a consumer level is also important."
grigorig commentedon Jun 15, 2014
It should also be noted that the size of private address ranges from RFC 1918 are too small for some companies already. In addition, because there are so few ranges, collisions are common. So it does indeed make sense to also use IPv6 for private networks and smaller local area home networks.
grigorig commentedon Feb 10, 2015
Some time has passed and IPv6 support is even more important now. Many more ISPs provide native IPv6 (for instance, there's about 14% IPv6 rolled out in US and DE) and the IPv4 shortage is quite a problem. So, how about enabling it by default now?
@DAFlippers I'm not demanding IPv6 support, I'm asking for it and I try to prove with data why it's necessary and useful. Maybe some people are not that constructive, but it's easy to get emotional at some point if people so often just refuse to listen. Especially if you're passionate about this.
pete-mb commentedon Mar 10, 2016
I have rolled out IPv6 on the internal office LAN inside Raspberry Pi. Their hosting LAN is already IPv6 only (no IPv4, no RFC1918) c.f. http://blog.mythic-beasts.com/2016/03/09/rebuilding-raspberry-pi/, and some (currently fun only e.g. http://stats.pi3.raspberrypi.org/) internal bits and pieces are only available on IPv6 networks. As of March 2016, 9% of traffic to their site is IPv6.
grigorig commentedon Mar 15, 2016
By that standard, the standard kernel configuration already is quite bloated for most use cases. Just saying...
Ferroin commentedon Mar 15, 2016
Agreed, and in fact, by that standard, there are large parts of the kernel that need to be made modular. Linux is not a pure modular kernel, period, and there is no way to make it such. If you want something like that, you need to be looking at a micro-kernel system like MINIX3 (which sadly does not run on the Pi (although it does run on the BeagleBone)).
Now, as to the issue of building IPv6 into the kernel, I'm not hugely sympathetic at this point. The Foundation obviously isn't going to do it unless something seriously changes, and it's not hard to build a kernel locally if you need it built in (and most people really don't (the only reason that I know of that you actually need it built in for is root on NFS without an initrd)). Yes, building a kernel takes a long time on a Pi, but that doesn't mean it's hard, that just means it takes time (and if you really want to complain about how long it takes, I would love to point out that I have an almost 20-year old PA-RISC system that a kernel build takes between 48 and 72 hours on, and know people with similarly old SPARCstations that take between 24 and 36, so I'm not all that sympathetic to people complaining about 8 hour kernel builds on a Pi).
rust: file: Add `FileFlags` type for `File` flags