Edit /etc/network/interfaces (either directly on the Fox or by mounting the microSD card in another machine) to comment out:
#auto eth0 #iface eth0 inet dhcp
Then uncomment the “iface eth0 inet static” entry and tailor the details for your local setup:
auto eth0 iface eth0 inet static address 192.168.1.90 netmask 255.255.255.0 gateway 192.168.1.1
Edit /etc/config/network:
config interface "lan"
option ifname "eth0"
option proto "static"
option ipaddr "192.168.1.90"
option netmask "255.255.255.0"
option gateway "192.168.1.1"
option dns "192.168.1.1"
Uncomment the two lines routes_eth0 and config_eth0 and set the IP you need on the file /etc/conf.d/net:
# This blank configuration will automatically use DHCP for any net.* # scripts in /etc/init.d. To create a more complete configuration, # please review /etc/conf.d/net.example and save your configuration # in /etc/conf.d/net (this file :]!). #Uncomment and edit this data to set static IP the default is DHCP obtained #routes_eth0=( "default via 192.168.1.1" ) #config_eth0=( "192.168.1.92 netmask 255.255.255.0 broadcast 192.168.1.255" )
If you haven't a Debug Port Interface edit this file directly from a Linux PC using a USB to microSD adapter.