SSH using Static IP and netctl - Connection Timed Out

This forum is for topics dealing with problems with software specifically in the ARMv6h repo.

SSH using Static IP and netctl - Connection Timed Out

Postby banyanscamp » Sun Aug 31, 2014 8:48 am

I'm trying to connect to my rPi using an Static IP and an Ethernet cord plugged directly into my laptop.

Currently I have copied the netctl example "ethernet-static" to the netctl folder and have define the properties as such:

$this->bbcode_second_pass_code('', '
IP=static
Address=('192.168.1.159/24')
#Routes=('192.168.0.0/24 via 192.168.1.2')
Gateway='192.168.1.1'
DNS=('192.168.1.1')

## For IPv6 autoconfiguration
#IP6=stateless

## For IPv6 static address configuration
#IP6=static
#Address6=('1234:5678:9abc:def::1/64' '1234:3456::123/96')
#Routes6=('abcd::1234')
#Gateway6='1234:0:123::abcd'

')

When I try and connect via PuTTY, these are the connection settings I use:
PuTTY SSH Direct.jpg
PuTTY SSH Direct.jpg (79.59 KiB) Viewed 3216 times


and under my Network Adapters I have the IPv4 properties blank as follows:
IPV4 Settings.jpg
IPV4 Settings.jpg (64.16 KiB) Viewed 3216 times


when I try and start the eth0 profile I get the following output:
$this->bbcode_second_pass_code('', '
[root@alarmpi netctl]# netctl start eth0-SSH
Job for netctl@eth0\x2dSSH.service failed. See 'systemctl status netctl@eth0\x2dSSH.service' and 'journalctl -xn' for details.
')

What part of this is causing my PuTTY session to time out??

Also, when I ping 192.168.1.159 it times out.
banyanscamp
 
Posts: 2
Joined: Sun Aug 31, 2014 5:48 am

Re: SSH using Static IP and netctl - Connection Timed Out

Postby moonman » Mon Sep 01, 2014 3:32 am

Your computer has no ip because you left all the fields blank. Why? You also haven't provided journalctl log.
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3387
Joined: Sat Jan 15, 2011 3:36 am

Re: SSH using Static IP and netctl - Connection Timed Out

Postby banyanscamp » Mon Sep 01, 2014 5:13 am

Why should it matter if my 'computer' has an Ip Address. This entire process has been to create a Static Ip for my 'Raspberry', not my computer.

Coincidentally, I have also changed my IPv4 Settings giving my computer an Ip address and making sure it was different to my Raspberry (so as not to cause any conflict). This did not help.

I had the settings as follows:
IPV4 Settings2.jpg
IPV4 Settings2.jpg (68.02 KiB) Viewed 3195 times


My Ethernet cable connects my rPi directly to my laptop. There is no DHCP server to dynamically assign Ip's, so I'm not sure what to do.

And how exactly can I provide my journalctl log for you...
banyanscamp
 
Posts: 2
Joined: Sun Aug 31, 2014 5:48 am

Re: SSH using Static IP and netctl - Connection Timed Out

Postby moonman » Mon Sep 01, 2014 5:59 am

How is your computer going to communicate with the raspberrypi without an IP address assigned?

$this->bbcode_second_pass_quote('banyanscamp', '
')And how exactly can I provide my journalctl log for you...

$this->bbcode_second_pass_quote('banyanscamp', '
')$this->bbcode_second_pass_code('', '
[root@alarmpi netctl]# netctl start eth0-SSH
Job for netctl@eth0\x2dSSH.service failed. See 'systemctl status netctl@eth0\x2dSSH.service' and 'journalctl -xn' for details.
')

Specifically:
$this->bbcode_second_pass_code('', 'See 'systemctl status netctl@eth0\x2dSSH.service' and 'journalctl -xn' for details.')

Also, are you using a crossover cable? Your PC's NIC may or may not have RX/TX autosense feature so crossover cable may help.
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3387
Joined: Sat Jan 15, 2011 3:36 am


Return to ARMv6h

Who is online

Users browsing this forum: No registered users and 5 guests