Community discussions

MikroTik App
 
alternativi_boy
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 53
Joined: Tue Apr 01, 2008 8:39 pm

Ip addressess

Wed Apr 02, 2008 11:29 pm

hello everybody, i have a little quesion..

i have two clients that use a switch, and when i added the ip address i added

xxx.xxx.x.x/29, and they can use ip 2-6, can anybody tell me how can i add an ip to use just two ip 2 and 3

example:

192.168.1.2
and
192.168.1.3

thank You
 
saransoft
just joined
Posts: 6
Joined: Mon Mar 31, 2008 9:20 am

Re: Ip addressess

Thu Apr 03, 2008 8:30 pm

no answer?
 
gacopl
Frequent Visitor
Frequent Visitor
Posts: 63
Joined: Sun Jul 29, 2007 5:11 pm
Location: Poland

Re: Ip addressess

Fri Apr 04, 2008 4:48 pm

try 192.168.0.2-192.168.0.3

cheers
 
BuccaNET
newbie
Posts: 40
Joined: Fri Mar 28, 2008 4:30 pm

Re: Ip addressess

Fri Apr 04, 2008 5:51 pm

Try 192.168.1.0/30 for 1-2
That will restrict it to 192.168.1.1 and 192.168.1.2

Cory
 
abab_rafiq
Member Candidate
Member Candidate
Posts: 118
Joined: Thu Aug 24, 2006 12:47 pm
Location: Dhaka

Re: Ip addressess

Fri Apr 04, 2008 8:56 pm

Calculating IP address without calculating binary system, only for SUBNETTING.

All you need to calculate from IP addresses is

1. Network Address?
2. Broadcast Address?
3. Subnet Mask?
4. Total Usable Host?
5. First Usable Host?
6. Last Usable Host?

First of All just keep in mind

/25 for 128.

Now count
/26 for 192 (Difference between /25 and /26 is 128 + 64 )
/27 for 224 (Difference between /26 and /27 is 192 + 32 )
/28 for 240 (Difference between /28 and /27 is 224 + 16 )
/29 for 248 (Difference between /29 and /28 is 240 + 8 )
/30 for 252 (Difference between /30 and /29 is 248 + 4 )


Now let’s, get an example: you have got an IP address from your ISP like 192.168.100.27/25.
What does it mean?? How to find out answers of above question?

Look at the slash ( / ) prefix of the IP address. It is /25 which represent the subnet mask 255.255.255.128. It also means total 128 host number is available in the network.

Network Address and Broadcast Address?

It has total 128 host and you’ve got the IP address 27, now multiply 128 to find in which range you got IP address 27. It is between 0 – 127, so that your Network address is 0 and all we know the last address of the network is broadcast address, so which is 127.

Subnet mask?
As we already defined the subnet mask is 255.255.255.128.

Total Usable Host?
For all network usable host = Total host – 2 (2 goes for network and broadcast address)

First Usable Host?
That is 1, my dear.

Last Usable Host?
126, hope all of you understand why. Cuz when 127 goes for broadcast address so that 126 is the last address which can you put to any node.

That’s ALL

But I think another example will help you all. So giving another example:
Let assume another IP address like 172.16.212.177/27. We need to find out all above information about this IP address block.

Also look at the slash ( / ) prefix here. It is /27 which represent the subnet mask 255.255.255.224. It also means total 32 host number is available in the network.


Network and Broadcast Address?
According to our calculation for /27, total host is 32. Our IP address is 177, now multiply 32 to find in which range you got IP address 177. It’s between 160–191 (I know it is 160 - 192; here I wrote 191 cuz if you include 160 and added more 32 number then it will 191) , so that your network address is 160 and your broadcast address is 191.

Subnet Mask?
It is 255.255.255.224

Total Usable Host?

Calculated, it is 30.

First Usable Host?
It is 161.

Last Usable Host?

190.

Rafiq...
 
alternativi_boy
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 53
Joined: Tue Apr 01, 2008 8:39 pm

Re: Ip addressess

Fri Apr 04, 2008 9:24 pm

first i wanna thank you rafiq for his answer but i dont understand it..

when i add ip address

192.168.0.1/30 then

the ip add. is 192.168.0.2, gateway is 192.168.0.1, and broadcast is 192.168.0.3.., so the customer can use only an ip address..and subbnet is 255.255.255.252

but when i add 192.168.0.1/29 then

ip address is 192.168.0.2-6, gateway 192.168.0.1, abd broadcast is 192.168.0.7, and the customer can use 6 ip addresses, subbnet mask is 255.255.255.248,

so mu question is that the clients that work i switch be able tu use only

192.168.0.2-3...

thank you very much for answer
 
abab_rafiq
Member Candidate
Member Candidate
Posts: 118
Joined: Thu Aug 24, 2006 12:47 pm
Location: Dhaka

Re: Ip addressess

Fri Apr 04, 2008 9:31 pm

If I'm not wrong you want to use only 2 IP address for user and a gateway, not more than that or not less than that.

It is not possible to draw a network with 5 IP address. Only 2,4,8,16,32,64,128,256,512,1024,2048.... like these way is possible. As like you count for your RAM memory.

Rafiq...
 
wildbill442
Forum Guru
Forum Guru
Posts: 1055
Joined: Wed Dec 08, 2004 7:29 am
Location: Sacramento, CA

Re: Ip addressess

Fri Apr 04, 2008 10:16 pm

this wastes more IP's, but since they're private.. just create two /30's, one for each user.

192.168.0.0/30

192.168.0.4/30

I don't know how your network is designed so this is just a suggestion based on the limited information you've provided.

Who is online

Users browsing this forum: No registered users and 27 guests