Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have a desktop and a laptop running Ubuntu 11.10 and have installed ssh on both but all I return is no route to host. Its my laptop that is trying to connect with the desktop.
You probably do not have a default route set. 'netstat -r' in a command prompt will tell you.
Quote:
netstat -r
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
localnet * 255.255.255.0 U 0 0 0 eth0
loopback * 255.0.0.0 U 0 0 0 lo
default cisco 0.0.0.0 UG 0 0 0 eth0
This is from my system, the second column, 'cisco' is my router. The 'route add' command will add a default route. See this link for its use. -->http://www.cyberciti.biz/faq/linux-route-add/
What you point it at depends on the network. If you have a router, point it there. If this is a point to point config, or through a hub, create a route in each system pointing at the others IP address.
Then you should be able to ping. No more 'no route to host' message.
You probably do not have a default route set. 'netstat -r' in a command prompt will tell you.
This is from my system, the second column, 'cisco' is my router. The 'route add' command will add a default route. See this link for its use. -->http://www.cyberciti.biz/faq/linux-route-add/
What you point it at depends on the network. If you have a router, point it there. If this is a point to point config, or through a hub, create a route in each system pointing at the others IP address.
Then you should be able to ping. No more 'no route to host' message.
Here is the return;
Quote:
willis@willis-laptop:~$ netstat -r
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
default 192.168.10.1 0.0.0.0 UG 0 0 0 wlan0
link-local * 255.255.0.0 U 0 0 0 wlan0
192.168.10.0 * 255.255.255.0 U 0 0 0 wlan0
The 192.168.10.1 is my Trend Net wireless switch and is connected to my gateway, 192.168.1.254, by wire. I can connect by ssh to my laptop from the desktop but really need to connect back the other way so I can use the printer there. Thanks for the assist.
on each machine to see if they have the same fqdn.
One more question: are you trying to ssh by name or ip address? Are they both using ipv4 or is one ipv4 and one ipv6?
I am currently on wire for both and still trying to find an answer. These results are under this config. and from the desktop it reads willis-MS-7309
willis@willis-laptop:~$ hostname -f
willis-laptop
willis@willis-laptop:~$
When I first answered your post, I had no idea you had a switch with routing capability.
Are the desktop and laptop on the same, or different sub-nets? Is it possible to define a static router between the two?
when they are both on wire they are on the same switch but when I go wireless the wireless switch is plugged into the 8 port wired switch placing another switch into the mix.
sorry for not being clear enough, you would think that after doing computers since the VIC 20 and having become a legal senior citizen I should have learned by now... must be getting feeble minded to match my body.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.