Community discussions

MikroTik App
 
Heisenburger
just joined
Topic Author
Posts: 14
Joined: Thu Nov 12, 2015 6:17 pm

[SOLVED] The most simple /29 configuration

Thu Nov 12, 2015 6:23 pm

Complete beginner here. My modem is directly connected to the router, which is connected to 3 computers. I have a static IP and /29. What I'm trying to do is giving each computer a permanent unique public IP.

After searching and reading the forums on /29, I still don't know what I'm doing. Any help would be appreciated.
Last edited by Heisenburger on Fri Nov 20, 2015 8:17 am, edited 1 time in total.
 
User avatar
pukkita
Trainer
Trainer
Posts: 3051
Joined: Wed Dec 04, 2013 11:09 am
Location: Spain

Re: The most simple /29 configuration

Fri Nov 13, 2015 11:25 pm

Have a look at http://wiki.mikrotik.com/wiki/Testwiki/ ... principles

Having a /29 only means you have 6 useable IPs. How do you assign them to your other hosts is up to you: either by setting each by hand on each computer, or assign it statically by DHCP, by PPPoE...

Just set the one you assign on the main router as default gateway for the rest and you'll be set.
 
Heisenburger
just joined
Topic Author
Posts: 14
Joined: Thu Nov 12, 2015 6:17 pm

Re: The most simple /29 configuration

Sat Nov 14, 2015 3:29 am

Thanks for the reply. I managed to set it up on each PC and want to learn how to do it another way. Is it possible to set each PC to "obtain IP automatically" and still get an IP from the router? I've been reading about DHCP but still clueless when it comes to setting things up....
Last edited by Heisenburger on Thu Nov 19, 2015 1:33 am, edited 1 time in total.
 
User avatar
tslytsly
Frequent Visitor
Frequent Visitor
Posts: 65
Joined: Tue Oct 27, 2015 6:52 pm
Location: Nottingham
Contact:

Re: The most simple /29 configuration

Mon Nov 16, 2015 4:30 pm

Thanks for the reply. I managed to set it up on each PC and want to learn how to do it another way. Is it possible to set each PC to "obtain IP automatically" and still get an IP from the router? I've been reading about DHCP but is clueless when it comes to setting things up....
Hi,

Yes you can do that.

Lets assume you have been given 1.1.1.0/29 (just change the IPs to the real ones)
This means you have .1 - .6 to use for hosts.

We need to give an IP to the router itself, lets use .1
ip address add address=1.1.1.1/29 interface=bridge-local comment="Router IP"
Obviously change the IP and interface details to match your router.

Next we need to setup the DHCP server on the router, easiest way is to use the setup wizard:
ip dhcp-server setup
Select interface to run DHCP server on

dhcp server interface: bridge-local
Select network for DHCP addresses

dhcp address space: 1.1.1.0/29
Select gateway for given network

gateway for dhcp network: 1.1.1.1
Select pool of ip addresses given out by DHCP server

addresses to give out: 1.1.1.2-1.1.1.6
Select DNS servers

dns servers: 8.8.8.8
Select lease time

lease time: 10m
Again change the details as needed

Bingo you now have a DHCP server that will distribute your public IPs.

edited to correct the typos and poor grammar :roll:
Last edited by tslytsly on Mon Nov 16, 2015 5:41 pm, edited 1 time in total.
 
User avatar
pukkita
Trainer
Trainer
Posts: 3051
Joined: Wed Dec 04, 2013 11:09 am
Location: Spain

Re: The most simple /29 configuration

Mon Nov 16, 2015 5:35 pm

After that, and once each server has gotten its ip address, you can make that lease static (IP > DHCP Server > Leases), so that a given server gets always the same given ip.
 
User avatar
tslytsly
Frequent Visitor
Frequent Visitor
Posts: 65
Joined: Tue Oct 27, 2015 6:52 pm
Location: Nottingham
Contact:

Re: The most simple /29 configuration

Mon Nov 16, 2015 5:39 pm

After that, and once each server has gotten its ip address, you can make that lease static (IP > DHCP Server > Leases), so that a given server gets always the same given ip.
Good point pukkita, wish I'd said that! :D
 
Heisenburger
just joined
Topic Author
Posts: 14
Joined: Thu Nov 12, 2015 6:17 pm

Re: The most simple /29 configuration

Thu Nov 19, 2015 1:13 am

Very detailed and helpful. Thanks so much for taking the time guys! My router's finally all set up now.
 
User avatar
tslytsly
Frequent Visitor
Frequent Visitor
Posts: 65
Joined: Tue Oct 27, 2015 6:52 pm
Location: Nottingham
Contact:

Re: The most simple /29 configuration

Thu Nov 19, 2015 12:52 pm

Very detailed and helpful. Thanks so much for taking the time guys! My router's finally all set up now.
No problem, if you found our posts useful please rate them positive! :-D

Also, you might want to edit the title of this thread and add [SOLVED] for the benefit of future generations!

:)
 
Heisenburger
just joined
Topic Author
Posts: 14
Joined: Thu Nov 12, 2015 6:17 pm

Re: [SOLVED] The most simple /29 configuration

Fri Nov 20, 2015 8:18 am

Done and done :D
 
seomocca
just joined
Posts: 2
Joined: Thu Dec 03, 2015 1:25 pm
Contact:

Re: [SOLVED] The most simple /29 configuration

Thu Dec 03, 2015 1:54 pm

Thank you very much for the information. You have my vote. :D