Egil Opstad
Cadet
- Joined
- Oct 7, 2016
- Messages
- 2
First post! :)
So! I've been struggling for a while with jails and networks. I have two NICs in the server connected to two separate physical routers.
router 1 - 10.0.1.0/24, DHCP enabled - connected to ra0
router 2 - 10.0.2.0/24, DHCP enabled - connected to em0
server default gateway: 10.0.1.1
gateway for 10.0.2.0/24 is 10.0.2.1
The issue I am encountering is the following:
I tried setting static IP's in the 10.0.2.0/24 segment and set the gateway for 10.0.2.1, but it is unclear to me if it works, but it seems to just leave me with network, but no internet. I tried changing resolv.conf when having a static IP to use the DNS server off of the 10.0.2.0/24 router, and felt it got me a bit closer as I got to ping an url and having it resolve to an ip but never getting an answer. This though, leads me to believe that the traffic from the jail to the site works, but the replies never reach the jail.
When changing the config of a particular jail to use the 10.0.1.0/24 NIC and a static IP, everything works instantly.
Am I onto something here (as in I need to set up something along the line of static routes) or am I just fumbling in the dark? Any tips?
So! I've been struggling for a while with jails and networks. I have two NICs in the server connected to two separate physical routers.
router 1 - 10.0.1.0/24, DHCP enabled - connected to ra0
router 2 - 10.0.2.0/24, DHCP enabled - connected to em0
server default gateway: 10.0.1.1
gateway for 10.0.2.0/24 is 10.0.2.1
The issue I am encountering is the following:
- Set up jail, choose nic em0
- Enable DHCP (causes em0 to get greyed out)
- Disable VIMAGE (causes em0 to be active again)
- boot
I tried setting static IP's in the 10.0.2.0/24 segment and set the gateway for 10.0.2.1, but it is unclear to me if it works, but it seems to just leave me with network, but no internet. I tried changing resolv.conf when having a static IP to use the DNS server off of the 10.0.2.0/24 router, and felt it got me a bit closer as I got to ping an url and having it resolve to an ip but never getting an answer. This though, leads me to believe that the traffic from the jail to the site works, but the replies never reach the jail.
When changing the config of a particular jail to use the 10.0.1.0/24 NIC and a static IP, everything works instantly.
Am I onto something here (as in I need to set up something along the line of static routes) or am I just fumbling in the dark? Any tips?