How do you setup Mageia to Mageia computer connection?

How do you setup Mageia to Mageia computer connection?

Postby reltek » Nov 2nd, '16, 04:46

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.
reltek
 
Posts: 20
Joined: Feb 26th, '16, 19:02

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

Postby doktor5000 » Nov 4th, '16, 01:25

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
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18052
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

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

Postby jiml8 » Nov 5th, '16, 09:48

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.
jiml8
 
Posts: 1254
Joined: Jul 7th, '13, 18:09


Return to Networking

Who is online

Users browsing this forum: No registered users and 1 guest

cron