Wrong route?

Hello!
I had one interface - eno1.
I connected a second one - enxc84d4427bdf2

I set it up so that now this new enxc84d4427bdf2 should receive everything via DHCP, while eno1 has a static IP address.

After applying the settings, everything works ONLY if eno1 is also connected to the network via a cable.
If both eno1 and enxc84d4427bdf2 connected with cable - all is working.
If you remove the cable from enxc84d4427bdf2, everything works via IP on eno1.

But if you remove the cable from eno1 and leave it in enxc84d4427bdf2, neither the web nor smb work.
How is this possible, and what should I do?
Please help.

ip route show
default via 192.168.1.1 dev eno1 proto static

how to change def route to enxc84d4427bdf2?

The simple answer is - Use static IPs on both NICs.

Unix does not normally support DHCP over more than 1 interface. Even if it did, routing could be messy. Plus, their is the potential problem if both interfaces are on the same sub-net.

Here is some information:

2 Likes