Menu Title

Configure Permanent IP address to Tiny Core Linux

Tiny Core Linux loses the IP address configuration once rebooted but you can still configure to persist the static IP address even after several reboots.

Step 1: Create Static IP Address Configuration Script

$ cd /opt
$ sudo vi eth0.sh

#Change IP Address and other details according to your needs
#!/bin/sh
pkill udhcpc
ifconfig eth0 172.20.1.1 netmask 255.255.255.0 broadcast 172.20.1.255 up
route add default gw 172.20.1.254
echo nameserver 172.20.1.254 >> /etc/resolv.conf

tiny core configure static ip address script

Step 2: Assign Permission

$ sudo chmod 775 /opt/eth0.sh

Step 3: Write to boot file scripts

$ sudo echo 'opt/eth0.sh' >> /opt/.filetool.lst
$ sudo echo 'opt/eth0.sh &' >> /opt/bootlocal.sh

tiny core static ip address startup file

Step 4:Save Configuration

$ filetool.sh -b

You may also like...

Thank you for visiting us. To continue receiving updates, please Subscribe to our Social Media Channels.