2. The Network Connection

During the development, you will need to have access to the device via the network interface. Therefore you should set up the network to have the correct settings. If you have a DHCP server and have no problem with checking the currently used IP address, you can skip the network configuration step. You can discover the IP address using the ifconfig command.

root@stampa5d36:~# ifconfig eth0
eth0      Link encap:Ethernet  HWaddr CE:29:C2:BB:D9:A6
          inet addr:  Bcast:  Mask:
          inet6 addr: fe80::cc29:c2ff:febb:d9a6/64 Scope:Link
          RX packets:2726 errors:0 dropped:0 overruns:0 frame:0
          TX packets:158 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:275050 (268.6 KiB)  TX bytes:32214 (31.4 KiB)
          Interrupt:42 Base address:0xc000

For a static configuration, you need to edit the file /etc/network/interface.

root@stampa5d36:~# vi /etc/network/interfaces

Add the following section to the file. Adjust the values to match your network.

iface eth0 inet static

Now comment out the following line to disable DHCP for eth0.

# iface eth0 inet dhcp

To finish the configuration, save the file and reinitialize the interface.

root@stampa5d36:~# ifdown eth0
root@stampa5d36:~# ifup eth0

If you connect the device directly to your development computer, set up its network configuration accordingly.