SOLVED Unable to ping anything when inside iocage jail - FreeNAS-11.1-U7

Nvious1

Explorer
Joined
Jul 12, 2018
Messages
67
Do you have another machine that is maybe getting an address from your network from DHCP? Like maybe a windows PC that you can send an ipconfig /all. Not all home routers run their network subnets the same. Some run on 1.1 other run on 1.254. I need to better understand your local network setup to advise further. At the end of the day the defaultrouter="ip" is your "default gateway". On your vnet0| the /24 is equal to your subnet mask or 255.255.255.0 Here is an example of mine. If your mask are gateway are non-standard, you will need different values when hard-coding a static address.

Code:
Ethernet adapter Ethernet 3:

   Connection-specific DNS Suffix  . :
   IPv6 Address. . . . . . . . . . . : 2605:a601:20a1:8200:d9d9:de2d:a682:2e4e
   Temporary IPv6 Address. . . . . . : 2605:a601:20a1:8200:999:413b:4c81:29b1
   Link-local IPv6 Address . . . . . : fe80::d9d9:de2d:a682:2e4e%10
   IPv4 Address. . . . . . . . . . . : 192.168.1.135
   Subnet Mask . . . . . . . . . . . : 255.255.255.0
   Default Gateway . . . . . . . . . : fe80::a9e:8ff:fee1:9998%10
                                       192.168.1.1


Try to look at another machines configuration and map the components.
 

Mehul V

Explorer
Joined
Oct 17, 2015
Messages
53
Do you have another machine that is maybe getting an address from your network from DHCP? Like maybe a windows PC that you can send an ipconfig /all. Not all home routers run their network subnets the same. Some run on 1.1 other run on 1.254. I need to better understand your local network setup to advise further. At the end of the day the defaultrouter="IP" is your "default gateway". On your vnet0| the /24 is equal to your subnet mask or 255.255.255.0 Here is an example of mine. If your mask are gateway are non-standard, you will need different values when hard-coding a static address.

Code:
Ethernet adapter Ethernet 3:

   Connection-specific DNS Suffix  . :
   IPv6 Address. . . . . . . . . . . : 2605:a601:20a1:8200:d9d9:de2d:a682:2e4e
   Temporary IPv6 Address. . . . . . : 2605:a601:20a1:8200:999:413b:4c81:29b1
   Link-local IPv6 Address . . . . . : fe80::d9d9:de2d:a682:2e4e%10
   IPv4 Address. . . . . . . . . . . : 192.168.1.135
   Subnet Mask . . . . . . . . . . . : 255.255.255.0
   Default Gateway . . . . . . . . . : fe80::a9e:8ff:fee1:9998%10
                                       192.168.1.1


Try to look at another machines configuration and map the components.

Yup the gateway is 192.168.1.1.
And regarding the static IP, my home is designed into following aspects:
Code:
DHCP Pool - 192.168.1.2 - 192.168.1.49
Super Secret A(static) - 192.168.1.50 - 192.168.1.99
Super Secret B(static) - 192.168.1.101 - 192.168.1.150

Super Secret B.1(static reserved for jails) - 192.168.1.121 - 192.168.1.125


Only .121, .122 are currently being used for jails and I have other 3 reserved.

Code:
Ethernet adapter Local Area Connection:

   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : Mellanox ConnectX-2 Ethernet Adapter
   Physical Address. . . . . . . . . : 00-02-C9-4E-C8-08
   DHCP Enabled. . . . . . . . . . . : No
   Autoconfiguration Enabled . . . . : Yes
   Link-local IPv6 Address . . . . . : fe80::65e6:364a:68c3:eca1%11(Preferred)
   IPv4 Address. . . . . . . . . . . : 192.168.1.251(Preferred)
   Subnet Mask . . . . . . . . . . . : 255.255.255.0
   Default Gateway . . . . . . . . . : 192.168.1.1
   DHCPv6 IAID . . . . . . . . . . . : 184550089
   DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-23-3C-C5-E4-08-60-6E-81-52-38

   DNS Servers . . . . . . . . . . . : 8.8.8.8
                                       192.168.1.1
   NetBIOS over Tcpip. . . . . . . . : Enabled
 

Nvious1

Explorer
Joined
Jul 12, 2018
Messages
67
Well unfortunately I am all out of ideas.....
 

Mehul V

Explorer
Joined
Oct 17, 2015
Messages
53
Does anyone else have any suggestions? I was already planning on migrating Plex but wanted to see if I can use this FreeNAS since I dont really have anywhere to transfer all this data in order to do a clean install.
 

Mehul V

Explorer
Joined
Oct 17, 2015
Messages
53
I am still not able to get the jail networking to work.

In order to save the data, would it be possible to copy the plex metadata/database from jail and use it on another server that is not running freenas? Maybe inside a docker container?
 

nojohnny101

Wizard
Joined
Dec 3, 2015
Messages
1,478
Are you sure your subnet mask is correct?
 

nojohnny101

Wizard
Joined
Dec 3, 2015
Messages
1,478
I read through all previous posts within the thread and everything does look correct.

If you are having trouble though even creating new jails, the something is obviously incorrect in the larger system.

Can you share detailed specifics about your hardware, how it is hardwired (just one single interface?, link aggregation?, etc.)

And just to get a couple of things clear:
- you created all your jails with the CLI in your current build/version?
- do you have any successful iocage jails running with networking working?
- can you share the exact command you used to create the Plex jail that isn't working?

Just trying to consolidate information spread over two pages so we can try again to get you up and running.
 

Mehul V

Explorer
Joined
Oct 17, 2015
Messages
53
I read through all previous posts within the thread and everything does look correct.

If you are having trouble though even creating new jails, the something is obviously incorrect in the larger system.

Can you share detailed specifics about your hardware, how it is hardwired (just one single interface?, link aggregation?, etc.)

And just to get a couple of things clear:
- you created all your jails with the CLI in your current build/version?
- do you have any successful iocage jails running with networking working?
- can you share the exact command you used to create the Plex jail that isn't working?

Just trying to consolidate information spread over two pages so we can try again to get you up and running.
Added FreeNAS info in the spoiler tag to keep response clean. I have FreeNAS going to a switch that goes to a router. I have my desktop and other servers on the same switch and they are all able to connect to internet.

And just to get a couple of things clear:
  1. you created all your jails with the CLI in your current build/version?
    1. That's correct. I only use iocage create ** via CLI and nothing else.
  2. do you have any successful iocage jails running with networking working?
    1. I currently do not have any iocage jails running with networking successfully
    2. However, I did at one point have the current Plex and Tautilli instance running. It broke when I ran an update and tried to create a Windows VM :(
  3. can you share the exact command you used to create the Plex jail that isn't working?
    1. Code:
      echo '{"pkgs":["plexmediaserver-plexpass","ca_root_nss"]}' > /tmp/pkg.json
      iocage create -n "plex" -p /tmp/pkg.json -r 11.1-RELEASE ip4_addr="vnet0|192.168.1.121/24" defaultrouter="192.168.1.1" vnet="on" allow_raw_sockets="1" boot="on"
      rm /tmp/pkg.json
      iocage fstab -a plex /mnt/myMedia/apps/plex /config nullfs rw,exec 0 0
      iocage fstab -a plex /mnt/myMedia/tv /mnt/video/tv nullfs ro 0 0
      iocage fstab -a plex /mnt/myMedia/music /mnt/video/music nullfs rw 0 0
      iocage fstab -a plex /mnt/myMedia/movies /mnt/video/music nullfs rw 0 0
      iocage exec plex chown -R plex:plex /config
      iocage exec plex sysrc "plexmediaserver_plexpass_enable=YES"
      iocage exec plex sysrc plexmediaserver_plexpass_support_path="/config"
      iocage exec plex service plexmediaserver_plexpass start
      
FreeNAS Server Info:
OS: FreeNAS-11.1-U7
CPU: Intel(R) Xeon(R) CPU E5-2650 0 @ 2.00GHz
RAM: 131022MB

NIC 1:
Interface Name: ix0
Physical Link: SFP+
Media: Ethernet autoselect (10Gbase-Twinax <full-duplex,rxpause,txpause>)
Media Status: Active
DHCP: False
IPv4:192.168.1.151/24
NameServers: 192.168.1.1, 8.8.8.8
Default Route: 192.168.1.1
VLANs: N/A
LACP: N/A
Proxy: N/A

NIC 2:
Interface Name: ix1
Media Status: False(Disconnected)
DHCP: N/A
I tried to answer all the questions in as much detail as possible but please let me know if I missed anything.
Appreciate any guidance you can provide to me.
Thanks!
 

nojohnny101

Wizard
Joined
Dec 3, 2015
Messages
1,478
Can you do an ifconfig on the FreeNAS host?
 

Mehul V

Explorer
Joined
Oct 17, 2015
Messages
53
Can you do an ifconfig on the FreeNAS host?
Here is ifconfig from the host
Code:
root@freenas:~ # ifconfig
ix0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        options=e407bb<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,TSO4,TSO6,LRO,VLAN_HWTSO,RXCSUM_IPV6,TXCSUM_IPV6>
        ether 00:8c:fa:18:3b:7c
        hwaddr 00:8c:fa:18:3b:7c
        inet 192.168.1.151 netmask 0xffffff00 broadcast 192.168.1.255
        nd6 options=9<PERFORMNUD,IFDISABLED>
        media: Ethernet autoselect (10Gbase-Twinax <full-duplex,rxpause,txpause>)
        status: active
ix1: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
        options=e407bb<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,TSO4,TSO6,LRO,VLAN_HWTSO,RXCSUM_IPV6,TXCSUM_IPV6>
        ether 00:8c:fa:18:3b:7d
        hwaddr 00:8c:fa:18:3b:7d
        nd6 options=9<PERFORMNUD,IFDISABLED>
        media: Ethernet autoselect
        status: no carrier
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
        options=600003<RXCSUM,TXCSUM,RXCSUM_IPV6,TXCSUM_IPV6>
        inet6 ::1 prefixlen 128
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3
        inet 127.0.0.1 netmask 0xff000000
        nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
        groups: lo
bridge0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        ether 02:c5:a8:df:21:00
        nd6 options=1<PERFORMNUD>
        groups: bridge
        id 00:00:00:00:00:00 priority 32768 hellotime 2 fwddelay 15
        maxage 20 holdcnt 6 proto rstp maxaddr 2000 timeout 1200
        root id 00:00:00:00:00:00 priority 32768 ifcost 0 port 0
        member: vnet0:3 flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP>
                ifmaxaddr 0 port 7 priority 128 path cost 2000
        member: vnet0:2 flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP>
                ifmaxaddr 0 port 6 priority 128 path cost 2000
        member: vnet0:1 flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP>
                ifmaxaddr 0 port 5 priority 128 path cost 2000
vnet0:1: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500
        description: associated with jail: tautulli
        options=8<VLAN_MTU>
        ether 02:ff:60:46:b0:16
        hwaddr 02:07:50:00:05:0a
        nd6 options=1<PERFORMNUD>
        media: Ethernet 10Gbase-T (10Gbase-T <full-duplex>)
        status: active
        groups: epair
vnet0:2: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500
        description: associated with jail: plex
        options=8<VLAN_MTU>
        ether 02:ff:60:14:fa:09
        hwaddr 02:07:50:00:06:0a
        nd6 options=1<PERFORMNUD>
        media: Ethernet 10Gbase-T (10Gbase-T <full-duplex>)
        status: active
        groups: epair
vnet0:3: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500
        description: associated with jail: plex2
        options=8<VLAN_MTU>
        ether 02:ff:60:7e:eb:bb
        hwaddr 02:07:50:00:07:0a
        nd6 options=1<PERFORMNUD>
        media: Ethernet 10Gbase-T (10Gbase-T <full-duplex>)
        status: active
        groups: epair
root@freenas:~ #
 

nojohnny101

Wizard
Joined
Dec 3, 2015
Messages
1,478
hmmm. this is a bit of a mystery. I compared your jail and host ifconfig setting with mine and they are identical.

When I have faced strange problems that I can't resolve, I try and wipe the slate clean and start over. You might try and do that with your network interfaces by removing all iocage jails then cleaning manually cleaning up your network interfaces (if it isn't already done through deleting of the jails).

If you recreate and you get not errors on install and you verify that your nameservers, dns, etc. is all setup within the jail correctly, then file a bug report. There is a possibility of a bug with the hardware you are using.

Let us know.
 

Mehul V

Explorer
Joined
Oct 17, 2015
Messages
53
hmmm. this is a bit of a mystery. I compared your jail and host ifconfig setting with mine and they are identical.

When I have faced strange problems that I can't resolve, I try and wipe the slate clean and start over. You might try and do that with your network interfaces by removing all iocage jails then cleaning manually cleaning up your network interfaces (if it isn't already done through deleting of the jails).

If you recreate and you get not errors on install and you verify that your nameservers, dns, etc. is all setup within the jail correctly, then file a bug report. There is a possibility of a bug with the hardware you are using.

Let us know.
Yeah that's a good idea but I dont have the data from Plex and Tautilli backed up so I am a little hesitant of removing the jails.

Even when trying to create a new plex jail, I am not getting network to work :(
 

nojohnny101

Wizard
Joined
Dec 3, 2015
Messages
1,478
It is fairly easy to backup flex and Tautulli data, I just moved my warden jails to icoage and carried over both respective databases that kept everything intact. Just search on here and you'll find plenty of resources.

I would do that so you aren't so hesitant to mess around. It has to be something with your networking set, and I'm guessing on the host.
 

Mehul V

Explorer
Joined
Oct 17, 2015
Messages
53
It is fairly easy to backup flex and Tautulli data, I just moved my warden jails to icoage and carried over both respective databases that kept everything intact. Just search on here and you'll find plenty of resources.

I would do that so you aren't so hesitant to mess around. It has to be something with your networking set, and I'm guessing on the host.
I see. So backup jails, delete jails, clean up jails config, create new jails. All while keeping the same FreeNAS host. Does that sound about right?
 

mwittemans

Cadet
Joined
Jul 26, 2016
Messages
8
Have you rebooted you FreeNAS system already, after you have created your iocage and 'fiddled around'. I know you shouldn't have to do so, but it may help...
 

Mehul V

Explorer
Joined
Oct 17, 2015
Messages
53
Have you rebooted you FreeNAS system already, after you have created your iocage and 'fiddled around'. I know you shouldn't have to do so, but it may help...
Yup! Now that the FreeNAS jail isnt working, I shutdown FreeNAS everynight.
 

Mehul V

Explorer
Joined
Oct 17, 2015
Messages
53
It is fairly easy to backup flex and Tautulli data, I just moved my warden jails to icoage and carried over both respective databases that kept everything intact. Just search on here and you'll find plenty of resources.

I would do that so you aren't so hesitant to mess around. It has to be something with your networking set, and I'm guessing on the host.
Found something interesting. When I created second plex jail, I am able to ping from one jail to another but neither of the jails can ping the host or anything outside the jail network.

Also found that when I created jail "plex3" using the GUI and used the GUI shell to get shell access into jail, that jail seems to be able to ping 8.8.8.8 but can't ping the other jails created using iocage.
 

Mehul V

Explorer
Joined
Oct 17, 2015
Messages
53
1549943952888.png

Attached an image of what I saw the first time when this started happening. This was around the same time when I was trying to create a Win10 VM on FreeNAS 11.

The same thing is happening again when I was messing around with creating jails using iocage and GUI.
But now SSH/GUI are non-responsive and I can't do anything.
 
Top