On 5/16/14 21:33 , Lloyd Parkes via smartos-discuss wrote: > On 17 May 2014 14:13, Robert Mustacchi <[email protected]> wrote: > >> On 5/16/14 19:07 , Lloyd Parkes via smartos-discuss wrote: >>> Hi all, >>> I spent several minutes looking for a doco on reporting bugs in the Wiki >>> but didn't come up with anything (and neither did Google), so here it is. >> >> We'll try and go through and add some language to the wiki, but you can >> file bugs at https://github.com/joyent/smartos-live > > > I had avoided Github because I once tried submitting a patch to you folks > and was told that I can't do that through github. Of course, bug reports > are not the same as patches. > > >>> Sometime since the builds of late 2013 the default IPv6 prefix length has >>> stopped being 64. In fact, it now appears to rather unreliable. >>> >>> The default IPv6 prefix length always seems to be 6 when I manually add >> an >>> address to an interface, but it seems to be 10 when a link-local address >> is >>> automatically assigned. In both cases, the prefix length should be 64. >> Note >>> that while link-local addresses are assigned from network block with a >>> prefix length of 10, link-local addresses are require to have 54 zero >> bits >>> after that prefix giving them the effective prefix length of 64. >> >> Can you describe how you're assigning those addresses and the VM >> configuration in question? Is this a SmartOS zone, a KVM instance, >> something else? >> > > I'm old-school, so it's none of the above. I'm running ifconfig in the > global zone. On the old system I could run > > ifconfig e1000g0 inet6 plumb up > ifconfig e1000g0 inet6 addif 2002:cb61:d534:3:21d:7dff:fe08:1111 > > Testing this is a bit tricky because the I only have one SmartOS server > which is my iSCSI target and I had an iSCSI configuration problem that > makes (made?) rebooting it a bad idea. > > I've built a bunch of VMs including one from the old SmartOS USB drive I > was using on my SmartOS server and I've tested them all. > > The SmartOS image from 20131212 also has a default prefix length of 6 and > so it has the bug too. I have no idea why my system used to work.
Hey Lloyd, I have an update on this, thanks to the work of Dan McDonald. What you're seeing here is a bug that's specific to the use of the addif function in ifconfig. Specifically it's not properly recording the netmask and it even does the same for IPv4 resulting in a /6 prefix. As an alternative you can set the IP address using other forms of ifconfig or ipadm. Again, based on Dan, something like this should work: ifconfig e1000g0:2 plumb inet6 <addr> up Thanks again for bringing this to our attention and thanks to Dan for digging into this. Robert ------------------------------------------- smartos-discuss Archives: https://www.listbox.com/member/archive/184463/=now RSS Feed: https://www.listbox.com/member/archive/rss/184463/25769125-55cfbc00 Modify Your Subscription: https://www.listbox.com/member/?member_id=25769125&id_secret=25769125-7688e9fb Powered by Listbox: http://www.listbox.com
