DHCP Reservation - same MAC, two networks

This thread has been locked for further replies. You can start a new thread to share your ideas or ask questions.

DHCP Reservation - same MAC, two networks

This thread has been locked for further replies. You can start a new thread to share your ideas or ask questions.
DHCP Reservation - same MAC, two networks
DHCP Reservation - same MAC, two networks
2023-10-08 23:07:59
Model: ER605 (TL-R605)  
Hardware Version: V2
Firmware Version:

Hi,

 

I have an ER605v2 and Omada (software) controller running 5.9

 

I'm trying to setup DHCP reservations for a single client that is connected to two VLANs on the same port - and hence same MAC address. I'd like to reserve an address for each VLAN, the controller UI does not allow me to do this - it claims there is a conflict in MAC address reservation even when I try to add the two reservations on their respective (different) VLAN networks.

 

This seems to be a bug - there's no reason a single MAC address cannot have a reserved IP address on each network.

 

Is this a known issue? Any workarounds?

 

  0      
  0      
#1
Options
3 Reply
Re:DHCP Reservation - same MAC, two networks
2023-10-09 02:17:06

Hi @axorb 

Thanks for posting in our business forum.

First, what you said is not possible. You can set two VLANs on a single port but the device will only get a single IP address at a time unless you modify the port setting and its PVID. So, a device will only get the IP address from the untagged VLAN. There is only one IP address.

The Controller did not allow this then it is blocking such a config from the system level. MAC address is the only identifier in a network in layer 2. MAC address should not show twice when it relates to the IP addresses. From the OSI, you can do this manually by changing the IP address. But our system is not gonna allow this. It's counter-intuitive in networking.

 

This is not a bug. This is against the use. We limit this because we don't want this to cause trouble when you use your networking and change this accidentally. Some open-source stuff may not limit this but you are on your own with your network.

Best Regards! If you are new to the forum, please read: Howto - A Guide to Use Forum Effectively. Read Before You Post. Look for a model? Search your model NOW Official and Beta firmware. NEW features! Subscribe for the latest update!Download Beta Here☚ ☛ ★ Configuration Guide ★ ☚ ☛ ★ Knowledge Base ★ ☚ ☛ ★ Troubleshooting Manual ★ ☚ (Disclaimer: Short links are used above solely for guidance to TP-Link subdomains and are safe and tracker-free. Exercise caution with short links from non-official members on forums. We are not liable for external content or damage from non-official members' link use.)
  0  
  0  
#2
Options
Re:DHCP Reservation - same MAC, two networks
2023-10-09 02:25:44

  @Clive_A the client device is a Linux machine that is able to connect to a single port as a trunk port. It can define 2 virtual interfaces on the single port and tag vlan packets as needed. This means the client is perfectly capable of communicating with the network on 2 vlans from a single port. Given the DHCP request on each vlan will be appropriately tagged, the DHCP server should be able to differentiate which network the request is from and thus which address to assign.

 

I have this working on my existing non-omada router just fine.

  0  
  0  
#3
Options
Re:DHCP Reservation - same MAC, two networks
2023-10-09 02:52:03

  @axorb

axorb wrote

  @Clive_A the client device is a Linux machine that is able to connect to a single port as a trunk port. It can define 2 virtual interfaces on the single port and tag vlan packets as needed. This means the client is perfectly capable of communicating with the network on 2 vlans from a single port. Given the DHCP request on each vlan will be appropriately tagged, the DHCP server should be able to differentiate which network the request is from and thus which address to assign.

 

I have this working on my existing non-omada router just fine.

We don't support this. And you look for a workaround, then you should consider setting a static IP to your Linux.

If it is a Linux and can use two VLAN tagged traffic, then you've trunk-ed it and it is more like a switch.

Like I said, it's counter-intuitive to our system.

VLAN is the logical separation while the MAC address is the only identifier. MAC and IP have a direct relation because the MAC address determines the IP address.

But VLAN and MAC address, are both at layer 2, VLAN is tag/untag is determined by the preset you have for the device.

 

And if it has two virtual interfaces, you should have different MAC addresses to them. Then you should set the MAC addresses of different interfaces to IPs.

Best Regards! If you are new to the forum, please read: Howto - A Guide to Use Forum Effectively. Read Before You Post. Look for a model? Search your model NOW Official and Beta firmware. NEW features! Subscribe for the latest update!Download Beta Here☚ ☛ ★ Configuration Guide ★ ☚ ☛ ★ Knowledge Base ★ ☚ ☛ ★ Troubleshooting Manual ★ ☚ (Disclaimer: Short links are used above solely for guidance to TP-Link subdomains and are safe and tracker-free. Exercise caution with short links from non-official members on forums. We are not liable for external content or damage from non-official members' link use.)
  0  
  0  
#4
Options

Information

Helpful: 0

Views: 423

Replies: 3

Related Articles