Page 1 of 1

[SOLVED] The most simple /29 configuration

Posted: Thu Nov 12, 2015 6:23 pm
by Heisenburger
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.

Re: The most simple /29 configuration

Posted: Fri Nov 13, 2015 11:25 pm
by pukkita
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.

Re: The most simple /29 configuration

Posted: Sat Nov 14, 2015 3:29 am
by Heisenburger
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....

Re: The most simple /29 configuration

Posted: Mon Nov 16, 2015 4:30 pm
by tslytsly
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:

Re: The most simple /29 configuration

Posted: Mon Nov 16, 2015 5:35 pm
by pukkita
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.

Re: The most simple /29 configuration

Posted: Mon Nov 16, 2015 5:39 pm
by tslytsly
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

Re: The most simple /29 configuration

Posted: Thu Nov 19, 2015 1:13 am
by Heisenburger
Very detailed and helpful. Thanks so much for taking the time guys! My router's finally all set up now.

Re: The most simple /29 configuration

Posted: Thu Nov 19, 2015 12:52 pm
by tslytsly
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!

:)

Re: [SOLVED] The most simple /29 configuration

Posted: Fri Nov 20, 2015 8:18 am
by Heisenburger
Done and done :D

Re: [SOLVED] The most simple /29 configuration

Posted: Thu Dec 03, 2015 1:54 pm
by seomocca
Thank you very much for the information. You have my vote. :D