TinyCore static/dhcp networking
A simple set of shell scripts for managing networking on TinyCore Linux
tce-load -wi network
Note: This extension is architecture independent, but hasn't been officially added to TinyCore yet. I've included the packaged extension in the releases Downloads.
The configuration file is located at
/usr/local/etc/network.conf. It's a simple key/value file similar to this:
dhcp (IPv4 only)
mode=dhcp interface=eth0 hostname=mybox ntpserver=pool.ntp.org
mode=static interface=eth0 ip=192.0.2.2 subnet=255.255.255.0 router=192.0.2.1 dns="188.8.131.52 184.108.40.206" hostname=mybox4 ntpserver=pool.ntp.org
mode=static interface=eth0 ip="2001:db8::2" subnet_ipv6="/32" router="2001:db8::1" dns="2001:4860:4860::8888 2001:4860:4860::8844" hostname=mybox6 ntpserver=pool.ntp.org
Notes about IPv6:
- IPv6 support requires the
tce-load -wi iproute2
- IPv6 subnet length is defined through
- DHCPv6 is not managed by these scripts, see Dibbler
- Privacy Extensions are not managed by these scripts
To install these scripts manually:
network.sh, network_dhcp.sh, network_static.sh, and udhcpc.scriptto
- Create and edit the config at
- Add '/opt/network.sh' to
- Add the scripts and config file to
How it works
network.sh script reads values from
network.conf, sets them as temporary environment variables and passes them to either
network_dhcp.sh. Those scripts will use
udhcpc to release or renew a DHCP lease.
See the Changelog.
This project is MIT licensed, see the LICENSE file for more info.
The following files are licensed under GPL-V2: