I have two computers connected by wire directly:
PC-1 ============= PC-2
PC-1 configuration:
IP Address: 192.168.1.1 netmask: 255.255.255.0
PC-2 configuration:
IP Address: 192.168.1.2 netmask: 255.255.255.0
PC-1 and PC-2 run some applications communicated with TCP/IP. My primary objective is log the conversations between PC-1 and PC-2 without any data loss.
Now, here is my problem. I removed the cable between two computers, and placed another computer (PC-3) that runs Linux and has two NICs:
PC-1 ============= |(eth0) PC-3 (eth1)| ============= PC-2
I shouldn't make changes (or configure) anything at PC-1 and PC-2. So I set this configuration at PC-3:
- eth0: IP Address: 192.168.1.2 netmask: 255.255.255.0
- eth1: IP Address: 192.168.1.1 netmask: 255.255.255.0
But It doesn't work. How should I configure these two NICs?