Networking :: How do I set up a static IP permanently??
Hello!!
I have the problem that every time I reboot DSL the static IP I set last time is lost and the network switched back to DHCP.
Searching this forum I found out that I have to edit it into the file bootlocal.sh. However I an not that much experienced with Linux yet and have no idea what I should edit in this file. Could perhaps someone give me an example on how to edit it??
Thank you very much and greetings 
althena77
Welcome..
Let the search button at the top of this page be your guide..
I entered " static " as the keyword.
I chose " All Forums"
I chose " From the Beginning"
Then clicked "search"
and I came up with many useful posts describing your exact question.
Here is an example to get you started that you requested..
http://damnsmalllinux.org/cgi-bin....=static
We can't give you exact texts to type into your bootlocal.sh,
because we don't know the details of your network setup.
( the actual numbers, etc.. - those should remain private - known by you only )
But the above link should get you going in the right direction.
Basically, it's like this..
ifconfig eth0 ip xx.xx.xx.xx
route add default gw yy.yy.yy.yy
echo nameserver aa.aa.aa.aa > /etc/resolv.conf
echo nameserver bb.bb.bb.bb >> /etc/resolv.conf
ifup eth0
which I just copy/pasted from the link above
To edit the bootlocal.sh file..
open a shell, and type
" sudo beaver /opt/bootlocal.sh "
Let us know..
73
ke4nt
Or, you can go into your router's configuration and assign your NIC's mac address to a specific IP address.
It makes it a LOT easier when you run several OSes on the same box.
Thank you very much for your replies
I will try this all out.
Great and noob friendly forum ;)
original here.