Tiny Core Linux
Tiny Core Base => TCB Q&A Forum => Topic started by: lovelypp on March 21, 2023, 08:28:09 PM
-
I want to use static ip when bootup. but when bootup, it always get a dynamic ip.
thanks!
-
The nodhcp boot code does just that.
You'll probably have to write a script or add a boot time command to bootlocal.sh to set your static ip.
-
Hi lovelypp
I have the attached script in my /opt directory. I call it
from /opt/bootlocal.sh like this:
/opt/eth0.sh
The pkill udhcpc line disables dhcp.
Adjust the nameserver lines to point where you want your DNS look-ups to be handled.
-
thanks.
I use the nodhcp bootcode and it solved.