From what I know, you need a crossover Ethernet cable to connect two Linux computers directly via Ethernet cable. Have you been able to connect two Linux computers with that particular cable before?
Connecting to Ubuntu Server 22.04 (locally installed)
A ethernet switch will work to if you cant find a crossover cable.
When I get stubborn stuff that dont work with crossover I throw a switch inline and it usually works
either way should work
It's not really like just connecting two Linux computers - since this desktop that has Ubuntu server on it was actually used as a server many years ago, it has LAN output (forget what it's called) that used to go to a wi-fi router, then from there we could hook up 3 - 4 other desktops. I just thought it would be simpler to hook my current Solus laptop to that one LAN output port since it will be the only computer connected to the server.
I supposed I should test by putting the router in between?
Or is this a 'networking' issue so should be I on the Ubuntu forums to get assistance? I have very low networking knowledge.
I completely forgot about Webmin (and now Cockpit)! This should make it much easier setting up my 'network'. I'll install one of these and try again.
MichaelFinko No like TraceyC said a crossover cable should work.
It could be a Firewall issue. Also it's not clear how exactly do you want to connect to it, ssh, samba share...?
My advice is to read Ubuntu Server documentation.
Axios yea, it's been so long that I had a server set up that I forgot our set-up (and I only maintained it, I did not set it up). The wi-fi router was before the server, and an Ethernet switch was after it, then of course, the desktops connected to the switch.
So I'll get a switch to solve the issue (more common than the crossover ethernet cable, 5 ports, also maybe will add a Raspberry Pi later).
Thanks, and to @TraceyC for the heads up.
Axios I got a basic ethernet switch (tp-link 5 port, TL-SG105), hooked everything up, but when I enter in the address of the server to access 'Cockpit' (https://server address:9090) Solus still does not see anything. It's not a firewall issue as I allowed per instructions on 'Cockpit' (and, tested with 'sudo ufw disable' on the Ubuntu server).
Physical connections:
1) internet ethernet cable to the server (Ubuntu 22.04.3)
2) ethernet cable from server (special LAN out port) to ethernet switch (since there are just 5 ports in the front, I connected this cable to the first one).
3) ethernet cable from ethernet switch (second port) to desktop with Solus OS
(power for the switch is 'on' green light is on)
Software:
1) when I 'ifconfig' on the Ubuntu server, I get three connections, enp2s0, enp5s0 and lo.
2) when I 'edit connection' on Solus OS to add a connection, I choose 'manual' in IP4 and enter in the address, netmask and gateway from enp2s0 (on the Ubuntu machine it says 'broadcast' instead of gateway, so I assume this is it). If I choose 'Auto DHCP' then the pic of the 'wheel' keeps spinning forever and never connects.
3) up until I had added one connection, for the server all was fine, but when I decided to test adding another connection for enp5so, then Solus would no longer display either connection to choose, but rather 'Auto Ethernet', which then just 'spins' forever also. I tried deleting all the connections and starting over, but the 'Auto Ethernet' keeps appearing. And, when I look at the 'Connection Information' for 'Auto Ethernet' it displays the information for the third connection 'lo'
So now I'm really stuck, I've tried so many possible configurations, none seem to work, any suggestions?
Thanks,
Mike
- Edited
MichaelFinko Leave gateway blank and try it also if you have firewall on solus disable it.
Since it appears one 2 things happening your server does not give out ip so it sits and spins or for
some reason that lan port (but from what I gather you used that port in the past.)
do the lights flicker when trying to access the server on the 2 ports the cables are plugged into?
Axios ok, I tried leaving the gateway blank, no changes (firewall I turned off on both machines a long time ago via command line)
strange, when I ping from my Solus desktop to the server on enp2s0 it pings once (looks like the correct line of information) then changes to 'Host unreachable'
when I ping 'lo' it pings normally many times until stopped.
I can't ping enp5s0 as there is no ip address listed (most likely this is for ivp6? it just has something like a MAC address listed)
when I ping from the server to the Solus desktop it says 'Network is unreachable'
yes, each time I click to retry, the lights on the ethernet switch blink once, and, right next to each ethernet port on the switch is a tiny green indicator light (on).
MichaelFinko The lo is a loopback device it is proper (would be worried if it wasnt listed)
(Lo is local if that makes sense)
your enp5s0 and enp2s0 is what your worried about.
Watch the network light where you plug into the server if it blinks should be working right.
All that you said appears normal to me either something isnt configured right are you typing the right
stuff to connect ?
Axios Who knows, since I am not a system administrator and am only stabbing at a solution, I could be doing a lot of things incorrectly. I would have thought most everything would have been automated for setting up a (super simple/basic) network but apparently not.
Plan B - pay a qualified person to set up my network, at least I will learn what I was doing incorrectly.