Multiple DHCP assigned public IPs via single interface

Hi,

My internet provider allows me to use up to five dynamically assigned IP addresses. Currently I only have a single ethernet port and it is being assigned a single public IP via internet providers DHCP server. I know I could add statis IPs under IP->addresses, but how can I force mikrotik to ask for multiple DHCP assignled Ips on ethernet gateway port?

Regards,
Dimy

Each Ethernet can have only 1 MAC address.
Each Vlan can have 1 MAC address, but you cant use vlans…
So i can offer you only this:
stupid.jpg

It’s ugly.
But I have not better idea.

Thank you for the reply. So you are saying there is no fancy way of doing this with a single physical ethernet port? I found in other sources someone was mentioning DHCP relays, but there was no instructions of how to do it…

DHCP Relay would be for centralizing a DHCP server in a routed or otherwise non-bridged network.

What I would try is this:

Let’s say ETH1 is your WAN interface. You have a DHCP client on that interface. Create a few VLANs on that interface (with a unique MAC) and put a DHCP client on each one. Assign all of the VLANs and ETH1 to a bridge.

Not sure how that would work in practice, but it’s worth a shot.

If I understand correctly you can only change a VLAN’s mac address by adding it to a bridge and changing the bridge’s MAC address. So I am not sure how to get multiple VLANs with different MAC that are attached to a single bridge. What I managed to do is to add the ethernet port to a bridge and change the mac on the bridge. Then I added a DHCP client on the bridge and bridge got another IP address from my provider. So now I was able to use two IP addresses, not sure how to get more than two though…

Just out of curiosity why don’t you just add multiple static addresses to your WAN port? If you know the address range and the subnet you should be able to manually add the addresses…

You’re right, the only way to change the MAC is via the bridge interface. I’m going to ask as well, why not just add the public IP addresses as statics? That’ll make life much easier than looking for a clunky solution.

This could lead to IP conflicts - the DHCP of my Internet provider wouldn’t know that this IP is taken and might give it to some of my fellow neighbors :slight_smile:

You should ask your provider to either assign you a /29 (five static IPs) or reserve 5 IPs for you on their DHCP server.

I’ve worked with providers that do both methods and neither should be a big deal.