Project

General

Profile

Bug #40468

Add rtsold support to iocage for IPv6 auto-configuration

Added by Peter Brille about 2 years ago. Updated almost 2 years ago.

Status:
Done
Priority:
No priority
Assignee:
Brandon Schneider
Category:
Middleware
Target version:
Seen in:
Severity:
Med High
Reason for Closing:
Reason for Blocked:
Needs QA:
No
Needs Doc:
No
Needs Merging:
No
Needs Automation:
No
Support Suite Ticket:
n/a
Hardware Configuration:
ChangeLog Required:
No

Description

Hi,

even in 11.2-Beta2 I cannot get IPv6 to run with my jails. That has been working with warden fine on the same hardware and I think it also should work in iocage.
I tried to set an IPv6 manually via

iocage set ip6_addr="epair0b|2a00::1/64" defaultrouter6="2a00::10" myjail

and I also tried
iocage set ip6_addr="epair0b|accept_rtadv" myjail

I even started the rtsold within the jail afterwards but nothing worked. I can see Router Advertisement packages arriving on the jails vnet interface within the jail (tcpdump) but at no time I can see an IPv6 address at the jail's network interface.

Since this is a very basic requirement I set this is high priority.

This is what the jails network looks like:

epair0b: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
    options=8<VLAN_MTU>
    ether 02:ff:60:4a:8a:3d
    hwaddr 02:57:d0:00:0c:0b
    inet 10.11.113.167 netmask 0xffffff00 broadcast 10.10.101.255 
    nd6 options=1<PERFORMNUD>
    media: Ethernet 10Gbase-T (10Gbase-T <full-duplex>)
    status: active
    groups: epair


Related issues

Related to FreeNAS - Bug #48482: Add IPv6 Autoconfigure checkbox for jails to new UIDone

History

#1 Updated by Dru Lavigne about 2 years ago

  • Private changed from No to Yes

Peter: please attach a debug (System -> Advanced -> Save debug) to this ticket to help the dev pinpoint the cause.

#2 Updated by Peter Brille about 2 years ago

  • File debug.tgz added

here's the debug file as requested.

#3 Updated by Dru Lavigne about 2 years ago

  • Category changed from Services to Middleware
  • Assignee changed from Release Council to William Grzybowski

#5 Updated by William Grzybowski about 2 years ago

  • Assignee changed from William Grzybowski to Brandon Schneider
  • Target version changed from Backlog to 11.2-BETA3
  • Severity changed from High to Med High

Brandon, can you verify if its a config issue? If not how much work that would be? Depending on the answer we can punt it to 11.2-U1.

#6 Updated by Brandon Schneider about 2 years ago

  • Status changed from Unscreened to Blocked
  • Reason for Blocked set to Need verification

It should be vnet0 not epair0b. So do:

iocage set ip6_addr="vnet0|2a00::1/64" defaultrouter6="2a00::10" myjail

And make sure your host interface and the jails interface is on bridge0 with ifconfig.

#7 Updated by Peter Brille about 2 years ago

I found out what the problems are:

1) You cannot set dhcp=on and then also use a static ipv6 address. The result will be the jail has no ipv6 address at all. Static IPv6 address only works if the IPv4 address also is static.... wtf ???
2) Router Advertisemnt works under no circumstances. No matter if I set IPv4 to static, to dhcp or to none. I'll never get automatically an IPv6 address.

The only way I get IPv6 running is to set a static IPv4 address and also static IPv6 address. Both I don't want to do. In my case I would want DHCP for IPv4 and Router Advertisement for IPv6. I fear this is not working at all.

#8 Updated by Brandon Schneider about 2 years ago

Peter: Setting ipv4 to none should allow ipv6 to function. accept_rtadv should have worked also, can you paste your jails rc.conf?

#9 Updated by Brandon Schneider about 2 years ago

  • Target version changed from 11.2-BETA3 to 11.2-RC1

Punting as user hasn't supplied debug, iocage gained a new debug mode which should help with this in BETA3.

#10 Updated by Brandon Schneider about 2 years ago

  • Reason for Blocked changed from Need verification to Need additional information from Author

#11 Updated by Peter Brille about 2 years ago

When I set everything manually IPv4 as well as IPv6 works just fine.
The moment I set ip4_addr to DHCP, IPv6 doesn't work at all.
Automatic IPv6 configuration does not work in any case (accept_rtadv).
The most common configuration will be to use dhcp and router advertisements. This type of configuration is not working though.

I'm sorry but I'm confused. Is iocage bugtracker now on redmine or on github? I once read that ixsystems forked iocage? Why is that? I don't believe this is a good idea. If it's been forked how do bugfixes find their way into the opposite repository?

#12 Updated by Brandon Schneider about 2 years ago

When BETA3 comes out, please post a new debug as iocage has a debug mode that has been integrated that can help determine the issue.

As for the bugs, iocage bugs should be in it's bug tracker, and freenas implementation issues should be filed here.

So technically this bug should head over there, but not a big deal.

There isn't a fork :) just separating repos for our internal tagging. I'm the same guy doing development in both. So don't worry.

#13 Updated by Dru Lavigne about 2 years ago

Peter: have you had a chance to upgrade to BETA3 yet? If so, can you please attach a new debug?

#14 Updated by Brandon Schneider about 2 years ago

  • Target version changed from 11.2-RC1 to 11.3

Booting as the freeze is looming and this isn't seeing traction.

#15 Updated by Brandon Schneider about 2 years ago

  • Status changed from Blocked to In Progress
  • Target version changed from 11.3 to 11.2-RC1
  • Reason for Blocked deleted (Need additional information from Author)

PR: https://github.com/freenas/iocage/pull/42

While one of the reported issues (static IPv6 address) cannot be reproduced, iocage has grown more mature rtsold support. `iocage set ip6_addr="vnet0|accept_rtadv" myjail` in this case.

#16 Updated by Brandon Schneider about 2 years ago

  • Status changed from In Progress to Ready for Testing
  • Needs Merging changed from Yes to No

#17 Updated by Dru Lavigne almost 2 years ago

  • File deleted (debug.tgz)

#18 Updated by Dru Lavigne almost 2 years ago

  • Private changed from Yes to No

#19 Updated by Dru Lavigne almost 2 years ago

  • Subject changed from iocage jails - IPv6 support to Add rtsold support to iocage for IPv6 auto-configuration
  • Needs Doc changed from Yes to No

#20 Updated by Dru Lavigne almost 2 years ago

  • Related to Bug #48482: Add IPv6 Autoconfigure checkbox for jails to new UI added

#21 Updated by Bonnie Follweiler almost 2 years ago

  • Status changed from Ready for Testing to Passed Testing
  • Needs QA changed from Yes to No

#23 Updated by Dru Lavigne almost 2 years ago

  • Status changed from Passed Testing to Done

Also available in: Atom PDF