---
# System prepended metadata

title: Linux - configure static IP on tinycorelinux
tags: [linux, network]

---

# Linux - configure static IP on tinycorelinux

###### tags: `linux` `network`

```
Configure static IP on Tinycorelinux (coreplus installed on HD)

1) Create a new file /opt/eth0.sh to configure the interface.
#!/bin/sh
ifconfig eth0 192.168.0.21 netmask 255.255.255.0 broadcast 192.168.0.255 up
route add default gw 192.168.0.1
echo nameserver 192.168.0.1 > /etc/resolv.conf
echo nameserver 192.168.0.20 >> /etc/resolv.conf

!!!change the IP and other information to fit your network config

2) Add to the end in the /opt/bootload.sh to start eth0.sh
/opt/eth0.sh &

3) Add to the end in the /opt/.filetool.lst so OS knows to keep the changes to eth0.sh
opt/eth0.sh

4) Save changes to disk:
sudo filetool.sh -b

5) Reboot
```