Hi, I tried to setup a static IP address for the board I have here using directly /etc/network/interfaces but I always fail without being able to identify where the network doesn't take this file into account.
Here is my /etc/network/interfaces:
# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8) # The loopback interface auto lo iface lo inet loopback # Wireless interfaces iface wlan0 inet dhcp wireless_mode managed wireless_essid any wpa-driver wext wpa-conf /etc/wpa_supplicant.conf iface tiwlan0 inet dhcp wireless_mode managed wireless_essid any iface atml0 inet dhcp # Wired or wireless interfaces iface eth0 inet static address 10.129.56.17 netmask 255.255.255.192 gateway 10.129.56.1 iface eth1 inet dhcp iface eth2 inet dhcp iface eth3 inet dhcp iface eth4 inet dhcp # Ethernet/RNDIS gadget (g_ether) # ... or on host side, usbnet and random hwaddr iface usb0 inet dhcp # Bluetooth networking iface bnep0 inet dhcp
The static part only is about eth0 and we had before a DHCP server to handle the IPs for us. I tried to:
$ sudo ifconfig eth0 down $ sudo ifconfig eth0 up
but it didn't change much, letting me think that maybe there is another file the network uses prior to /etc/network/interfaces maybe?