I have something I do not understand and is not working for me. So I hope that someone here can help me with this.
The situation is that I have one server with to network interfaces each in their own separated physical network.
Now I have configured one network interface, say en1, with the IP 10.0.0.11/24 and the other with IP 10.0.0.12/24. (Please don't ask why they are in the same network, that is a whole different question and belief me, it is needed.)
The yaml config is the following:
network:
ethernets:
en1:
dhcp4: false
addresses: [10.0.0.11/24]
routes:
- to: 0.0.0.0/0
via: 10.0.0.254
nameservers:
addresses: [10.0.0.251]
en2:
dhcp4: false
addresses: [10.0.0.12/24]
version: 2
Now the weird thing that I do not understand, is that the IP 10.0.0.12 is available via the en1 network. So if I ping the 10.0.0.12 address from a computer connected to the en1 network, it responds, even though the en2 is physically not connected to the same network.
This is a problem, because the 10.0.0.12 address is also used on the en1 network and therefore this causes a conflict in the network. (And no, I am afraid I cannot just use another IP address.)
So how do I separate these networks en1 and en2? What am I missing here?