4 Replies Latest reply on Jan 9, 2016 4:20 AM by poseid

    Unsure about route configuration

    poseid

      Hi,

       

      after setup of a new subnet 192.168.3.0, I have problems getting the Galileo access to the internet.

       

      When t type 'route', I see:

       

      root@galileo:~# route

      Kernel IP routing table

      Destination     Gateway         Genmask         Flags Metric Ref    Use Iface

      default         192.168.3.1     0.0.0.0         UG    0      0        0 enp0s20f6

      192.168.2.1     192.168.3.1     255.255.255.255 UGH   0      0        0 enp0s20f6

      192.168.3.0     *               255.255.255.0   U     0      0        0 enp0s20f6

      192.168.3.1     *               255.255.255.255 UH    0      0        0 enp0s20f6

       

      When I type 'ifconfig' I get:

       

      root@galileo:~# ifconfig

      enp0s20f6 Link encap:Ethernet  HWaddr 98:4F:EE:05:13:94

                inet addr:192.168.3.102  Bcast:192.168.3.255  Mask:255.255.255.0

                inet6 addr: 2003:62:477e:eb01:9a4f:eeff:fe05:1394/64 Scope:Global

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

                UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1

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

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

                collisions:0 txqueuelen:1000

                RX bytes:28535 (27.8 KiB)  TX bytes:35332 (34.5 KiB)

                Interrupt:44

       

       

      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:245 errors:0 dropped:0 overruns:0 frame:0

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

                collisions:0 txqueuelen:0

                RX bytes:18426 (17.9 KiB)  TX bytes:18426 (17.9 KiB)

       

      Not sure why the routing table still has 192.168.2.1 and how to setup the new subnet.

        • 1. Re: Unsure about route configuration
          joe-iot

          Hey Poseid - To delete your old route you'd run:

          route del -net 192.168.2.1  gw 192.168.3.1 netmask 255.255.255.255
          

           

          As for your current network issues, what are you having? Can you ping your gateway, if that works can you ping 8.8.8.8 ? If that works try pinging by name?

           

          Cheers,

          -Joe

          • 2. Re: Unsure about route configuration
            CMata_Intel

            Hi poseid,

             

            Did you try with Joe’s suggestion? Do you have access to Internet now?

             

            Regards,

            Charlie

            • 3. Re: Unsure about route configuration
              poseid

              Thanks for the help and sorry for the delay in response.

              Joe's suggestion works!

               

              But only ping 8.8.8.8 works, not ping google.com:

               

              root@galileo:~# route

              Kernel IP routing table

              Destination     Gateway         Genmask         Flags Metric Ref    Use Iface

              default         192.168.3.1     0.0.0.0         UG    0      0        0 enp0s20f6

              192.168.2.1     192.168.3.1     255.255.255.255 UGH   0      0        0 enp0s20f6

              192.168.3.0     *               255.255.255.0   U     0      0        0 enp0s20f6

              192.168.3.1     *               255.255.255.255 UH    0      0        0 enp0s20f6

              root@galileo:~# route del -net 192.168.2.1 gw 192.168.3.1 netmask 255.255.255.255

              root@galileo:~# route

              Kernel IP routing table

              Destination     Gateway         Genmask         Flags Metric Ref    Use Iface

              default         192.168.3.1     0.0.0.0         UG    0      0        0 enp0s20f6

              192.168.3.0     *               255.255.255.0   U     0      0        0 enp0s20f6

              192.168.3.1     *               255.255.255.255 UH    0      0        0 enp0s20f6

              root@galileo:~# ping google.com

              ^C

              root@galileo:~# ping 8.8.8.8

              PING 8.8.8.8 (8.8.8.8): 56 data bytes

              64 bytes from 8.8.8.8: seq=0 ttl=58 time=17.498 ms

              64 bytes from 8.8.8.8: seq=1 ttl=58 time=16.824 ms

              64 bytes from 8.8.8.8: seq=2 ttl=58 time=16.844 ms

              64 bytes from 8.8.8.8: seq=3 ttl=58 time=16.897 ms

              • 4. Re: Unsure about route configuration
                poseid

                Ok, last step is adding the DNS server with:

                 

                connmanctl> services

                *AR Wired                ethernet_984fee051394_cable

                connmanctl>

                root@galileo:~# connmanctl config ethernet_984fee051394_cable --nameservers 8.8.8.8 8.8.4.4

                 

                (hmm.. connmanctl is it on github? It would be nice to add some features to make it easier to use)

                1 of 1 people found this helpful