Bug #34413
closedMultiple interfaces with same IP
Description
Our new laptops come with a docking station so each laptop has three wired interfaces, and depending on how the laptop is connected, they all get a different ip, which makes finding the laptop a challenge, to say the least.
2: enp2s0f0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc fq_codel state DOWN group default qlen 1000 link/ether 54:05:db:a6:a6:5d brd ff:ff:ff:ff:ff:ff 3: enp5s0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc fq_codel state DOWN group default qlen 1000 link/ether 54:05:db:a6:a6:5c brd ff:ff:ff:ff:ff:ff 8: enx083a8856da26: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000 link/ether 08:3a:88:56:da:26 brd ff:ff:ff:ff:ff:ff inet 10.10.9.248/22 brd 10.10.11.255 scope global dynamic noprefixroute enx083a8856da26 valid_lft 1419sec preferred_lft 1419sec inet6 fe80::8e53:acb2:e258:c081/64 scope link noprefixroute valid_lft forever preferred_lft forever
For DHCP, it's peanuts to configure the same IP for multiple mac addresses. I can't think of situations where users will try to connect two cables to the same laptop. And even if they do, so what?
Would it be possible to configure this in the foreman?
Updated by Lukas Zapletal almost 3 years ago
- Subject changed from multiple interfaces, same config to Multiple interfaces with same IP
- Status changed from New to Resolved
- Triaged changed from No to Yes
Hello, please prefer our discussion forums for such inquiries.
Foreman (as an inventory tool) does not provide multiple NICs with same IP, that is not even possible in Linux without getting networking issues (which one to use when user connect more than one link?) If you are looking for getting the same IP for multiple MAC addresses on the DHCP server, than unfortunately Foreman is not capable of doing that - the database will not allow creating a NIC in the same subnet with same IP.
How about creating a bond/team across all the three interfaces with a failover that would be configured with a single IP? That could do it and it could be possibly more convenient for users (e.g. when they undock it could actually switch to wifi seamlessly).
Alternatively you could contribute a feature into Foreman - when a host parameter is present, DHCP orchestration could actually orchestrate creation of multiple records per host. There might be dragons tho, I think our DHCP API does not allow multiple IPs in a subnet at all. Yeah, not possible.
Updated by Han Boetes almost 3 years ago
Hello Lukas,
thanks for your extensive and eloquent answer. I like the bond solution, will have a look into it.
Regards,
Han