title: Connect embedded system to host via ethernet over a switch
body: <p>I have a arm platform with gigabit ethernet that I would like to connect to my ubuntu machine 
  to test the ethernet ports. </p>
  
  <p>Networking is not my strong suit. </p>
  
  <p>I've modified /etc/network/interfaces on the embedded system thusly:</p>
  
  <pre><code># Configure Loopback
  auto lo
  iface lo inet loopback
  
  #auto eth0
  #iface eth0 inet dhcp
  
  auto eth0
  iface eth0 inet static
  address 192.168.1.2
  netmask 255.255.255.0
  gateway 192.168.1.0
  </code></pre>
  
  <p>And on my ubuntu machine I have set (through the network connections window):</p>
  
  <pre><code>IP: 192.168.1.1
  netmask: 255.255.255.0
  gateway: 192.168.1.0
  </code></pre>
  
  <p>When I test the connection, no connection is recognized on the arm system. </p>
  
  <p>The eth0 port produces this output: </p>
  
  <pre><code>eth0: link up, 10 Mb/s, half duplex, flow control disabled        
  ip: RTNETLINK answers: Invalid argument 
  </code></pre>
  
  <p>ifconfig displays: </p>
  
  <pre><code># ifconfig                                                                                             
  eth0      Link encap:Ethernet  HWaddr 02:50:43:C5:C5:75                                                
            inet addr:192.168.1.2  Bcast:0.0.0.0  Mask:255.255.255.0                                     
            UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1                                           
            RX packets:0 errors:0 dropped:0 overruns:0 frame:0                                           
            TX packets:0 errors:0 dropped:0 overruns:0 carrier:0                                         
            collisions:0 txqueuelen:1000                                                                 
            RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)                                                       
            Interrupt:11                                                                                 
  
  lo        Link encap:Local Loopback                                                                    
            inet addr:127.0.0.1  Mask:255.0.0.0                                                          
            UP LOOPBACK RUNNING  MTU:16436  Metric:1                                                     
            RX packets:0 errors:0 dropped:0 overruns:0 frame:0                                           
            TX packets:0 errors:0 dropped:0 overruns:0 carrier:0                                         
            collisions:0 txqueuelen:0                                                                    
            RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)   
  </code></pre>
  
  <p>Can anyone point out my most likely obvious mistake?
  Let me know if I need to provide more information.</p>
  
  <p>EDIT: I'm running busybox 1.18.5 on the embedded system. </p>
  
  <p>EDIT 2: </p>
  
  <pre><code># route                                                                                                
  Kernel IP routing table                                                                                
  Destination     Gateway         Genmask         Flags Metric Ref    Use Iface                          
  192.168.1.0     *               255.255.255.0   U     0      0        0 eth0  
  </code></pre>