Jail Networking issue in 12.0 Beta 2.1

Junicast

Patron
Joined
Mar 6, 2015
Messages
206
Hi,

I have a couple of jails in TrueNAS which are all within the same vlan. Some are working, others aren't. The all used to work though.
One jail has IPv6 autoconf set. The device gets an IP and a default gateway. All seems fine, but it can't ping into the world...
I thought, well ... I have had similar problems like this in the past with IPv6 and jails, let's set the IP address manually as the default gateway, which I did, see screenshots.
Eversince I set it manually jail won't start. When I start it via
Code:
iocage start syncthing
I get this error:
Code:
root@filer[~]# iocage start syncthing
* Starting syncthing
  + Started OK
  + Using devfs_ruleset: 1001 (iocage generated default)
  + Configuring VNET FAILED
  route: writing to routing socket: Network is unreachable
add net default: gateway 2001:xxxx:xxd4:1b::1 fib 0: Network is unreachable


Basis setup of networking is:
Mellanox ConnectX3 10G (mlxen0)
vlan5 interface on top of mlxen0
bridge5 with vlan5 attached to it.

My bhyve guests as well as my jails are connected to bridge 5 (screenshot).
This seems to stopped working like 10 days ago, I'm not exactly sure. Maybe when I updated to beta2.1 dunno.

What's weird is that another jail works fine. It has IP set manually as well.

truenas12beta_jail_interface.png

truenas12beta_jail_ip.png

truenas12beta_networking.png
 

Kelly Hays

Dabbler
Joined
Apr 25, 2017
Messages
16
Eversince I set it manually jail won't start. When I start it via
Code:
iocage start syncthing
I get this error:
Code:
root@filer[~]# iocage start syncthing
* Starting syncthing
  + Started OK
  + Using devfs_ruleset: 1001 (iocage generated default)
  + Configuring VNET FAILED
  route: writing to routing socket: Network is unreachable
add net default: gateway 2001:xxxx:xxd4:1b::1 fib 0: Network is unreachable


Basis setup of networking is:
Mellanox ConnectX3 10G (mlxen0)
vlan5 interface on top of mlxen0
bridge5 with vlan5 attached to it.

View attachment 41410

This may not help but it is worth a try. My config is similar to yours except for one thing: I have my IPv4 and IPv6 address on the vlan interface not the bridge interface.
 

Junicast

Patron
Joined
Mar 6, 2015
Messages
206
I've deleted all my networking configuration and recreated it from scratch. I also tried to create a completely new jail. The problem still persists.
@Kelly Hays
FreeBSD documentation suggests to always put the IPs on the bridge interface.
 

Junicast

Patron
Joined
Mar 6, 2015
Messages
206
Last edited:
Top