7 Replies Latest reply on Mar 24, 2017 10:09 PM by FGT

    Galileo Gen 2 - Use the LAN connection direct to your PC via SSH

    caothai

      Hi everyone,

       

      I can connect to Galileo Gen 2 by wifi via SSH, but when i try to do it with LAN Wire, it not work :

       

      First i config ip : ifconfig enp0s20f6 192.168.11.37 netmask 255.255.255.0

      And I have :

      enp0s20f6 Link encap:Ethernet  HWaddr 98:4F:EE:05:8C:B3 

                inet addr:192.168.11.37  Bcast:192.168.11.255  Mask:255.255.255.0

                UP BROADCAST MULTICAST  MTU:1500  Metric:1

                RX packets:66 errors:0 dropped:0 overruns:0 frame:0

                TX packets:298 errors:0 dropped:0 overruns:0 carrier:0

                collisions:0 txqueuelen:1000

                RX bytes:22572 (22.0 KiB)  TX bytes:107848 (105.3 KiB)

                Interrupt:51 Base address:0x8000

       

      I also connect ethernet by connmanctl :

       

      connmanctl> services

      *AO Buffalo-G-8768       wifi_e09d31862360_42756666616c6f2d472d38373638_managed_psk

      *A  Wired                ethernet_984fee058cb3_cable

       

      connmanctl> connect ethernet_984fee058cb3_cable

      Connected ethernet_984fee058cb3_cable

       

      connmanctl> technologies

      /net/connman/technology/ethernet

        Name = Wired

        Type = ethernet

        Powered = True

        Connected = True

        Tethering = False

       

      But when i ping to 192.168.11.37 or ssh root@192.168.11.37 22, it not work,

       

      Please help me,

      Thank you,

        • 1. Re: Galileo Gen 2 - Use the LAN connection direct to your PC via SSH
          FGT

          Hi caothai,

           

          caothai wrote:

           

          Hi everyone,

           

          I can connect to Galileo Gen 2 by wifi via SSH, but when i try to do it with LAN Wire, it not work :

           

          First i config ip : ifconfig enp0s20f6 192.168.11.37 netmask 255.255.255.0

          And I have :

          enp0s20f6 Link encap:Ethernet HWaddr 98:4F:EE:05:8C:B3

          inet addr:192.168.11.37 Bcast:192.168.11.255 Mask:255.255.255.0

          UP BROADCAST MULTICAST MTU:1500 Metric:1

          RX packets:66 errors:0 dropped:0 overruns:0 frame:0

          TX packets:298 errors:0 dropped:0 overruns:0 carrier:0

          collisions:0 txqueuelen:1000

          RX bytes:22572 (22.0 KiB) TX bytes:107848 (105.3 KiB)

          Interrupt:51 Base address:0x8000

           

          I also connect ethernet by connmanctl :

           

          connmanctl> services

          *AO Buffalo-G-8768 wifi_e09d31862360_42756666616c6f2d472d38373638_managed_psk

          *A Wired ethernet_984fee058cb3_cable

           

          connmanctl> connect ethernet_984fee058cb3_cable

          Connected ethernet_984fee058cb3_cable

           

          connmanctl> technologies

          /net/connman/technology/ethernet

          Name = Wired

          Type = ethernet

          Powered = True

          Connected = True

          Tethering = False

           

          But when i ping to 192.168.11.37 or ssh root@192.168.11.37 22, it not work,

           

          Please help me,

          Thank you,

           

          I'm not sure I understand your post...

           

          Your Intel Galileo does not have any wifi running with your current ifconfig output, i.e. enp0s20f6 is the Ethernet interface card of your Intel Galileo, not the wifi card. Thus, when you state:

          "I can connect to Galileo Gen 2 by wifi via SSH,"

          do you mean you are using the wifi of your pc/laptop, right? because the Intel Galileo wifi is not working... or I lose something...

           

          Maybe you can send a picture with your working environment showing:

          Intel Galileo Ethernet wiring to pc/laptop/router

          pc/laptop wiring to router/Intel Galileo

          so that I'd figure out what the problems would be.

           

          Fernando.

          • 2. Re: Galileo Gen 2 - Use the LAN connection direct to your PC via SSH
            caothai

            Hi FGT,

             

            Sorry, I don't show ifconfig output wifi, ifconfig - it's really like this :

             

            Ah, i config Ethernet IP by command : ifconfig enp0s20f6 192.168.11.37 netmask 255.255.255.0

            --------------------------------------------------------------------------------------

            enp0s20f6 Link encap:Ethernet  HWaddr 98:4F:EE:05:8C:B3 

                      inet addr:192.168.11.37  Bcast:192.168.11.255  Mask:255.255.255.0

                      inet6 addr: fe80::9a4f:eeff:fe05:8cb3/64 Scope:Link

                      UP BROADCAST MULTICAST  MTU:1500  Metric:1

                      RX packets:0 errors:0 dropped:0 overruns:0 frame:0

                      TX packets:4 errors:0 dropped:0 overruns:0 carrier:0

                      collisions:0 txqueuelen:1000

                      RX bytes:0 (0.0 B)  TX bytes:300 (300.0 B)

                      Interrupt:49

             

            lo        Link encap:Local Loopback 

                      inet addr:127.0.0.1  Mask:255.0.0.0

                      inet6 addr: ::1/128 Scope:Host

                      UP LOOPBACK RUNNING  MTU:65536  Metric:1

                      RX packets:164 errors:0 dropped:0 overruns:0 frame:0

                      TX packets:164 errors:0 dropped:0 overruns:0 carrier:0

                      collisions:0 txqueuelen:0

                      RX bytes:15124 (14.7 KiB)  TX bytes:15124 (14.7 KiB)

             

            wlp1s0    Link encap:Ethernet  HWaddr E0:9D:31:86:23:60 

                      inet addr:192.168.11.50  Bcast:192.168.11.255  Mask:255.255.255.0

                      inet6 addr: fe80::e29d:31ff:fe86:2360/64 Scope:Link

                      UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1

                      RX packets:2131 errors:0 dropped:666 overruns:0 frame:0

                      TX packets:378 errors:0 dropped:0 overruns:0 carrier:0

                      collisions:0 txqueuelen:1000

                      RX bytes:283298 (276.6 KiB)  TX bytes:58544 (57.1 KiB)

             

            --------------------------------------------------------------------------------------

            I'm using wifi to connect to galileo gen 2 board via SSH : ssh root@192.168.11.50

            --------------------------------------------------------------------------------------

            When I check "services" in "connmanctl", i see :

            connmanctl> services

            *AO Buffalo-G-8768       wifi_e09d31862360_42756666616c6f2d472d38373638_managed_psk

            *A  Wired                ethernet_984fee058cb3_cable

             

            ---------------------------------------------------------------------------------------

            So I think, I can connect ethernet like wifi, I use command :

             

            connmanctl> connect ethernet_984fee058cb3_cable

            Connected ethernet_984fee058cb3_cable

            ---------------------------------------------------------------------------------------

            But it's not work, i can't connect to galileo gen 2 by LAN WIRE via SSH :

             

            connmanctl> technologies

            /net/connman/technology/p2p

              Name = P2P

              Type = p2p

              Powered = True

              Connected = False

              Tethering = False

            /net/connman/technology/ethernet

              Name = Wired

              Type = ethernet

              Powered = True

              Connected = False

              Tethering = False

            /net/connman/technology/wifi

              Name = WiFi

              Type = wifi

              Powered = True

              Connected = True

              Tethering = False

             

            Thai,

            • 3. Re: Galileo Gen 2 - Use the LAN connection direct to your PC via SSH
              FGT

              Hi Thai,

               

              With your current configuration, i.e. when you have

              caothai wrote:

               

              Hi FGT,

               

              Sorry, I don't show ifconfig output wifi, ifconfig - it's really like this :

               

              Ah, i config Ethernet IP by command : ifconfig enp0s20f6 192.168.11.37 netmask 255.255.255.0

              --------------------------------------------------------------------------------------

              enp0s20f6 Link encap:Ethernet HWaddr 98:4F:EE:05:8C:B3

              inet addr:192.168.11.37 Bcast:192.168.11.255 Mask:255.255.255.0

              inet6 addr: fe80::9a4f:eeff:fe05:8cb3/64 Scope:Link

              UP BROADCAST MULTICAST MTU:1500 Metric:1

              RX packets:0 errors:0 dropped:0 overruns:0 frame:0

              TX packets:4 errors:0 dropped:0 overruns:0 carrier:0

              collisions:0 txqueuelen:1000

              RX bytes:0 (0.0 B) TX bytes:300 (300.0 B)

              Interrupt:49

               

              lo Link encap:Local Loopback

              inet addr:127.0.0.1 Mask:255.0.0.0

              inet6 addr: ::1/128 Scope:Host

              UP LOOPBACK RUNNING MTU:65536 Metric:1

              RX packets:164 errors:0 dropped:0 overruns:0 frame:0

              TX packets:164 errors:0 dropped:0 overruns:0 carrier:0

              collisions:0 txqueuelen:0

              RX bytes:15124 (14.7 KiB) TX bytes:15124 (14.7 KiB)

               

              wlp1s0 Link encap:Ethernet HWaddr E0:9D:31:86:23:60

              inet addr:192.168.11.50 Bcast:192.168.11.255 Mask:255.255.255.0

              inet6 addr: fe80::e29d:31ff:fe86:2360/64 Scope:Link

              UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1

              RX packets:2131 errors:0 dropped:666 overruns:0 frame:0

              TX packets:378 errors:0 dropped:0 overruns:0 carrier:0

              collisions:0 txqueuelen:1000

              RX bytes:283298 (276.6 KiB) TX bytes:58544 (57.1 KiB)

               

               

              (you should not need conman/connmanctl neither any other netowrk manager/configurations, because both interfaces are "up&running")

               

              You should have ssh access in both interfaces, i.e. from the same computer (other than the Intel Galileo itself) you should be able to login with

              ssh root@192.168.11.50

              from a terminal and

              ssh root@192.168.11.37

              from another terminal

              (both terminals in the same computer or different computers, other than the Intel Galileo)

               

              Or maybe I'm losing something...

               

              Just in case:

              a) do not use connman for the Ethernet interface if you are using the ifconfig command to set the static IP.

              b) did you check there is no other interface with the IP you assigned to the Intel Galileo Ethernet interface?

               

              Please let me know.

               

              Fernando.

              • 4. Re: Galileo Gen 2 - Use the LAN connection direct to your PC via SSH
                caothai

                Hi FGT,

                 

                Maybe it's not static IP on my laptop, so when i ping to galileo on laptop, it go but don't receive data back.

                 

                I try set Static IP on my laptop by add new ethernet connection (I use Ubuntu 14.04 LTS) with ip 192.168.11.38 , but now my laptop can't connect to internet or galileo too.

                ----> But when i disconnect this connection, i can connect to galileo by LAN WIRE and WIFI too.

                 

                I really don't understand what's happen, but it's really work.

                 

                1. Why when i set static IP on my laptop, i can't connect to internet or galileo too?

                 

                2. Why after i disconnect ethernet connection, Ethernet IP of my computer follow DHCP but it can connect to galileo by LAN WIRE?

                 

                I'm newbie of galileo and network too,

                Thank for your help,

                Thai,

                • 5. Re: Galileo Gen 2 - Use the LAN connection direct to your PC via SSH
                  FGT

                  Hi Thai,

                   

                  If there is some configuration/scenario in which

                  ...

                  i can connect to galileo by LAN WIRE and WIFI too.

                  ...

                  then use that, I'll try to explain some possibilities for errors, but I'm far from being sure about what happens.

                   

                  Maybe it's not static IP on my laptop, so when i ping to galileo on laptop, it go but don't receive data back.

                   

                  I try set Static IP on my laptop by add new ethernet connection (I use Ubuntu 14.04 LTS) with ip 192.168.11.38 , but now my laptop can't connect to internet or galileo too.

                  ...

                  This seems to be a problem in your laptops's network configuration, the Intel Galileo network is unrelated to this error. I've had many problems adding new network ethernet connections in Ubuntu. I guess it's because I don't know how to configure it, and in most cases my computer is left with no internet connection. Actually, if your laptop interfaces are working, do not change them/create any new interfaces. Actually, this may answer your question:

                  1. Why when i set static IP on my laptop, i can't connect to internet or galileo too?

                  i.e. your new setting is not fine and generates that your interfaces do not work properly so your laptop becomes disconnected.

                   

                  About

                  2. Why after i disconnect ethernet connection, Ethernet IP of my computer follow DHCP but it can connect to galileo by LAN WIRE?

                  I do not fully understand the sequence, but anyhow

                  a) Those are laptop's network configuration problems, not Intel Galileo ones.

                  b) If there is a scenario in which you are able to connect to your Intel Galileo, do not change it.

                   

                  HTH,

                   

                  Fernando.

                  • 6. Re: Galileo Gen 2 - Use the LAN connection direct to your PC via SSH
                    caothai

                    Thank you,

                     

                    I try on other laptop, I don't set IP static on this laptop, but it's work,

                     

                    1. Fisrt, I connect to galileo via UART Connector,

                    2. I set IP static on galileo : ifconfig enp0s20f6 192.168.11.40 netmask 255.255.255.0

                     

                    3. In connmanctl , check services

                    -------------------------------------------------------------------------------------------------------------------------

                    connmanctl> services

                    *AO Buffalo-G-8768       wifi_e09d31862360_42756666616c6f2d472d38373638_managed_psk

                    *A  Wired                ethernet_984fee058cb3_cable

                    -------------------------------------------------------------------------------------------------------------------------

                     

                    4. connect ethernet_984fee058cb3_cable

                    -------------------------------------------------------------------------------------------------------------------------

                    connmanctl> connect ethernet_984fee058cb3_cable

                    Connected ethernet_984fee058cb3_cable

                    -------------------------------------------------------------------------------------------------------------------------

                     

                    5. Now, i can ping or ssh to 192.168.11.40

                     

                    Maybe it have problem in old laptop's network.

                     

                    But i have a question, how can i set static IP on galileo auto whenever it restart?

                    Thank you for help,

                     

                    Have a nice day,

                    Thai,

                    • 7. Re: Galileo Gen 2 - Use the LAN connection direct to your PC via SSH
                      FGT

                      caothai wrote:

                       

                      Thank you,

                       

                      I try on other laptop, I don't set IP static on this laptop, but it's work,

                       

                      1. Fisrt, I connect to galileo via UART Connector,

                      2. I set IP static on galileo : ifconfig enp0s20f6 192.168.11.40 netmask 255.255.255.0

                       

                      3. In connmanctl , check services

                      -------------------------------------------------------------------------------------------------------------------------

                      connmanctl> services

                      *AO Buffalo-G-8768 wifi_e09d31862360_42756666616c6f2d472d38373638_managed_psk

                      *A Wired ethernet_984fee058cb3_cable

                      -------------------------------------------------------------------------------------------------------------------------

                       

                      4. connect ethernet_984fee058cb3_cable

                      -------------------------------------------------------------------------------------------------------------------------

                      connmanctl> connect ethernet_984fee058cb3_cable

                      Connected ethernet_984fee058cb3_cable

                      -------------------------------------------------------------------------------------------------------------------------

                       

                      5. Now, i can ping or ssh to 192.168.11.40

                       

                      Maybe it have problem in old laptop's network.

                       

                      But i have a question, how can i set static IP on galileo auto whenever it restart?

                      Thank you for help,

                       

                      Have a nice day,

                      Thai,

                       

                      I think you can follow the steps described at Unable to connect intel centrino n135 wifi card to Intel galileo gen2 so that your Intel Galileo sets the static IP each time it starts running.

                       

                      HTH,

                       

                      Fernando.