I'm using the 0.92 version of the RP software. I am trying to give my redpitaya a static IP for use on a switch. Here is my /etc/network/interfaces file:
Code: Select all
###########################
# lo: Loopback interface #
###########################
auto lo
iface lo inet loopback
######################################
# eth0: Wired Ethernet - 1000Base-T #
######################################
#
# Uncomment only one: dynamic or static configuration.
#
# Dynamic (DHCP) IP address
#iface eth0 inet dhcp
# Dynamic (DHCP) IP address
#iface eth0 inet dhcp
# udhcpc_opts -t7 -T3
# Static IP address
# Don't forget to set the static DNS IP in sd:/etc/init.d/rcS too.
iface eth0 inet static
address 192.168.1.222
netmask 255.255.255.0
gateway 0.0.0.0
To get it to work, I have to log into the RP using serial console, then do
Code: Select all
ifconfig eth0 down
ifconfig eth0 192.168.1.222
ifconfig eth0 up