1

I try to connect two linux computers via a crossover cable. I need help at troubleshooting.

I configured ip-address , and on PC1 ifconfig-command shows

enp0s7: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.0.1  netmask 255.255.255.0  broadcast 192.168.0.255

On PC2 it shows

en01: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
        inet 192.168.0.2 netmask 255.255.255.0 broadcast 192.168.0.255

when i run ping 192.168.0.2 on PC or 192.168.0.1 on PC2, i get "Destination Host unreachable".

When i ping the wireless devices, it works.

Edit

Sometimes i try to restart or/and shut down NetworkManager. Then it works. i use ubuntu.

yagmoth555
  • 16,300
  • 4
  • 26
  • 48
Karl
  • 11
  • 1

1 Answers1

1

I'm guessing your wireless devices are also in 192.168.0.0/24 - if that's the case then that's your problem.

Ideally you should specify a different IP range for the direct connection (eg 172.16.0.1 and 172.16.0.2) or - and I don't recommend this - change the netmask for the directly connected machines to 255.255.255.252 - which will be a more specific route and thus preferred. (It will come back to bite you if you want to set up routing to other systems though.

davidgo
  • 5,964
  • 2
  • 21
  • 38