SOLVED Don't understand jail network

nopro

Dabbler
Joined
Apr 7, 2019
Messages
11
Hello i'm new to freenas and have problems to understand network configuration of of jails.
what it looks like now:

# ifconfig
re0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=82099<RXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,WOL_MAGIC,LINKSTATE>
ether xx:xx:xx:xx:xx:xx
hwaddr xx:xx:xx:xx:xx:xx
inet 192.168.0.3 netmask 0xffffff00 broadcast 192.168.0.255
nd6 options=9<PERFORMNUD,IFDISABLED>
media: Ethernet autoselect (1000baseT <full-duplex>)
status: active
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 0x2
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 xx:xx:xx:xx:xx:xx
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:2 flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP>
ifmaxaddr 0 port 4 priority 128 path cost 2000
member: re0 flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP>
ifmaxaddr 0 port 1 priority 128 path cost 20000
vnet0:2: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500
description: associated with jail: transmission as nic: epair0b
options=8<VLAN_MTU>
ether xx:xx:xx:xx:xx:xx
hwaddr xx:xx:xx:xx:xx:xx
nd6 options=1<PERFORMNUD>
media: Ethernet 10Gbase-T (10Gbase-T <full-duplex>)
status: active
groups: epair

in transmission jail, IPv4 Interface: vnet0, IPv4 Address: 192.168.0.60, IPv4 Netmask: 24, Default Router: 192.168.0.1,
in network properties i have vnet0:bridge0

what inteface should i use of re0 vnet0 bridge0 if i want to install sonarr i've searched and tried everything but no go (a bit thick i guess :) )
I've somehow managed to get transmission up and running, but there is no ip address visible, i can connect with transmission-remote-gtk and there are seeds
but connections to peers seems a little wonky.
Appreciate any help.
 

artlessknave

Wizard
Joined
Oct 29, 2016
Messages
1,506
1. jail network should config automatically. checking dhcp will check vnet, and will give the jail an ip from your network dhcp server. I have never changed any jails network options since they added dhcpin like FN 8+. why are you trying to pick an interface at all?
2. you list transmissions IP address but then you say it doesn't have one? I'm confused.
in transmission jail, IPv4 Interface: vnet0, IPv4 Address: 192.168.0.60, IPv4 Netmask: 24, Default Router: 192.168.0.1,
transmission up and running, but there is no IP address visible,
3. not using code tags makes a puppy cry.
 

nopro

Dabbler
Joined
Apr 7, 2019
Messages
11
Hello sorry for being unclear.
I have my home network configured with static ip, to much work to change that + i want to decide what ip goes to what machine.
If i go to
network ->network summary, earlyer i saw the plugin ip, after messing around ip does not show but i can still connect to 192.168.0.60 .
I've orderd a new intel nic, maby the problem is the realtek card i'm using now, i'll be updating on how it goes after i get my new card.
I'll try to do better with the tags :)
Thank you for your reply.
 

SweetAndLow

Sweet'NASty
Joined
Nov 6, 2013
Messages
6,421
If you want a static IP you just give it a static IP? What's The problem with that? I always just use DHCP with Mac addresses so everything gets the same IP every time. What does the manual say about jails and static ip's.
 

nopro

Dabbler
Joined
Apr 7, 2019
Messages
11
So, if
nas IP is: 192.168.0.3 and one jail has 192.168.0.60/24, interfaces: vnet0:bridge0
what will the next jail's interface be? vnet1:bridge1? vnet0:bridge1? vnet1:bridge0?, i don't get it :confused:
 

artlessknave

Wizard
Joined
Oct 29, 2016
Messages
1,506
I think you are overthinking this. vnet0 is your bridge to your re0. there is no "next jail interface", you select your vnet bridge and give it an IP or select dhcp. the vnet0 bridge makes every jail have a virtual interface automatically. the only time this would be more complicated is if you have more than one physical network port, which it doesnt look like you do. i see only re0.
 

nopro

Dabbler
Joined
Apr 7, 2019
Messages
11
So, from what i manged to find out it is a bug that will be corrected in te next release.
If i try to install a plugin with static ip vnet in web interface i get:

[EFAULT] Exception: RuntimeError:*** no is not a valid value for hostid_strict_check. Value must be off or on *** occured, destroyed sonarr.


But if i add a jail, also in web inteface all is fine:

Code:
re0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500

        options=8209b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,WOL_MAGIC,LINKSTATE>

        ether e0:d5:5e:f7:bf:72

        hwaddr e0:d5:5e:f7:bf:72

        nd6 options=9<PERFORMNUD,IFDISABLED>

        media: Ethernet autoselect (100baseTX <full-duplex>)

        status: active

em0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500

        options=2098<VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,WOL_MAGIC>

        ether 00:1b:21:3a:53:2b

        hwaddr 00:1b:21:3a:53:2b

        inet 192.168.0.3 netmask 0xffffff00 broadcast 192.168.0.255

        nd6 options=9<PERFORMNUD,IFDISABLED>

        media: Ethernet autoselect (1000baseT <full-duplex>)

        status: active

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:5e:1a:bd:98:00

        nd6 options=9<PERFORMNUD,IFDISABLED>

        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:6 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

        member: em0 flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP>

                ifmaxaddr 0 port 2 priority 128 path cost 55

vnet0:1: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500

        description: associated with jail: transmission as nic: epair0b

        options=8<VLAN_MTU>

        ether e0:d5:5e:03:aa:46

        hwaddr 02:6a:d0:00:05:0a

        nd6 options=1<PERFORMNUD>

        media: Ethernet 10Gbase-T (10Gbase-T <full-duplex>)

        status: active

        groups: epair

vnet0:6: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500

        description: associated with jail: test_jail as nic: epair0b

        options=8<VLAN_MTU>

        ether e0:d5:5e:e0:17:7f

        hwaddr 02:6a:d0:00:06:0a

        nd6 options=1<PERFORMNUD>

        media: Ethernet 10Gbase-T (10Gbase-T <full-duplex>)

        status: active

        groups: epair


in test_jail:

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>

        groups: lo

epair0b: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500

        options=8<VLAN_MTU>

        ether e0:d5:5e:e0:17:80

        hwaddr 02:6a:d0:00:07:0b

        inet 192.168.0.61 netmask 0xffffff00 broadcast 192.168.0.255

        nd6 options=1<PERFORMNUD>

        media: Ethernet 10Gbase-T (10Gbase-T <full-duplex>)

        status: active

        groups: epair


Hope this saves some time for another newbie like me.
 
Top