Setting IP address
Posted: Mon Sep 21, 2015 2:59 pm
Hi folks,
Just received my redpitaya. I am trying to set it up with a static IP address by editing the wired ethernet parameters -
commented out :
# Dynamic (DHCP) IP address
# iface eth0 inet dhcp
# udhcpc_opts -t7 -T3
and uncommented:
# Static IP address
iface eth0 inet static
address 192.168.2.15
netmask 255.255.255.0
gateway 192.168.2.1
The interfaces file also has this comment:
# Don't forget to set the static DNS IP in sd:/etc/init.d/rcS too
so I put the new static IP address in there too.
However, I cant see the device on my Mac ethernet port. When I send ifconfig on the terminal, I get:
redpitaya> ifconfig
eth0 Link encap:Ethernet HWaddr 00:26:32:F0:17:14
inet addr:192.168.1.100 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:1 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:342 (342.0 B)
Interrupt:54 Base address:0xb000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:8 errors:0 dropped:0 overruns:0 frame:0
TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:552 (552.0 B) TX bytes:552 (552.0 B)
So the IP address is some default one - this actually conflicts with one of my existing devices so I cant use it.
Not sure how to get the device to use different IP addresses. Help, please
Tony
Just received my redpitaya. I am trying to set it up with a static IP address by editing the wired ethernet parameters -
commented out :
# Dynamic (DHCP) IP address
# iface eth0 inet dhcp
# udhcpc_opts -t7 -T3
and uncommented:
# Static IP address
iface eth0 inet static
address 192.168.2.15
netmask 255.255.255.0
gateway 192.168.2.1
The interfaces file also has this comment:
# Don't forget to set the static DNS IP in sd:/etc/init.d/rcS too
so I put the new static IP address in there too.
However, I cant see the device on my Mac ethernet port. When I send ifconfig on the terminal, I get:
redpitaya> ifconfig
eth0 Link encap:Ethernet HWaddr 00:26:32:F0:17:14
inet addr:192.168.1.100 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:1 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:342 (342.0 B)
Interrupt:54 Base address:0xb000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:8 errors:0 dropped:0 overruns:0 frame:0
TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:552 (552.0 B) TX bytes:552 (552.0 B)
So the IP address is some default one - this actually conflicts with one of my existing devices so I cant use it.
Not sure how to get the device to use different IP addresses. Help, please
Tony