Unable to use pkg in jail, static IP unable to connect to network

micim987

Cadet
Joined
Mar 23, 2019
Messages
6
Hi I'm currently running FreeNAS 11.2-U5 and have been trying to set Bacula up but I keep running into the same issue. When I try to install wget I get the error listed below
Code:
root@bacula:/ # pkg udate
The package management tool is not yet installed on your system.
Do you want to fetch and install it now? [y/N]: y
Bootstrapping pkg from pkg+http://pkg.FreeBSD.org/FreeBSD:11:amd64/quarterly, please wait...
pkg: Error fetching http://pkg.FreeBSD.org/FreeBSD:11:amd64/quarterly/Latest/pkg.txz: Non-recoverable resolver failure
A pre-built version of pkg could not be found for your system.
Consider changing PACKAGESITE or installing it from ports: 'ports-mgmt/pkg'.
root@bacula:/ #

The jail is setup with a static IP of 192.168.1.30/24 and a default gateway of 192.168.1.1. The only setting that is default is allow_raw_sockets and vnet (which I assume is the same thing as VIMAGE.) I'm following this guide here btw.
When trying to ping google or my internal network the ping time's out despite the static IP settings being correct. My router allows static IP's to exist without reservation and I can't reserve it until I can get a MAC address. If anymore info is needed I will do my best to provided it.
I also don't use the onboard Ethernet adapter I use a Mellanox connect X2 with a 10G multi-mode fiber link that goes into a Microtik CRS305-1G-4S+IN


EDIT: Ok so I sort of figured it out. I had to delete the jail, wipe out the iocage file and completely reinstall freenas but I eventually learned that the static IP feature is broken. The workaround I found was to use DHCP to assign a static IP address in the router then restart the jail and it will pick up the static IP address. If anyone wants to come up with a better solution I would be glad to know because this kinda feels hacky to me.
 
Last edited:
Top