I'm running Linux Mint on a home server that happens to run pihole. Since it's both a dhcp and dns server for my network, it has a static ip address. It has an ethernet connection as well as wifi and it's always been my understanding that you can't have two network interfaces sharing the same IP address, so I've been looking into ways to have one network adapter enabled and the other disabled and then if the network connection of the active device is lost, the other re-enables with the same IP address and disables the other device. This mostly work.

However while debugging one bit of software that seems to have a problem with me disabling my wifi adapter, I inadvertently enabled both the eth and wifi connections while each have the same, manually assigned ip address and everything so far just seems to work. I didn't think this was possible and I'm wondering, should I expect problems? I can connect to the machine remotely fine, pihole and dvr services installed on the box work. Is there any reason to believe this won't work?

you are viewing a single comment's thread
view the rest of the comments
[–] 1 point 5 months ago (8 children)

I don't know how it's working for you because I just tried on my PC and got an IP address conflict on my router.

  • source
  • hideshow 8 child comments
  • [–] [S] 1 point 5 months ago* (last edited 5 months ago) (7 children)

    You will need to make sure the IP you assign the adapter isn't an IP the router will try to assign to another machine or device. The dhcp services don't assign this IP address and it's manually assigned in the adapter config so I guess the router doesn't know or care.

    I am kind of curious how traffic destined for this address doesn't have issues though, like being received twice. Maybe I haven't tested enough from a mix of devices on the network.

  • source
  • parent
  • hideshow 7 child comments
  • [–] 1 point 5 months ago (1 child)

    There is no DHCP, it's all static addresses, but there is an ARP table maintained at the router, and modern routers protect against ARP poisoning, meaning the same IP cannot have two mac addresses, and they will churn out errors. It's also a security nightmare because many low level packet tracing tools will not work or give out false positives. I still don't know how it's working for you, because by all accounts, it shouldn't.

  • source
  • parent
  • hideshow 1 child comment
  • [–] 1 point 5 months ago

    Metric seems to cause Linux to mostly arp reply on one interface. Not a lot of switching. I can even plug in an Ethernet cable during a network transfer to speed it up.

    Linux treats ips as assigned to the host,so any interface can respond for packets sent to another interface (even if they have different ip addresses).

    There is some network weirdness that a security scanner might complain about, but it "works".

  • source
  • parent
  • load more comments (5 replies)
  • load more comments (5 replies)