Community discussions

MikroTik App
 
User avatar
neandero
Member Candidate
Member Candidate
Topic Author
Posts: 243
Joined: Fri Jul 17, 2009 11:43 am
Location: Inside Mind

How to get this range of ip?

Fri Nov 04, 2011 8:11 pm

10.10.100.1 to 10.10.200.254

when in addresses or dhcp will it be something like:
10.10.100.0/16
mask
10.10.250.255

?

thanks,
 
fewi
Forum Guru
Forum Guru
Posts: 7717
Joined: Tue Aug 11, 2009 3:19 am

Re: How to get this range of ip?

Fri Nov 04, 2011 8:12 pm

That's not a valid IP network. You should read up on TCP/IP subnetting.

How many IP addresses do you need to support? What do you want the router IP address to be? Plug that information into a subnet calculator such as this one: http://www.subnetmask.info/
 
User avatar
neandero
Member Candidate
Member Candidate
Topic Author
Posts: 243
Joined: Fri Jul 17, 2009 11:43 am
Location: Inside Mind

Re: How to get this range of ip?

Fri Nov 04, 2011 9:43 pm

yeah there was a mistake writing the mask :D

but i need my system to give out ip to users:

start 10.10.100.1
stop 10.10.200.254

if mask is 255.255.255.0 that means 255 ip /24
if mask is 255.255.0.0 that means 255x255 ip /16
if mask is 255.0.0.0 that means 255x255x255 ip /8

knowing these i only need 100x255 ips
but i need it to be no less no more no out of this range
x.x.100.1 up to x.x.200.254

thanks
 
fewi
Forum Guru
Forum Guru
Posts: 7717
Joined: Tue Aug 11, 2009 3:19 am

Re: How to get this range of ip?

Fri Nov 04, 2011 9:55 pm

It doesn't break down like that.

The smallest possible network that contains 10.10.100.1 - 10.10.200.254 is 10.10.0.0/16. You can then of course set your IP pool to 10.10.100.1 - 10.10.200.254, but 10.10.0.1 - 10.10.99.254 and 10.10.201.0 - 10.10.255.254 will also be available though of course you don't have to use them.

Edit: changed "The only possible network that contains" to "The smallest possible network that contains".
Last edited by fewi on Fri Nov 04, 2011 10:20 pm, edited 1 time in total.
 
User avatar
neandero
Member Candidate
Member Candidate
Topic Author
Posts: 243
Joined: Fri Jul 17, 2009 11:43 am
Location: Inside Mind

Re: How to get this range of ip?

Fri Nov 04, 2011 10:07 pm

It doesn't break down like that.

The only possible network that contains 10.10.100.1 - 10.10.200.254 is 10.10.0.0/16. You can then of course set your IP pool to 10.10.100.1 - 10.10.200.254
yeah, I like this approach and I'll just leave out what I don't need.

These IP's are used static to be assigned to users.

thanks a lot bro,

Who is online

Users browsing this forum: DanMos79, Minions70, raiser and 96 guests