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.
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.
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…
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.
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.