8 Replies Latest reply on Mar 19, 2015 5:14 PM by ForumMigrationAdmin

    Intel Galileo Gen2 & static TCP/IP

    ForumMigrationAdmin

      Hello,

      We're developing an application that needs a static TCP/IP network configuration.

      The application is developed in the Intel Arduino IDE and is running on an SD-card (1.0.4-firmware).

      The problem now is that we're not able to configure the static IP on boot !

      So far we're able to configure the static IP, but changing the default gateway simply doesn't work from within the sketch.

      Can anyone help me out here ?

      My code :

        // Ethernet.begin(mac,ip,gateway,subnet); does not work at al
        system("ifconfig eth0 192.168.102.85 netmask 255.255.0.0 up");
        system("route add -net 192.168.102.1 netmask 255.255.255.0 gw 192.168.102.1 dev eth0"); does not work
        system("sudo /etc/init.d/networking restart");

      Regards