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?

  • ReluctantMuskrat@lemmy.worldOP
    link
    fedilink
    arrow-up
    2
    ·
    edit-2
    2 months ago

    Thanks for the reply. They seem to both be active. I don’t have iftop but tcpdump shows traffic on both, though much less on the wifi connection.

    ip route shows:

    default via 192.168.1.1 dev enp1s0 proto dhcp metric 100 
    default via 192.168.1.1 dev wlp2s0 proto dhcp metric 600 
    169.254.0.0/16 dev enp1s0 scope link metric 1000 
    192.168.1.0/24 dev enp1s0 proto kernel scope link src 192.168.1.4 metric 100 
    192.168.1.0/24 dev wlp2s0 proto kernel scope link src 192.168.1.4 metric 600
    

    I really didn’t think I’d be allowed to statically assign the same IP address to both interfaces, and surprisingly it seems to be working ok. I’m just wondering what I don’t know that’s going to bite me :)