WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Set IP address on boot  (Read 2389 times)

Offline Taifuuni

  • Newbie
  • *
  • Posts: 7
Set IP address on boot
« on: September 13, 2015, 10:16:19 AM »
Any idea how to set IP address on boot. My goal is to have a Kiosk setup which reads IP and URL from an two separate text files located in boot sector (modifiable in Windows because of partition type).

I made a bootscript which had "sudo ifconfig eth0 *ip* netmask *mask*" but it didn't work. Also when I used this command in the terminal, I couldn't get the ethernet connection to work anymore. I think that restarting the networking "service" would have helped but didn't find any working commands for that either.

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11573
Re: Set IP address on boot
« Reply #1 on: September 13, 2015, 10:52:21 AM »
Hi Taifuuni
Welcome to the forum. It looks like you forgot to include  up  at the end of that command. Click on the  Panel  icon
at the bottom of the screen. Then click on the  Network  button  and enter your parameters to set up the network
adapter. This will create a script in  /opt  that sets up the adapter. If your adapter is  eth0  the script will be named
eth0.sh. That will give you a starting point of the right way to do it.

I also recommend you take the time to read:
http://tinycorelinux.net/book.html