ona icon indicating copy to clipboard operation
ona copied to clipboard

Allow using first and last IP in the subnet for NAT

Open rchap opened this issue 13 years ago • 3 comments

ONA presents an alert when an attempt is made to use one of non-useable IPs (Subnet and broadcast) for NAT: Save failed. ERROR => IP address (x.x.x.x) can t be a subnet s base address!

Subnet and broadcast IPs of routed CIDR subnets are legitimate. Perhaps this alert could be changed to a warning to let user proceed regardless?

rchap avatar May 04 '12 02:05 rchap

I dont remember the exact details, but I found something like this when using /31 point to point subnets which only have 2 ips. I'd have to check but I think i ended up just going ahead and actually using /30's on the routers so ona would match.

related to that, /32 for loopback ip's on routers i put in as type PTP but it would be nice if there was a LOOP type.

framer99 avatar Dec 30 '12 01:12 framer99

@framer99 Yes the /31 and /32 subnet masks were at one point causing an issue such that you couldnt use the IP addresses for hosts on those subnets.. That has since been fixed and should work fine now. The Issue here is now that I need to allow for the first and last IP of all the other subnet sizes to be used as well. Initially this was one of those things to help people 'do the right thing' but there are certain cases where you do want to use the subnet and broadcast addresses legitimately. As rchap suggested I will likely turn this into a suggestion/warning instead of a rule/error.

I assume you are speaking of subnet types on this last part? If so there should already be both a Point-to-point and a Loopback subnet type defined. If there is not, you can always define your own subnet types from the admin menu.

mattpascoe avatar Dec 30 '12 04:12 mattpascoe

@mattpascoe Yeah I spoke too soon. I setup a new install with the current github tarball and saw that's all been fixed. I've been using a much older 9.x version for a long long time for a network I support.

I was excited to find opennetadmin active on github while reviewing IPAMs for a new network. OpennetAdmin is the best IPAM I've found.

framer99 avatar Dec 30 '12 18:12 framer99