Hmm.. extending the sketch with:
system("ifconfig eth0 192.168.2.178 netmask 255.255.0.0 up");
system("ifconfig > /dev/ttyGS0");
system("telnetd -l /bin/sh"); //Start the telnet server on Galileo
pmu:~ pmu$ ssh 192.168.2.178
ssh: connect to host 192.168.2.178 port 22: Connection refused
this thread should solve your problem: Help to setup an Ethernet connection
If you don't have dhcp server you can configure network like this:
connect <service name>
config <service name> ipv4 manual 192.168.2.178 255.255.0.0 <gateway>
One of the troubles (and things that make me really curious) is how to do the first login with the Galileo boards. The Edison was working great with USB-to-ETH0 connection, but trying the same with Galileo somehow feels more difficult.
The only thing I find is doing a sketch from the Arduino IDE and then use an USB connection with serial communication.
Now, I have Galileo 1 and 2. The Galileo 1 does not answer at all anymore (only a strange bytesequence), and the Galileo 2 does not show much information either.
Well... would be great to get more ideas!
I thought you have serial cable to connect with with Galileo. That is the easiest way in I recommend to use it for first connection. I dont know why didn't Intel put FTDI chip already on board, it would help many users including me. Before I got myself one cable I used: Poor man's telnet for Galileo
It works and set up first ETH connection on Galileo with it. I hope it helps.
Thanks! That looks very helpful. I'll check that strategy.