Hi. I followed https://wiki.luckfox.com/Luckfox-Pico/L ... r-to-eth0/
I run this and the device is on the network:
INTERFACE="eth0" # Change this to your network interface (e.g., eth0, wlan0)
STATIC_IP="192.168.0.XX" # Change to your desired static IP address
NETMASK="255.255.255.0" # Change to your network mask
GATEWAY="192.168.0.XX" # Change to your gateway IP address
DNS_NAMESERVERS="8.8.8.8 8.8.4.4" # Change to your DNS server addresses
ifconfig "$INTERFACE" down
ifconfig "$INTERFACE" "$STATIC_IP" netmask "$NETMASK"
ifconfig "$INTERFACE" up
route add default gw "$GATEWAY" dev "$INTERFACE"
BUT after a few seconds it loses it's ip?
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
link/ether XXXXX brd ff:ff:ff:ff:ff:ff
LuckFox Pico Plus RV1103 loses eth0?
Hello, please make sure that udhcpc is not started in the background to get the IP. You can use the killall udhcpc command to shut down the udhcpc process