Jump to content

Banner.jpg.b89429c566825f6ab32bcafbada449c9.jpg

Networking - No Route to Host


Gina

Recommended Posts

  • Replies 208
  • Created
  • Last Reply
gina@Mint-Desktop ~ $ sudo arp -a
[sudo] password for gina: 
? (192.168.1.101) at f0:9f:c2:f3:1b:87 [ether] on enp2s0
router.router.local (192.168.1.254) at 00:0f:94:d9:61:91 [ether] on enp2s0
? (192.168.1.174) at <incomplete> on enp2s0
? (192.168.1.108) at <incomplete> on enp2s0
ginarepconcorde.router.local (192.168.1.173) at <incomplete> on enp2s0
gina@Mint-Desktop ~ $ 

Not sure what 192.168.1.101 is - could be the AP I guess.  174 is my Mini 3D printer (ginarepmini), 173 is my Concorde printer.  Don't know what 108 is.

Link to comment
Share on other sites

See if you have any luck fixing the ip addresses of the RPi on the router.

You could also try installing "fping" and then running "fping -c 1 -g 192.168.1.0/24".  That should try to get a response from every configured interface on your network, so if the RPi has changed address you may well see it there (and it will populate the ARP cache, so you can browse that to find machines if necessary).  Not everything will respond necessarily, but most should I'd think.

James

Link to comment
Share on other sites

4 hours ago, Gina said:

could be the AP I guess

Gina

Iv'e been having a look at this post and 192.168.1.101 is indeed you wireless AP just reread the thread and you have listed it on page 1 of with MAC Address ending with 1b:87

Ive looked on my Rpi and my wireless setting's controlled by  network manager Gui and in etc/NetworkManger/system-connections list my wifi connections just thought I'd add as I am running ubuntu 16.04

Andy

Link to comment
Share on other sites

from a terminal type nmcli d (assuming you are using network manager to control you network connections)

DEVICE             TYPE      STATE         CONNECTION
...
wlan0              wifi      disconnected     --

 

to make sure wireless turned on type nmcli r wifi on

then type nmcli d wifi list

this should then list wifi's avail

*  SSID           MODE   CHAN  RATE       SIGNAL  BARS  SECURITY
   ...
   my_wifi      Infra  5     54 Mbit/s  89      ▂▄▆█  WPA2

then type nmcli d wifi connect my_wifi password <password>

change my_wifi to your wifi and password to your password

worth a try

Link to comment
Share on other sites

gina@asc2:~$ nmcli d
DEVICE           TYPE      STATE         CONNECTION         
enxb827ebc3de49  ethernet  connected     Wired connection 1 
wlan0            wifi      disconnected  --                 
lo               loopback  unmanaged     --                 
gina@asc2:~$ nmcli r wifi on
gina@asc2:~$ nmcli d wifi list
No command 'nmcli' found, did you mean:
 Command 'nmcli' from package 'network-manager' (main)
nmcli: command not found
gina@asc2:~$ 
gina@asc2:~$ nmcli d
DEVICE           TYPE      STATE         CONNECTION         
enxb827ebc3de49  ethernet  connected     Wired connection 1 
wlan0            wifi      disconnected  --                 
lo               loopback  unmanaged     --                 
gina@asc2:~$ 

 

Link to comment
Share on other sites

7 minutes ago, Gina said:

gina@asc2:~$ nmcli d
DEVICE           TYPE      STATE         CONNECTION         
enxb827ebc3de49  ethernet  connected     Wired connection 1 
wlan0            wifi      disconnected  --                 
lo               loopback  unmanaged     --                 
gina@asc2:~$ nmcli r wifi on
gina@asc2:~$ nmcli d wifi list
No command 'nmcli' found, did you mean:
 Command 'nmcli' from package 'network-manager' (main)
nmcli: command not found
gina@asc2:~$ 

 

from same location you type nmcli d  and it states that your wifi is disconnected from a wifi connection  so the command "nmcli d wifi list" should without quotes should list avail wifi AP's avail

 

update I to have just SSH'd into my rpi and lists my avail wifi AP's with the command nmcli d wifi list

Link to comment
Share on other sites

1 minute ago, Gina said:

No.  SSH via Ethernet.

Ok, if you're only logged in over the network then there's a possibility that the wifi interface has not been brought up because there's no-one logged in on the console.  You may be able to fix that from the network manager.  I'm not sure.  I'll have to find something with a wifi interface and a console to have a look.

James

Link to comment
Share on other sites

4 minutes ago, Gina said:

I'd have thought so.

I've also just rebooted my rpi and connected like yourself via ethernet and reran the command and it lists my wifi AP's

can you type

systemctl status snap.networkmanager

and response should be

snap.networkmanager.service - Service for snap application networkmanager
   Loaded: loaded (/etc/systemd/system/snap.networkmanager.service; enabled; vendor preset: enabled)
   Active: active (running) since Thu 2017-02-16 09:59:39 UTC; 16s ago
   Main PID: 1389 (networkmanager)
   []
 

Link to comment
Share on other sites

gina@asc2:~$  systemctl status snap.networkmanager 
● snap.networkmanager.service
   Loaded: not-found (Reason: No such file or directory)
   Active: inactive (dead)
gina@asc2:~$ 

 

Link to comment
Share on other sites

I think next I would try:

Unplug the wired interface.  Check to see if you can connect to the wifi address using ssh.  If not, log in on the console leaving the wired interface unconnected.  Then see if the wifi interface comes up and you can connect using ssh.

James

Link to comment
Share on other sites

6 minutes ago, Gina said:

gina@asc2:~$  systemctl status snap.networkmanager 
 snap.networkmanager.service
   Loaded: not-found (Reason: No such file or directory)
   Active: inactive (dead)
gina@asc2:~$ 

 

stupid me I was connected to another machine

type nmcli r

should show what is active

rpi2.png

Link to comment
Share on other sites

21 hours ago, Gina said:

gina@asc2:~$ iwconfig
wlan0     IEEE 802.11bgn  ESSID:off/any  
          Mode:Managed  Access Point: Not-Associated   Tx-Power=31 dBm   
          Retry short limit:7   RTS thr:off   Fragment thr:off
          Power Management:on
          
enxb827ebc3de49  no wireless extensions.

lo        no wireless extensions.

 

Just going off this output - recommendation is / was usually to disable power management for WiFi on rPi. Used to get this issue frequently on my home automation network until I killed power management off.

Link to comment
Share on other sites

I'll go through all the replies shortly.  Meanwhile, this is RPi on it's own fed from 5v with nothing plugged in.  192.168.1.80 is the IP assigned in my router (but does that work with the AP?).

gina@Mint-Desktop ~ $ ssh gina@192.168.1.80
ssh: connect to host 192.168.1.80 port 22: No route to host
gina@Mint-Desktop ~ $ 

 

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. By using this site, you agree to our Terms of Use.