Hello everyone, I have the following problem while trying to create a jail.
My MBO has 2 NICs. I want one to be used by FreeNAS and the second one to be used by the jail.
I have made a new jail (non VIMAGE one) and designated the second NIC to the jail. Here is the warden output:
However, I am unable to set up the network in the jail. In the jail I am using this in the /etc/rc.conf
It doesn't work.
when I try to ping eg. 8.8.8.8 from the jail I get
Here is the ifconfig output on the host side
I've removed IP address settings for the em1 in the console setup.
Any tips how to make it work? I've been searching in this forum and other places but without any luck.
My MBO has 2 NICs. I want one to be used by FreeNAS and the second one to be used by the jail.
I have made a new jail (non VIMAGE one) and designated the second NIC to the jail. Here is the warden output:
Code:
id: 1 host: dns_server iface: em1 ipv4: alias-ipv4: bridge-ipv4: alias-bridge-ipv4: defaultrouter-ipv4: ipv6: alias-ipv6: bridge-ipv6: alias-bridge-ipv6: defaultrouter-ipv6: autostart: Enabled vnet: Disabled nat: Disabled mac: 86:e1:bc:aa:e1:80 status: Running type: standard flags: allow.raw_sockets=true
However, I am unable to set up the network in the jail. In the jail I am using this in the /etc/rc.conf
Code:
..... ifconfig_em1="inet 192.168.2.83 netmask 255.255.255.0" defaultrouter="192.168.2.1"
It doesn't work.
Code:
root@dns_server:/ # ifconfig em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500 options=9b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM> ether 08:00:27:7f:3d:ae media: Ethernet autoselect (1000baseT <full-duplex>) status: active em1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500 options=9b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM> ether 08:00:27:ee:9e:40 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>
when I try to ping eg. 8.8.8.8 from the jail I get
Code:
ping: socket: Protocol not supported
Here is the ifconfig output on the host side
Code:
[root@freenas ~]# ifconfig em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500 options=9b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM> ether 08:00:27:f0:8d:23 inet 192.168.2.82 netmask 0xffffff00 broadcast 192.168.2.255 nd6 options=9<PERFORMNUD,IFDISABLED> media: Ethernet autoselect (1000baseT <full-duplex>) status: active em1: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500 options=9b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM> ether 08:00:27:d3:f2:07 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>
I've removed IP address settings for the em1 in the console setup.
Any tips how to make it work? I've been searching in this forum and other places but without any luck.
Last edited by a moderator: