LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   static ip (https://www.linuxquestions.org/questions/linux-newbie-8/static-ip-4175489793/)

Catus 01-01-2014 10:27 AM

static ip
 
how can i change my eth0 from 127.0.0.1 to another static ip #

btmiller 01-01-2014 11:33 AM

You should never assign 127.0.0.1 to eth0 -- that is for loopback (and should be the IP of the lo interface).

To change it you can do:

ifconfig eth0 <new IP> netmask <netmask> up

Note that you might have to set your gateway and DNS servers (via the route command and editing /etc/resolv.conf, respectively).

This change will not persist accross reboots. Is your tinycore installation installed to your hard drive, or are you booting off CD/USB?


All times are GMT -5. The time now is 07:17 PM.