Drew Heath
Explorer
- Joined
- Mar 7, 2016
- Messages
- 80
For the life of me I am not able to get a network connection in an iocage jail. If I create a jail for warden in the old UI, the jail comes up and networking is fine.
I am creating the iocage jail from the CLI using the following command:
iocage create -n "test" -r 11.1-RELEASE ip4_addr="vnet0|10.250.0.100/24" defaultrouter="10.250.0.1" vnet="on" allow_raw_sockets="1" boot="on"
No other configuration, I am just accessing the jail with jexec, trying to ping and getting 100% loss.
The network looks like:
Thank you in advance for your time!
I am creating the iocage jail from the CLI using the following command:
iocage create -n "test" -r 11.1-RELEASE ip4_addr="vnet0|10.250.0.100/24" defaultrouter="10.250.0.1" vnet="on" allow_raw_sockets="1" boot="on"
No other configuration, I am just accessing the jail with jexec, trying to ping and getting 100% loss.
root@test:/ # ping 10.250.0.1
PING 10.250.0.1 (10.250.0.1): 56 data bytes
^C
--- 10.250.0.1 ping statistics ---
3 packets transmitted, 0 packets received, 100.0% packet loss
The network looks like:
root@test:/ # ifconfig
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
vnet0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=8<VLAN_MTU>
ether 02:ff:60:ae:1b:76
hwaddr 02:bf:20:00:0b:0b
inet 10.250.0.249 netmask 0xffffff00 broadcast 10.250.0.255
nd6 options=1<PERFORMNUD>
media: Ethernet 10Gbase-T (10Gbase-T <full-duplex>)
status: active
groups: epair
Thank you in advance for your time!