Jail is assigned ip, but jls shows no assigned IP

Status
Not open for further replies.

Klox

Dabbler
Joined
Sep 29, 2013
Messages
21
Hi all,

FreeNAS version and platform (32 or 64 bit): FreeNAS 9.1.1-Release 64 bit
General hardware information (CPU, RAM, Motherboard model, etc.): Supermicro X10SL7, 32 GB UDIMM 1600 RAM, Pentium G3220, flashed HBA to IT mode but not using it yet.

Specific hardware information (Network card chipset, Raid controller chipset, etc.): Intel dual NIC on the motherboard.

I've read through all the docs + settings for a few days and can't figure out my problem. Seemed like it was about time to approach the forums. First I am a complete noob at FreeBSD + FreeNAS. Here goes:

I've successfully installed FreeNAS (still one problem where if I reboot it goes to CLI with mountroot displayed, but after I reboot manually it goes back to FreeNAS fine. Might make another thread about that). I can access the GUI no problem, went through the network settings:

Global Configuration
Hostname: HomeNAS
Domain: local
IPv4 Defualt Gateway: 192.168.1.1
Nameserver 1: 192.168.1.1

No Interfaces were created automatically, but the DHCP from my router worked so I am a bit confused by that. I went ahead and created one:

Interfaces
NIC: igb0
Interface Name: NIC1
DHCP: true

Network Summary
igb1: 192.168.1.162/24
Namerserver: 192.168.1.1
Default route: 192.168.1.1

All seem fine for the above. So I create a jail for plugins (I would prefer to use multiple ports instead of multiple IP).

Jails Configuration
Jail Root: /mtn/tetra (my 4 TB mirrored volume)
IPv4 Network: 192.168.1.0/24
IPv4 Network Start Address: 192.168.1.163
IPv4 Network End Address: 192.168.1.254

Jails
Name: plugins1
IPv4 address: 192.168.1.164/24
Default Gateway: 192.168.1.1
+autostart +VIMAGE

I've read through the docs and don't think I need to set anything else for the jail. One problem I have noticed is that I can shut down the jail fine, but when I start it up it hangs for 15+ mins. I just click the x at the top right of the message box and then refresh the page and it shows it running. I have the logging displayed at the bottom of the page. It says epair0a is UP, and the ethernet address is 02:68:fb:00:09:0a but I don't see that in my DHCP list on the router. I do see a 192.168.1.124 address, but with a MAC address of 02:68:FB:00:0B:0B

After creating the plugin I uploaded sabnzbd and enabled it. Tried to go to 192.168.1.164:8080 and I get a couldn't connect error. It has an ipv4 address of 192.168.1.165/24. In the logs I see epair0b go to UP with a mac address of 02:68:fb:00:0b:0b. 192.168.1.165 is not listed in the DHCP list.

So those seem like all the relevant settings. I have also tried to just install the plugin using the default multiple jail setup (so just installing the plugin straight). Same problem with no connection. It never fills int he default gateway though, so I have tried with and without it.

I ssh into the FreeNAS box and run ifconfig:
ifconfig
Code:
igb0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
    options=401bb<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,TSO4,VLAN_HWTSO>
    ether 00:25:90:86:c7:32
    nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
    media: Ethernet autoselect
    status: no carrier
igb1: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500
    options=400b8<VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,VLAN_HWTSO>
    ether 00:25:90:86:c7:33
    inet 192.168.1.162 netmask 0xffffff00 broadcast 192.168.1.255
    nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
    media: Ethernet autoselect (1000baseT <full-duplex>)
    status: active
ipfw0: flags=8801<UP,SIMPLEX,MULTICAST> metric 0 mtu 65536
    nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
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 0x7
    inet 127.0.0.1 netmask 0xff000000
    nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
bridge0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
    ether 02:3a:9f:77:0e:00
    nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
    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: epair0a flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP>
            ifmaxaddr 0 port 9 priority 128 path cost 2000
    member: epair1a flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP>
            ifmaxaddr 0 port 10 priority 128 path cost 2000
    member: igb1 flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP>
            ifmaxaddr 0 port 4 priority 128 path cost 20000
epair1a: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500
    options=8<VLAN_MTU>
    ether 02:37:9b:00:0a:0a
    inet6 fe80::37:9bff:fe00:a0a%epair1a prefixlen 64 scopeid 0xa
    nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
    media: Ethernet 10Gbase-T (10Gbase-T <full-duplex>)
    status: active
epair0a: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500
    options=8<VLAN_MTU>
    ether 02:68:fb:00:09:0a
    inet6 fe80::68:fbff:fe00:90a%epair0a prefixlen 64 scopeid 0x9
    nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
    media: Ethernet 10Gbase-T (10Gbase-T <full-duplex>)
    status: active


Then I run jls
jls
Code:
  JID  IP Address      Hostname                      Path
    4  -              sabnzbd_1                    /mnt/tetra/sabnzbd_1
    5  -              plugins1                      /mnt/tetra/plugins1


Then I connect to the jail: jexec 5 /bin/tcsh
ifconfig

Code:
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 0x1
    inet 127.0.0.1 netmask 0xff000000
    nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
epair0b: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
    options=8<VLAN_MTU>
    ether 02:68:fb:00:0b:0b
    inet 192.168.1.164 netmask 0xffffff00 broadcast 192.168.1.255
    inet6 fe80::68:fbff:fe00:b0b%epair0b prefixlen 64 scopeid 0x2
    nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
    media: Ethernet 10Gbase-T (10Gbase-T <full-duplex>)
    status: active


So that's where I am at. Plugin message box doesn't finish, but it appears the jail is fine. The interfaces are up. The MAC address doesn't match the 192.168.1.164 on my DHCP list, but I have tried moving the IP around and it doesn't change anything. I am suspecting some internal mechanism in FreeNAS handling the spoofed MACs, etc.

Any advice would be greatly appreciated. Looking forward to getting into a lot more stuff!

edit Added code tags to the CLI output to be more readable.

edit Added missing required specs at the top.
 

joeschmuck

Old Man
Moderator
Joined
May 28, 2011
Messages
10,994
Sounds like you have a lot of problems but I will answer the question in the title... That is normal for no IP Address to be listed. I never have seen one either. I'm not saying there isn't a bug to fix in the source code but the lack of the IP being listed doesn't cause any harm.

As for your other problems, I'd grab another USB Flash drive and perform a fresh install on it. You shouldn't have to create a network connection, DHCP should run fine, jails shouldn't take forever to start. Of course you haven't given us any of your system hardware information so I don't even know why I'm answering this thread in the first place. Read the forum rules if you truly want help. That's probably why you haven't seen a response yet.
 

Klox

Dabbler
Joined
Sep 29, 2013
Messages
21
Thanks for the notice, I added more specs at the top. I'll give another USB stick a try. If anything else comes to mind please let me know :)
 

Klox

Dabbler
Joined
Sep 29, 2013
Messages
21
So I created another install on a different USB drive (original was a SanDisk, this one is an ADATA) and ran into the same problems. I imported the existing volume and re-created the jail. I'll go ahead and wipe the drives and try again from a blank slate.

edit Also checked the checksum on the download, seems like everything is fine. FreeNAS loads up fine, etc., so doesn't seem like the drive is being used once I've got the Web GUI up and running and in a stable state.

Do I have to create an interface? Or should that stuff happen automatically with no interface/blank fields? Seems like the NIC's are defaulted to DHCP and I don't have to do anything with that. Just trying to narrow down my search, thanks!
 

glipman

Dabbler
Joined
Oct 31, 2012
Messages
21
I had exactly the same problem when I tried to install the minidlna plugin: jls did not show an ip-address and I had no network connectivity from within the plugin.

The solution was simple: uncheck VIMAGE in the jail settings. After restarting the jail the ip-address showed up in jls and the network was fine.
 

Klox

Dabbler
Joined
Sep 29, 2013
Messages
21
Excellent! This was exactly it (for the plugins not showing up and the jls ip's not bein listed). Thank you very much.

Starting up the jail still requires me to (x) out of the dialog box and if I reboot from the web GUI it goes to a mountpoint terminal, so I have to do a manual restart. But one problem at a time :)
 

joeschmuck

Old Man
Moderator
Joined
May 28, 2011
Messages
10,994
When I uncheck VIMAGE I cannot access my DLNA service over the network. Not sure why but maybe I'll troubleshoot some later. I put back the check for VIMAGE for now.
 

ianW

Cadet
Joined
May 13, 2014
Messages
4
One of the things I have found to "fix" problems with the jail is to give a static MAC address to the IP address you use for the jail. And then put these both into your network router. It seems to me that the problem comes when the IP address is not changed but the randomly assigned MAC address is, and then ARP pukes.

When that happens you get the "bad gateway" message, and all of the other associated issues.

I have now put in the static ones and have been running well for a few days with out the problems.
 
Status
Not open for further replies.
Top