Mannekino
Patron
- Joined
- Nov 14, 2012
- Messages
- 332
Hi,
I'm trying to learn more about the various network settings for jails but I'm not getting a lot from the documentation unfortunately. I find the settings confusing and I'm hoping for a more layman explanation of the options. I currently have one jail running with Transmission and I'm using DHCP for this and it seems to be working well. I created a second test jail because I want to understand the networking options better and I would like to have a jail with a static IP address also.
Here is the
And this is the ifconfig from my current test jail:
Questions about "Basic Properties"
Right now my test jail is configured as follows and I think this is the right way to go about it for using a static IP address but I'm not sure.
I have the following questions regarding this section of the configuration:
When I get to the "Network properties" I get completely lost unfortunately. I've read the tool tips and manual but I don't really understand.
Thank you in advance.
I'm trying to learn more about the various network settings for jails but I'm not getting a lot from the documentation unfortunately. I find the settings confusing and I'm hoping for a more layman explanation of the options. I currently have one jail running with Transmission and I'm using DHCP for this and it seems to be working well. I created a second test jail because I want to understand the networking options better and I would like to have a jail with a static IP address also.
Here is the
ifconfig
output of my FreeNAS server, it's running on bare metal and I have one psychical interface configured em1
.Code:
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:74:57:e1 hwaddr 00:25:90:74:57:e1 nd6 options=9<PERFORMNUD,IFDISABLED> media: Ethernet autoselect status: no carrier 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:74:57:e0 hwaddr 00:25:90:74:57:e0 inet 192.168.178.3 netmask 0xffffff00 broadcast 192.168.178.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:dc:dd:47:50: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:7 flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP> ifmaxaddr 0 port 6 priority 128 path cost 2000 member: vnet0:4 flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP> ifmaxaddr 0 port 4 priority 128 path cost 2000 member: em1 flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP> ifmaxaddr 0 port 2 priority 128 path cost 20000 vnet0:4: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500 description: associated with jail: transmission options=8<VLAN_MTU> ether 02:ff:60:03:aa:46 hwaddr 02:b7:d0:00:04:0a nd6 options=1<PERFORMNUD> media: Ethernet 10Gbase-T (10Gbase-T <full-duplex>) status: active groups: epair vnet0:7: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500 description: associated with jail: test options=8<VLAN_MTU> ether 02:ff:60:ae:1b:75 hwaddr 02:b7:d0:00:06:0a nd6 options=1<PERFORMNUD> media: Ethernet 10Gbase-T (10Gbase-T <full-duplex>) status: active groups: epair
And this is the ifconfig from my current 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 02:ff:60:ae:1b:76 hwaddr 02:b7:d0:00:07:0b inet 192.168.178.5 netmask 0xffffff00 broadcast 192.168.178.255 nd6 options=1<PERFORMNUD> media: Ethernet 10Gbase-T (10Gbase-T <full-duplex>) status: active groups: epair
Questions about "Basic Properties"
Right now my test jail is configured as follows and I think this is the right way to go about it for using a static IP address but I'm not sure.
I have the following questions regarding this section of the configuration:
- From what I read it is preferred to enable
VNET
for a jail. I'm still not 100% sure on what this does exactly. Is this similar to, lets say, setting up a "bridged" network in VMware Workstation or VirtualBox which I'm using on my workstation? - What is the best interface to select? I have the options listed below:
em0
: this would be my primary psychical network interface that is currently not in useem1
: this would be my secondary psychical network interface that is connected to my home routerbridge0
: I don't fully understand how this differs from thevnet0
option, hoping to learn what the difference is between this and the last interface.vnet0
: this interface appears when you check theVNET
box above. Is this the preferred interface?
- I'm assuming when you enable
VNET
for at least one jail thebridge0
device is created on the FreeNAS server and under that "bridge device" all the virtual network interfaces are created for the jails, am I getting this right conceptually? - Am I correct to think that the
epair0b
network interface inside the jail is thevnet0:7
interface outside of the jail, on the FreeNAS server? - It states that you need to enable the
Berkeley Packet Filter
when enabling DHCP. I assume it's best to not select it if you are using a static IP address configuration?
When I get to the "Network properties" I get completely lost unfortunately. I've read the tool tips and manual but I don't really understand.
- When I switch the network interface from
vnet0
tobridge0
the text in "interfaces" remains the samevnet0:bridge0
. Shouldn't this text change also depending on the network interface I selected in "Basic Properties"? Why is it the same text for both thevnet0
andbridge0
interfaces. This goes back to my earlier question about the difference between those two. - The checkbox for
ip4.saddrsel
is always checked whether or notVNET
is selected. The tool tip says "Only available when the jail is not configured to use VNET". If I selectVNET
the box is still ticked, why is this? - And lastly, why are there two mac-addresses listed in the box
vnet0_mac
? I assume these are two mac-addresses separated by a space? Why are there two?
Thank you in advance.
Last edited: