I work at a hosting company (obviously not doing much networking) and the datacenter just gave us an IP block for one of our customers who has a machine in our rack there. When I assign the IPs to a machine, I am generally just told what IPs to assign, but no one is currently online, so I am trying to understand this a bit better.
The IP address block I need to add to the client's machine is 74.117.238.112/28
From what I have read, The usable IPs should be .113 - .125, making it 13 usable, reserving the first and last. When I look at how his other IP block is setup though, it is 64.79.102.64/29 but the usable IPs setup on his machine are .66 - .70, which looks like the first 2 are reserved (.64 and .65)?
Also, the subnet mask for the current IP block is 255.255.255.248 and the gateway is 64.79.102.65. Do these change from block to block or do they stay the same?
The usable range is .113 to .126 (.112 being the network and .127 being the broadcast, there is some discussion to be had regarding using the network address but let's forget about that right now) - meaning 14 usable IP addresses, this is with a /28 (255.255.255.240) netmask.
The usable range of the second block is .65 to .70 (with .64 as the network and .71 as the broadcast) - meaning 6 usable IP addresses with a /29 (255.255.255.248) netmask. The gateway of 64.79.102.65 falls within this range so is a valid gateway address.
If I were you I'd play around with one of the many web-based IP calculators, they really help learners and even get used by seasoned pros too sometimes.
The tool ipcalc (available on most linux distributions) may solve your questions:
As per ipcalc's output you can get the parameters you need. The IPs which are available for your host: 74.117.238.113-74.117.238.126 and the netmask: 255.255.255.240.
About which gateway you have to use, you should ask your network provider.
There are some websites that provide that (or similar) tools, for example this one