I have a FreeBSD 11.1 iocage jail on a different subnet than the host and I want it to reach other hosts on the same subnet as the host.

Host IP: (interface re0)
Default GW:

I have configured:

iocage set ip4_addr="re0|" myjail
iocage set defaultrouter="" myjail

From the jail I can ping the host, but cannot ping another hosts on the same network as the host, for example (the gateway).

Any hint?.


All host in this network must know about route way to On your main GW add path to via Or on specified host just add:

route add gateway 

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.