How to set ip or mac address
If you want to use multiple ANTSDR-E200 devices when using plutosdr compatible firmware, you will need this guide to set the mac and ip address.
QSPI Flash boot mode
Set mac address
You can enter the linux system of E200 through ssh or serial port tool. The default ip is 192.168.1.10 and the baud rate of the serial port is 115200. when using the network port, please make sure you can ping the board.
The default username and password:
username:root
password:analog
After enter the linux system, Set the mac address using the command fw_setenv, for example.
fw_setenv ethaddr 00:0a:35:00:08:30
Then enter the command reboot to restart the device or re-power.
reboot
If nothing else, Enter system and you can use the ifconfig command to check that the mac address has been successfully modified.
# ifconfig eth0 Link encap:Ethernet HWaddr 00:0A:35:00:08:30 inet addr:192.168.1.10 Bcast:0.0.0.0 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:10 errors:0 dropped:0 overruns:0 frame:0 TX packets:18 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:1065 (1.0 KiB) TX bytes:2904 (2.8 KiB) Interrupt:29 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:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) usb0 Link encap:Ethernet HWaddr 00:05:F7:19:E7:93 inet addr:192.168.2.1 Bcast:0.0.0.0 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:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)The mac address of the network card eth0 has been successfully modified.
Set ip
The default ip is 192.168.1.10, if you need to modify the ip, you also need to enter the system.
If you just need to temporarily modify the ip address, you can use the ifconfig command like modifying the ip on the ubuntu system is enough.
However, this method will restore the default ip address(192.168.1.10) after restarting the device.
If you want to permanently modify the ip address, you must use the fw_setenv command such as this.
fw_setenv ipaddr_eth 192.168.2.1
Then restart the device.
SD card boot mode
Set mac address
If it is in the sd card boot mode, then you need to modify the sd card uEnv.txt file. Find
ethaddr=00:0a:35:00:01:22and change itethaddr=xx:xx:xx:xx:xx:xxThen start the device.
Set ip
The method of changing ip by starting sd card is the same as starting and changing ip by qspi.