Cainram
Dabbler
- Joined
- Jan 23, 2014
- Messages
- 31
In the Morning!
I'm running firmware version FreeNAS-9.2.1.6-RELEASE-x64. In the past I have used my Jails configuration page to determine the IP address assigned to a newly created jail. It is a production machine and here at work we use static IPs for almost everything. When I am setting up a new jail, I NEED it to be assigned a particular IP address upon creation because if it uses an address already in use there could be (and has been in the past - my fault that time...) a conflict.
What I usually do is set the start and end network address ranges in the jails configuration page to the value I want the next jail created to use. Yes, I set them both to the same value. This has always worked in the past. This most recent time, however, I set both values to 10.6.18.22 and then installed the Owncloud plugin as per usual. A jail was automatically created and I didn't get any error messages. When I checked the Jails page, I saw that the jail had been assigned the address 10.6.18.24. What gives? (subnet looks like this: 10.6.18.0/24)
Is there any way to assign a plugin jail an IP address before it is created? Is there any way to install plugins from the repository to an existing jail without manually downloading a PBI? Can jails be set to use DHCP? Any ideas would be helpful.
I know that the 'answer' is to set aside a small range of IP addressses on the network for use with newly created jails and then just change the address of the jail after it is created, then restart the jail. This is problematic, however, if the jail creation routine doesn't respect the range set in the configuration page.
The workaround I am going to use for now is to create a new subnet and set aside a range of IP addresses there for use with jail creation. I'll then move the jails over after testing.
Any input would be much appreciated.
I'm running firmware version FreeNAS-9.2.1.6-RELEASE-x64. In the past I have used my Jails configuration page to determine the IP address assigned to a newly created jail. It is a production machine and here at work we use static IPs for almost everything. When I am setting up a new jail, I NEED it to be assigned a particular IP address upon creation because if it uses an address already in use there could be (and has been in the past - my fault that time...) a conflict.
What I usually do is set the start and end network address ranges in the jails configuration page to the value I want the next jail created to use. Yes, I set them both to the same value. This has always worked in the past. This most recent time, however, I set both values to 10.6.18.22 and then installed the Owncloud plugin as per usual. A jail was automatically created and I didn't get any error messages. When I checked the Jails page, I saw that the jail had been assigned the address 10.6.18.24. What gives? (subnet looks like this: 10.6.18.0/24)
Is there any way to assign a plugin jail an IP address before it is created? Is there any way to install plugins from the repository to an existing jail without manually downloading a PBI? Can jails be set to use DHCP? Any ideas would be helpful.
I know that the 'answer' is to set aside a small range of IP addressses on the network for use with newly created jails and then just change the address of the jail after it is created, then restart the jail. This is problematic, however, if the jail creation routine doesn't respect the range set in the configuration page.
The workaround I am going to use for now is to create a new subnet and set aside a range of IP addresses there for use with jail creation. I'll then move the jails over after testing.
Any input would be much appreciated.