Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trouble setting up. #5

Open
RamonGebben opened this issue Mar 31, 2014 · 2 comments
Open

Trouble setting up. #5

RamonGebben opened this issue Mar 31, 2014 · 2 comments

Comments

@RamonGebben
Copy link

Dear Tom,

I am trying to implement your app a Pi, i followed the instructions to the letter but can't seem to get an ssh connection to 172.16.254.1.
I also don't know which user to connect with.. root or pi.
So i tried ssh [email protected]
and ssh [email protected]
When i try to ping it via command line it doesn't respond.

ramon@Zoe:/home/ramon     13:57 Mar 31
» ping 172.16.254.1
PING 172.16.254.1 (172.16.254.1) 56(84) bytes of data.
^C
--- 172.16.254.1 ping statistics ---
14 packets transmitted, 0 received, 100% packet loss, time 13103ms

I do have the eth both setup good i think, this is the output from ifconfig on the Pi:

pi@QPortal ~ $ ifconfig
eth0      Link encap:Ethernet  HWaddr b8:27:eb:1c:e4:09  
          inet addr:192.168.178.25  Bcast:192.168.178.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:44514 errors:0 dropped:0 overruns:0 frame:0
          TX packets:7590 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:10726228 (10.2 MiB)  TX bytes:910851 (889.5 KiB)

eth1      Link encap:Ethernet  HWaddr ac:7f:3e:e6:52:67  
          inet addr:172.16.254.1  Bcast:172.16.254.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:3774 (3.6 KiB)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

And this is the output from route on the Pi:

pi@QPortal ~ $ route -nNvee
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface    MSS   Window irtt
0.0.0.0         192.168.178.1   0.0.0.0         UG    0      0        0 eth0     0     0      0
172.16.254.0    0.0.0.0         255.255.255.0   U     0      0        0 eth1     0     0      0
192.168.178.0   0.0.0.0         255.255.255.0   U     0      0        0 eth0     0     0      0

Any ideas?
I really hope you can help me solve this.

@tomoconnor
Copy link
Owner

Can you ssh in on the other ethernet adapter?

what's the output of netstat -anp like (run as root)

@RamonGebben
Copy link
Author

Yes, i can access it via ssh on eth0.

Hope this helps, and thanks for your time and help in advance.

root@QPortal:~# netstat -anp
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      2302/sshd       
tcp        0      0 192.168.178.25:22       192.168.178.18:38500    ESTABLISHED 7518/0          
udp        0      0 0.0.0.0:61631           0.0.0.0:*                           7189/dhclient   
udp        0      0 0.0.0.0:44496           0.0.0.0:*                           2052/dhclient   
udp        0      0 0.0.0.0:5353            0.0.0.0:*                           2197/avahi-daemon: 
udp        0      0 0.0.0.0:1068            0.0.0.0:*                           2841/dhclient   
udp        0      0 0.0.0.0:68              0.0.0.0:*                           7189/dhclient   
udp        0      0 0.0.0.0:68              0.0.0.0:*                           2841/dhclient   
udp        0      0 0.0.0.0:68              0.0.0.0:*                           2052/dhclient   
udp        0      0 172.16.254.1:123        0.0.0.0:*                           2258/ntpd       
udp        0      0 192.168.178.25:123      0.0.0.0:*                           2258/ntpd       
udp        0      0 127.0.0.1:123           0.0.0.0:*                           2258/ntpd       
udp        0      0 0.0.0.0:123             0.0.0.0:*                           2258/ntpd       
udp        0      0 0.0.0.0:51588           0.0.0.0:*                           2197/avahi-daemon: 
Active UNIX domain sockets (servers and established)
Proto RefCnt Flags       Type       State         I-Node   PID/Program name    Path
unix  2      [ ACC ]     SEQPACKET  LISTENING     515      157/udevd           /run/udev/control
unix  2      [ ACC ]     STREAM     LISTENING     2940     2259/X              /tmp/.X11-unix/X0
unix  2      [ ACC ]     STREAM     LISTENING     3210     2446/ssh-agent      /tmp/ssh-4Yn8aCbJAyHv/agent.2436
unix  2      [ ACC ]     STREAM     LISTENING     3333     2459/pcmanfm        /tmp/.pcmanfm-socket--0-pi
unix  2      [ ACC ]     STREAM     LISTENING     3364     2468/menu-cached    /tmp/.menu-cached-:0-pi
unix  2      [ ACC ]     STREAM     LISTENING     2840     2197/avahi-daemon:  /var/run/avahi-daemon/socket
unix  2      [ ACC ]     STREAM     LISTENING     2939     2259/X              @/tmp/.X11-unix/X0
unix  12     [ ]         DGRAM                    2695     2027/rsyslogd       /dev/log
unix  2      [ ]         DGRAM                    2987     2332/thd            /var/run/thd.socket
unix  2      [ ACC ]     STREAM     LISTENING     3224     2450/dbus-daemon    @/tmp/dbus-WNcvvXogHG
unix  2      [ ACC ]     STREAM     LISTENING     2794     2155/dbus-daemon    /var/run/dbus/system_bus_socket
unix  3      [ ]         STREAM     CONNECTED     3412     2450/dbus-daemon    @/tmp/dbus-WNcvvXogHG
unix  3      [ ]         STREAM     CONNECTED     2842     2197/avahi-daemon:  
unix  3      [ ]         STREAM     CONNECTED     3058     2155/dbus-daemon    /var/run/dbus/system_bus_socket
unix  3      [ ]         STREAM     CONNECTED     3342     2459/pcmanfm        
unix  2      [ ]         DGRAM                    4018     2841/dhclient       
unix  3      [ ]         STREAM     CONNECTED     3324     2462/lxpolkit       
unix  2      [ ]         DGRAM                    2901     2258/ntpd           
unix  3      [ ]         DGRAM                    522      157/udevd           
unix  3      [ ]         STREAM     CONNECTED     2843     2155/dbus-daemon    /var/run/dbus/system_bus_socket
unix  3      [ ]         STREAM     CONNECTED     3451     2480/gvfs-gphoto2-v 
unix  3      [ ]         STREAM     CONNECTED     3328     2259/X              @/tmp/.X11-unix/X0
unix  3      [ ]         STREAM     CONNECTED     3057     2354/lightdm        
unix  3      [ ]         STREAM     CONNECTED     3372     2458/lxpanel        
unix  3      [ ]         STREAM     CONNECTED     3212     2259/X              @/tmp/.X11-unix/X0
unix  3      [ ]         STREAM     CONNECTED     3445     2450/dbus-daemon    @/tmp/dbus-WNcvvXogHG
unix  3      [ ]         STREAM     CONNECTED     3325     2259/X              @/tmp/.X11-unix/X0
unix  3      [ ]         STREAM     CONNECTED     2875     2155/dbus-daemon    /var/run/dbus/system_bus_socket
unix  3      [ ]         DGRAM                    523      157/udevd           
unix  3      [ ]         STREAM     CONNECTED     3226     2450/dbus-daemon    
unix  3      [ ]         STREAM     CONNECTED     3093     2155/dbus-daemon    /var/run/dbus/system_bus_socket
unix  3      [ ]         STREAM     CONNECTED     3360     2466/gvfsd          
unix  3      [ ]         STREAM     CONNECTED     3408     2450/dbus-daemon    @/tmp/dbus-WNcvvXogHG
unix  3      [ ]         STREAM     CONNECTED     3092     2357/console-kit-da 
unix  3      [ ]         STREAM     CONNECTED     3336     2155/dbus-daemon    /var/run/dbus/system_bus_socket
unix  2      [ ]         DGRAM                    9417     7189/dhclient       
unix  3      [ ]         STREAM     CONNECTED     3440     2476/udisks-daemon  
unix  3      [ ]         STREAM     CONNECTED     3327     2459/pcmanfm        
unix  2      [ ]         DGRAM                    2709     2052/dhclient       
unix  2      [ ]         DGRAM                    3059     2155/dbus-daemon    
unix  3      [ ]         STREAM     CONNECTED     3361     2450/dbus-daemon    @/tmp/dbus-WNcvvXogHG
unix  3      [ ]         STREAM     CONNECTED     3411     2459/pcmanfm        
unix  3      [ ]         STREAM     CONNECTED     3460     2450/dbus-daemon    @/tmp/dbus-WNcvvXogHG
unix  3      [ ]         STREAM     CONNECTED     2798     2155/dbus-daemon    
unix  3      [ ]         STREAM     CONNECTED     3225     2450/dbus-daemon    
unix  2      [ ]         DGRAM                    3341     2424/polkitd        
unix  3      [ ]         STREAM     CONNECTED     3228     2259/X              @/tmp/.X11-unix/X0
unix  2      [ ]         DGRAM                    9890     7518/0              
unix  3      [ ]         STREAM     CONNECTED     3211     2449/dbus-launch    
unix  3      [ ]         STREAM     CONNECTED     3459     2482/gvfs-afc-volum 
unix  3      [ ]         STREAM     CONNECTED     3418     2450/dbus-daemon    @/tmp/dbus-WNcvvXogHG
unix  2      [ ]         DGRAM                    2833     2197/avahi-daemon:  
unix  3      [ ]         STREAM     CONNECTED     3069     2357/console-kit-da 
unix  3      [ ]         STREAM     CONNECTED     3386     2468/menu-cached    /tmp/.menu-cached-:0-pi
unix  3      [ ]         STREAM     CONNECTED     3235     2436/lxsession      
unix  3      [ ]         STREAM     CONNECTED     3022     2235/lightdm        
unix  2      [ ]         DGRAM                    2710     1719/ifplugd        
unix  3      [ ]         STREAM     CONNECTED     3436     2476/udisks-daemon  
unix  3      [ ]         STREAM     CONNECTED     3335     2462/lxpolkit       
unix  3      [ ]         STREAM     CONNECTED     3407     2468/menu-cached    
unix  3      [ ]         STREAM     CONNECTED     2836     2197/avahi-daemon:  
unix  3      [ ]         STREAM     CONNECTED     3227     2449/dbus-launch    
unix  3      [ ]         STREAM     CONNECTED     3424     2474/gvfs-gdu-volum 
unix  3      [ ]         STREAM     CONNECTED     3236     2259/X              @/tmp/.X11-unix/X0
unix  3      [ ]         STREAM     CONNECTED     3441     2155/dbus-daemon    /var/run/dbus/system_bus_socket
unix  3      [ ]         STREAM     CONNECTED     3330     2458/lxpanel        
unix  3      [ ]         STREAM     CONNECTED     3103     2155/dbus-daemon    /var/run/dbus/system_bus_socket
unix  2      [ ]         DGRAM                    3056     2354/lightdm        
unix  3      [ ]         STREAM     CONNECTED     3425     2155/dbus-daemon    /var/run/dbus/system_bus_socket
unix  3      [ ]         STREAM     CONNECTED     3452     2450/dbus-daemon    @/tmp/dbus-WNcvvXogHG
unix  3      [ ]         STREAM     CONNECTED     2837     2198/avahi-daemon:  
unix  3      [ ]         STREAM     CONNECTED     3315     2456/openbox        
unix  3      [ ]         STREAM     CONNECTED     2797     2155/dbus-daemon    
unix  3      [ ]         STREAM     CONNECTED     2874     2235/lightdm        
unix  3      [ ]         STREAM     CONNECTED     3444     2474/gvfs-gdu-volum 
unix  3      [ ]         STREAM     CONNECTED     3343     2450/dbus-daemon    @/tmp/dbus-WNcvvXogHG
unix  3      [ ]         STREAM     CONNECTED     3102     2424/polkitd        
unix  3      [ ]         STREAM     CONNECTED     3331     2259/X              @/tmp/.X11-unix/X0
unix  3      [ ]         STREAM     CONNECTED     3070     2155/dbus-daemon    /var/run/dbus/system_bus_socket
unix  3      [ ]         STREAM     CONNECTED     3417     2474/gvfs-gdu-volum 
unix  3      [ ]         STREAM     CONNECTED     3316     2259/X              @/tmp/.X11-unix/X0
unix  3      [ ]         STREAM     CONNECTED     3023     2259/X              @/tmp/.X11-unix/X0
unix  3      [ ]         STREAM     CONNECTED     3437     2155/dbus-daemon    /var/run/dbus/system_bus_socket

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants