Add rtsold support to iocage for IPv6 auto-configuration
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
#5 Updated by William Grzybowski almost 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 almost 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 almost 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.
#11 Updated by Peter Brille almost 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 almost 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.
#15 Updated by Brandon Schneider almost 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)
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.