Page 1 of 1

How do you setup Mageia to Mageia computer connection?

PostPosted: Nov 2nd, '16, 04:46
by reltek
I have two computers running Mageia 5. I want to connect them together using crossover cable. So, that my programs running on both of these computers can make TCP/IP socket to socket connection. I have searched online high and low for information on this but came empty handed.

I have tried as suggested by someone on another forum by creating static ipv4 address, netmask and gateway ONLY and everything else BLANK. Then, I simply clicked on the connect button on both of these computers after making sure the crossover cable is connect to both of these computers. Although both Mageia said connected, my ping test failed. In fact, ping came back and said host unreachable.

Please, could someone on this forum guide me in the right direction or give me a guidance. Thank you.

Re: How do you setup Mageia to Mageia computer connection?

PostPosted: Nov 4th, '16, 01:25
by doktor5000
Hi, it would be helpful if you could at least provide the output as root of the following commands for both boxes:

Code: Select all
ifconfig -a
netstat -rn


Would probably also be helpful if you could run ethtool against the wired interface, e.g. like so if the interface which can be seen in ifconfig output is called enp5s0
Code: Select all
ethtool -S enp5s0

Re: How do you setup Mageia to Mageia computer connection?

PostPosted: Nov 5th, '16, 09:48
by jiml8
Your ping test failed because you did not set up your routing table.

Set the machines up the way you described; set up a static IP for each machine. Connect them together.

Then set up your routing table. Here is how you do that.

Assume Machine A has IP address 192.168.10.1/24 and Machine B has IP address 192.168.10.2/24. Also assume your ethernet device on each machine is identified as eno167777 (check this, and know what your device IS identified as)

Then, as root on the command line, on machine A, enter the following line:
Code: Select all
route add -host 192.168.10.2 dev eno167777


and on machine B enter the following line:
Code: Select all
route add -host 192.168.10.1 dev eno167777


and it will work.