Plex 11.2 static IP setup and vnet?

fizzgig656

Contributor
Joined
Nov 6, 2012
Messages
192
It seems this has been touched on a little an ive tried to find out ( over the last 2 days on and off) and sort this myself by reading other threads. but i can not quiet get it to work.
so ive had plex running on an old jail (11.1 or before) and is still running but on another ip (192.168.10.51) Ive now upgraded to 11.2 and tried setting up the new plex plugin. Now i can get it to work using DHCP and brings down poster art etc.
But i want it to be on a static ip, so if i "untick" DHCP and select EM1, set ip to 192.168.10.41 using /24 and 192.168.10.1 at default gateway. i can not connect to the plex webpage, unless i "untick" VNET an Berkeley Packet Filter. Then i can connect to plex, setup everything etc, BUT no posters etc.

So i believe this is due to plex not getting details back when searching for info online. The old jail had VIMAGE ticked, so ive tried setting up VNET but im either not setting it up correctly or doing something wrong. so what do i need to do?? currently the fields i "believe" i need to setup or enable are;

DHCP - unticked
VNET - ticked
Berkeley Packet Filter - Ticked
IPv4 interface - EM1
IPv4 address - 192.168.10.41
IPv4 netmask - /24

allow raw sockets - tried it ticked and unticked (previous 11.1 had this set to true!)
VNET interfaces - none , tried vnet0 and em1 TNA (is this correct)?

Interfaces - vnet:bridge0 (is this correct, tried vnet0:em1, TNA)?
vnet default interface - auto (is this correct, tried em1 and vnet0, TNA)??
vnet0 mac - tried none and 00259038246b 00259038246c as it was in a 2nd plex i installed. TNA (is this correct)?

i know im a notice but do try to find the answers without just post here first to save time and people going over it all a number of times. so thanks for looking and helping if you can!
 

nojohnny101

Wizard
Joined
Dec 3, 2015
Messages
1,478
Please post out the output of "ifconfig" from within the jail console.

EDIT: by the way, you could just set the static IP at the router level and not worry about it. Just great the Mac address of the jail then provision from router. that solves the static IP problem.
 
Last edited:

fizzgig656

Contributor
Joined
Nov 6, 2012
Messages
192
Please post out the output of "ifconfig" from within the jail console.

ok, thanks

root@LTbowers:~ # ifconfig
em0: flags=8c02<BROADCAST,OACTIVE,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=209b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,WOL_MAGIC>
ether 00:25:90:50:5a:41
hwaddr 00:25:90:50:5a:41
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
epair0a: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=8<VLAN_MTU>
ether 02:31:d0:00:05:0a
hwaddr 02:31:d0:00:05:0a
nd6 options=1<PERFORMNUD>
media: Ethernet 10Gbase-T (10Gbase-T <full-duplex>)
status: active
groups: epair
em1: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=2098<VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,WOL_MAGIC>
ether 00:25:90:50:5a:40
hwaddr 00:25:90:50:5a:40
inet 192.168.10.40 netmask 0xffffff00 broadcast 192.168.10.255
inet 192.168.10.41 netmask 0xffffff00 broadcast 192.168.10.255
nd6 options=9<PERFORMNUD,IFDISABLED>
media: Ethernet autoselect (1000baseT <full-duplex>)
status: active
bridge0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
ether 02:92:38:e3:b3: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: epair1a flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP>
ifmaxaddr 0 port 6 priority 128 path cost 2000
epair1a: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=8<VLAN_MTU>
ether 02:31:d0:00:06:0a
hwaddr 02:31:d0:00:06:0a
nd6 options=1<PERFORMNUD>
media: Ethernet 10Gbase-T (10Gbase-T <full-duplex>)
status: active
groups: epair

thats form the current static ip without vnet etc enabled
 

nojohnny101

Wizard
Joined
Dec 3, 2015
Messages
1,478
please wrap code in [(code]) tags, it makes it much easier to read. please see my edit above[/code]
 
Last edited:

fizzgig656

Contributor
Joined
Nov 6, 2012
Messages
192
please wrap code in [(code]) tags, it makes it much easier to read. please see my edit above[/code]
is this not correct? not sure if i understood you, sorry about the code!

is this what your asking, putty into 192.168.10.41. good idea with the reserved IP, does setting the jail to static not work.

Code:
root@LTbowers:~ # ifconfig
em0: flags=8c02<BROADCAST,OACTIVE,SIMPLEX,MULTICAST> metric 0 mtu 1500
        options=209b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,WOL_MAGIC>
        ether 00:25:90:50:5a:41
        hwaddr 00:25:90:50:5a:41
        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
epair0a: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        options=8<VLAN_MTU>
        ether 02:31:d0:00:05:0a
        hwaddr 02:31:d0:00:05:0a
        nd6 options=1<PERFORMNUD>
        media: Ethernet 10Gbase-T (10Gbase-T <full-duplex>)
        status: active
        groups: epair
em1: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500
        options=2098<VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,WOL_MAGIC>
        ether 00:25:90:50:5a:40
        hwaddr 00:25:90:50:5a:40
        inet 192.168.10.40 netmask 0xffffff00 broadcast 192.168.10.255
        inet 192.168.10.41 netmask 0xffffff00 broadcast 192.168.10.255
        nd6 options=9<PERFORMNUD,IFDISABLED>
        media: Ethernet autoselect (1000baseT <full-duplex>)
        status: active
bridge0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        ether 02:92:38:e3:b3: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: epair1a flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP>
                ifmaxaddr 0 port 6 priority 128 path cost 2000
epair1a: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500
        options=8<VLAN_MTU>
        ether 02:31:d0:00:06:0a
        hwaddr 02:31:d0:00:06:0a
        nd6 options=1<PERFORMNUD>
        media: Ethernet 10Gbase-T (10Gbase-T <full-duplex>)
        status: active
        groups: epair
 

nojohnny101

Wizard
Joined
Dec 3, 2015
Messages
1,478
no give the ifconfig from within the shell of the jail (plex in your case)
 

fizzgig656

Contributor
Joined
Nov 6, 2012
Messages
192
no give the ifconfig from within the shell of the jail (plex in your case)
thanks, i cant seem to copy from the UI shell for the jail, so ive connected to it via putty, there seems to be a few people having that issue too...

Code:
root@plex:/ # ifconfig
em0: flags=8c02<BROADCAST,OACTIVE,SIMPLEX,MULTICAST> metric 0 mtu 1500
        options=209b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,WOL_MAGIC>
        ether 00:25:90:50:5a:41
        hwaddr 00:25:90:50:5a:41
        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>
        groups: lo
epair0a: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        options=8<VLAN_MTU>
        ether 02:31:d0:00:05:0a
        hwaddr 02:31:d0:00:05:0a
        media: Ethernet 10Gbase-T (10Gbase-T <full-duplex>)
        status: active
        groups: epair
em1: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500
        options=2098<VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,WOL_MAGIC>
        ether 00:25:90:50:5a:40
        hwaddr 00:25:90:50:5a:40
        inet 192.168.10.41 netmask 0xffffff00 broadcast 192.168.10.255
        media: Ethernet autoselect (1000baseT <full-duplex>)
        status: active
bridge0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        ether 02:92:38:e3:b3:00
        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: epair1a flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP>
                ifmaxaddr 0 port 6 priority 128 path cost 2000
epair1a: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500
        options=8<VLAN_MTU>
        ether 02:31:d0:00:06:0a
        hwaddr 02:31:d0:00:06:0a
        media: Ethernet 10Gbase-T (10Gbase-T <full-duplex>)
        status: active
        groups: epair
[\code]
is that right !
thanks again.
 

nojohnny101

Wizard
Joined
Dec 3, 2015
Messages
1,478
Ok so I went through my settings and this is what I have for all my jails and I think it can apply in your case:
on basic properties
- DHCP Autoconfigure IPv4: unchecked
- VNET: checked
- Berkeley Packet Filter: unchecked (why did you check this?)


Jail properties
- allow_set_hostname: checked
- allow_raw_sockets: checked

Network Properties:
- interfaces: vnet0:bridge0
- hostname: <name of jail> (in my case for my deluge jail, this value is "deluge" [without quotes])
- ip4_saddrsel: checked
- vnet_default_interace: auto

here is my ifconfig from within my jails (all follow this same setup as far as interfaces go)
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 02:ff:60:14:fa:0a
    hwaddr 02:e1:d0:00:07:0b
    inet 10.0.1.31 netmask 0xffff0000 broadcast 10.0.255.255
    nd6 options=1<PERFORMNUD>
    media: Ethernet 10Gbase-T (10Gbase-T <full-duplex>)
    status: active
    groups: epair 
 

fizzgig656

Contributor
Joined
Nov 6, 2012
Messages
192
Ok so I went through my settings and this is what I have for all my jails and I think it can apply in your case:
on basic properties
- DHCP Autoconfigure IPv4: unchecked
- VNET: checked
- Berkeley Packet Filter: unchecked (why did you check this?)


Jail properties
- allow_set_hostname: checked
- allow_raw_sockets: checked

Network Properties:
- interfaces: vnet0:bridge0
- hostname: <name of jail> (in my case for my deluge jail, this value is "deluge" [without quotes])
- ip4_saddrsel: checked
- vnet_default_interace: auto

here is my ifconfig from within my jails (all follow this same setup as far as interfaces go)
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 02:ff:60:14:fa:0a
    hwaddr 02:e1:d0:00:07:0b
    inet 10.0.1.31 netmask 0xffff0000 broadcast 10.0.255.255
    nd6 options=1<PERFORMNUD>
    media: Ethernet 10Gbase-T (10Gbase-T <full-duplex>)
    status: active
    groups: epair 

If i remember right, when i unticked DHCP, Berkeley Packet Filter and VNET are both left ticked! thanks ill give it a go!
 

fizzgig656

Contributor
Joined
Nov 6, 2012
Messages
192
Ok so I went through my settings and this is what I have for all my jails and I think it can apply in your case:
on basic properties
- DHCP Autoconfigure IPv4: unchecked
- VNET: checked
- Berkeley Packet Filter: unchecked (why did you check this?)


Jail properties
- allow_set_hostname: checked
- allow_raw_sockets: checked

Network Properties:
- interfaces: vnet0:bridge0
- hostname: <name of jail> (in my case for my deluge jail, this value is "deluge" [without quotes])
- ip4_saddrsel: checked
- vnet_default_interace: auto

here is my ifconfig from within my jails (all follow this same setup as far as interfaces go)
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 02:ff:60:14:fa:0a
    hwaddr 02:e1:d0:00:07:0b
    inet 10.0.1.31 netmask 0xffff0000 broadcast 10.0.255.255
    nd6 options=1<PERFORMNUD>
    media: Ethernet 10Gbase-T (10Gbase-T <full-duplex>)
    status: active
    groups: epair 

Ok i tried it so i changed mine to

on basic properties
- DHCP Autoconfigure IPv4: unchecked
- VNET: already checked
- Berkeley Packet Filter: unchecked
IP4 interface: em1 (this is my network interface in freenas network)
IP4 address 192.168.10.41
IP4 netmask /24
IP4 default gateway 192.168.10.1 (my router IP)

Jail properties
- allow_set_hostname: already checked
- allow_raw_sockets: already checked

Network Properties:
- interfaces: vnet0:bridge0 (didnt know if this was ment to be vnet0:em1 as em1 is my freenas interface????)
- hostname: <name of jail> (Already set to plex)
- ip4_saddrsel: checked (both IP4 ans IP6 ticked so unticked IP6)
- vnet_default_interace: auto (already auto)

with these settings i can not connect to https://192.168.10.41:32400/web or via the plugin management option. so ive not revered back to DHCP and works.??
should i not be setting my interfaces to the same as my freenas interface? ive not setup bridging or other interfaces.

sorry for being a pain...
 

nojohnny101

Wizard
Joined
Dec 3, 2015
Messages
1,478
you're not being a pain, just working through the problem

the IPv4 interface should be "vnet0"

Try that.

likewise under network properties, use the value that was set under IPv4 interface.
 

Nvious1

Explorer
Joined
Jul 12, 2018
Messages
67
I just created a jail from the command line with a hard coded ip. Here is the output of the config.json so you can compare.

Build command.
iocage create -n "fakejail" -r 11.2-RELEASE ip4_addr="vnet0|192.168.1.250/24" defaultrouter="192.168.1.1" vnet="on" boot="on"

Code:
root@freenas[~]# cat /mnt/media01/iocage/jails/fakejail/config.json
{
    "CONFIG_VERSION": "14",
    "allow_chflags": "0",
    "allow_mlock": "0",
    "allow_mount": "0",
    "allow_mount_devfs": "0",
    "allow_mount_nullfs": "0",
    "allow_mount_procfs": "0",
    "allow_mount_tmpfs": "0",
    "allow_mount_zfs": "0",
    "allow_quotas": "0",
    "allow_raw_sockets": "0",
    "allow_set_hostname": "1",
    "allow_socket_af": "0",
    "allow_sysvipc": "0",
    "allow_tun": "0",
    "available": "readonly",
    "basejail": "no",
    "boot": "on",
    "bpf": "no",
    "children_max": "0",
    "cloned_release": "11.2-RELEASE",
    "comment": "none",
    "compression": "lz4",
    "compressratio": "readonly",
    "coredumpsize": "off",
    "count": "1",
    "cpuset": "off",
    "cputime": "off",
    "datasize": "off",
    "dedup": "off",
    "defaultrouter": "192.168.1.1",
    "defaultrouter6": "none",
    "depends": "none",
    "devfs_ruleset": "4",
    "dhcp": "off",
    "enforce_statfs": "2",
    "exec_clean": "1",
    "exec_fib": "0",
    "exec_jail_user": "root",
    "exec_poststart": "/usr/bin/true",
    "exec_poststop": "/usr/bin/true",
    "exec_prestart": "/usr/bin/true",
    "exec_prestop": "/usr/bin/true",
    "exec_start": "/bin/sh /etc/rc",
    "exec_stop": "/bin/sh /etc/rc.shutdown",
    "exec_system_jail_user": "0",
    "exec_system_user": "root",
    "exec_timeout": "60",
    "host_domainname": "none",
    "host_hostname": "fakejail",
    "host_hostuuid": "fakejail",
    "host_time": "yes",
    "hostid": "00000000-0000-0000-0000-0CC47A48A302",
    "hostid_strict_check": "off",
    "interfaces": "vnet0:bridge0",
    "ip4": "new",
    "ip4_addr": "vnet0|192.168.1.250/24",
    "ip4_saddrsel": "1",
    "ip6": "new",
    "ip6_addr": "none",
    "ip6_saddrsel": "1",
    "jail_zfs": "off",
    "jail_zfs_dataset": "iocage/jails/fakejail/data",
    "jail_zfs_mountpoint": "none",
    "last_started": "2019-03-11 20:23:01",
    "login_flags": "-f root",
    "mac_prefix": "02ff60",
    "maxproc": "off",
    "memorylocked": "off",
    "memoryuse": "off",
    "mount_devfs": "1",
    "mount_fdescfs": "1",
    "mount_linprocfs": "0",
    "mount_procfs": "0",
    "mountpoint": "readonly",
    "msgqqueued": "off",
    "msgqsize": "off",
    "nmsgq": "off",
    "notes": "none",
    "nsemop": "off",
    "nshm": "off",
    "nthr": "off",
    "openfiles": "off",
    "origin": "readonly",
    "owner": "root",
    "pcpu": "off",
    "priority": "99",
    "pseudoterminals": "off",
    "quota": "none",
    "release": "11.2-RELEASE-p9",
    "reservation": "none",
    "resolver": "/etc/resolv.conf",
    "rlimits": "off",
    "securelevel": "2",
    "shmsize": "off",
    "stacksize": "off",
    "stop_timeout": "30",
    "swapuse": "off",
    "sync_state": "none",
    "sync_target": "none",
    "sync_tgt_zpool": "none",
    "sysvmsg": "new",
    "sysvsem": "new",
    "sysvshm": "new",
    "template": "no",
    "type": "jail",
    "used": "readonly",
    "vmemoryuse": "off",
    "vnet": "on",
    "vnet0_mac": "02ff608ef9bc 02ff608ef9bd",
    "vnet1_mac": "none",
    "vnet2_mac": "none",
    "vnet3_mac": "none",
    "vnet_default_interface": "none",
    "vnet_interfaces": "none",
    "wallclock": "off"
}#                              


I was able to shell in to jail, bootstrap pkg and install nano from the internet so I know that it was working.
 

ewhac

Contributor
Joined
Aug 20, 2013
Messages
177
Just for laughs: Inside the jail, enter the command netstat -rn and see if there's a line reading something like:

Code:
Internet:
Destination        Gateway            Flags     Netif Expire
default            10.0.0.1           UGS        igb0

If there's no line reading 'default', then the jail has no default route, and can't talk to anything outside the jail's local subnet.
 

fizzgig656

Contributor
Joined
Nov 6, 2012
Messages
192
you're not being a pain, just working through the problem

the IPv4 interface should be "vnet0"

Try that.

likewise under network properties, use the value that was set under IPv4 interface.
Yep, thats it sorted. so for "others like me"

on basic properties
- DHCP Autoconfigure IPv4: unchecked
- VNET: already checked
- Berkeley Packet Filter: unchecked
IP4 interface: vnet0
IP4 address 192.168.10.41
IP4 netmask /24
IP4 default gateway 192.168.10.1

Jail properties
- allow_set_hostname: already checked
- allow_raw_sockets: already checked

Network Properties:
- interfaces: vnet0:bridge0
- hostname: <name of jail> (Already set to plex)
- ip4_saddrsel: checked (both IP4 ans IP6 ticked so unticked IP6)
- vnet_default_interace: auto (already auto)

test folder added to plex via web link and it updated metadata poster etc.... so thanks.
 

nojohnny101

Wizard
Joined
Dec 3, 2015
Messages
1,478
Great to hear. please mark thread as "solved" by clicked on "..." at top of thread (top right) then clicked "edit thread" then mark as solved.
 

Fordguy

Cadet
Joined
May 15, 2019
Messages
2
I ran into the same problem after trying to switch Plex from DHCP to a fixed IP. Followed these instructions and it is now working perfectly.

Thanks
 
Top