Jails networking woes

VK2EVA

Cadet
Joined
Oct 5, 2020
Messages
3
Hello there,

I have been struggling with this issue for a while, and I come to you for help.

From what I can see, the jails seem to get their own IP in the 172.16.0.x range, this happens to be the same IP range as my network, which has been causing trouble when trying to access jails...

I posted about this on reddit a few weeks back: https://www.reddit.com/r/freenas/comments/iylm8q/jails_using_the_same_ip_range_as_my_lan_causing/
but essentially, when I try and ping other items on my network from inside a jail, the freenas host IP responds that its unreachable, so I believe that it is trying to route traffic to 'other jails' and what I need to do is change freenas (truenas core?) to use an alternate network for jails, even 172.17.x.x...
I have tried manually setting an IP address in the jails, but I still face the same issue.

I would appreciate any help or advice around this!

Thanks,

Lewys
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,700
Have you specified the gateway address to the jail when you specified the IP address?

Are you using the jail in VNET mode? (I think that matches with what you are expecting to see happening)
 

VK2EVA

Cadet
Joined
Oct 5, 2020
Messages
3
Have you specified the gateway address to the jail when you specified the IP address?

Are you using the jail in VNET mode? (I think that matches with what you are expecting to see happening)
yep, VNET and gateway specified, from a route perspective, everything LOOKS correct to me...
 

VK2EVA

Cadet
Joined
Oct 5, 2020
Messages
3
ilqutj.png
default route right?
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,700
I can't say from experience as I use DHCP static leases to assign my jails IP addresses, but I know there was a time where assigning a jail IP wasn't working properly, but DHCP was fine.
 

Kcaj

Contributor
Joined
Jan 2, 2020
Messages
100
Did you define any bridges?

Can you post output of ifconfig both on the jail and host and iocage get all <jail name>?
 
Last edited:
Top