This is an old revision of the document!
Boot option nodhcp
When you need to set up a TinyCore box with a fixed IP address, you can not use DHCP
Adding the boot parameter nodhcp to the grub.cfg file (or its cousin from syslinux) will disable DHCP.
You can also use either of these two alternatives below:
- Set NODHCP=1 at the beginning of /etc/init.d/tc-config and remaster.
- To avoid remastering, replace /etc/init.d/dhcp.sh with an empty script in a backup file.
To manually set the IP address for your box to the example value 192.168.2.128, enter the commands as given below:
ifconfig eth0 down ifconfig eth0 192.168.2.128 netmask 255.255.255.0 ifconfig eth0 up
You can also create a script containing these commands, and arrange for it to be executed after boot.