Business case:
A computer has eth0 and eth1 and eth0 address is 192.168.1.2 (static). The eth0 is used by a configuration software to configure the address of eth1 in the field. eth0 is only for this purpose.
PC ---- [eth0 Linux Computer eth1] ----- server
eth1 is to connect to a server and the customer will get data from this computer to store on the server. The PC shall not reach the server in any way. The Linux computer should NOT redeliver any packets from PC to the server, or from the server to the PC. The Linux computer is not a bridge.
Question 1:
If the eht1 IP assigned in the field is 192.168.1.100 and on same subnet with eth0, will it cause a problem? If the application software listens on the 192.168.1.2, and connected by PC 192.168.1.3, and if the application software use this connection to send back to PC, will the OS know which NIC it should use?
If the field people set the eth1 to be 192.168.1.2, which is same IP address, will Linux application listen on eth0 and still respond correctly to PC?
Or, should I restrict field people to assign eth1 to have same subnet?
Question 2:
Since it is believed that Question 1 is possible. Now can eth0 and eth1 have same IP address?
The plan is for the Linux PC to listen on TCP port only, and only respond to connections from PC or server. So once connected, the software knows which NIC to go through to reply.
Further, can PC and Server have same IP as well, if the Linux PC never initiate any IP activity, or even Ping.