0

How can I configure my router to assign two static IPs to my Computer? My router is a D-Link DIR-825ACG1 AC1200 Router. And my PC is running Ubuntu 20.10.

When I go into my routers LAN settings, I am able to assign one ip address to my computer.

But, if I try to assign one more IP address to my computer, I get this error saying: MAC address is already used.

And I am also not able to assign any ranges like 192.168.0.3/30, and I do not know how ranges work.

Please help me on this. I am unable to find anything on the internet that helps me with this issue.

2 Answers2

2

The DHCP standard doesn't allow multiple IPs for one MAC address.

If you want to have multiple IPs on the same interface, you need to add the second IP on the client manually.

You can either add both IPs on the computer manually or have one over DHCP and set the second one statically on the client, but DHCP only issues one IP per MAC address.

If you want to have both IPs issued by DHCP to the same NIC, you would need to request one IP and then change the MAC address of the NIC and request the second IP.

Something like that is described here: Getting 2 IP addresses on one network card, using DHCP

ralz
  • 2,566
1

DHCP will only assign one IP address per MAC address.

So if you want two IP addresses and don’t want to assign them manually you somehow need to add another Ethernet port to your PC.

Manual assignments of an IP address is typically the only way to get two IP address to share the same physical connection.

If you don’t want to handle it manually, you can always add another Ethernet port to the PC via some kind of expansion card. Either a PCI card or even a USB to Ethernet dongle. Once you do that you have another physical connection that is identified by a specific MAC address and you can then assign an IP address to that MAC address on the router.

This is actually the cleanest and simplest way to do this if you don’t want to get “in the weeds” on manual IP setup or MAC address assignment hacks.

grawity
  • 501,077
Giacomo1968
  • 58,727