Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 01-01-2014, 11:27 AM   #1
LQ Newbie
Registered: Dec 2013
Distribution: tinycore
Posts: 9

Rep: Reputation: Disabled
static ip

how can i change my eth0 from to another static ip #
Old 01-01-2014, 12:33 PM   #2
Senior Member
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,284

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
You should never assign 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?
1 members found this post helpful.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
setting static IP on linux PCs with no static IP address from internet provider? solvetek Linux - Networking 1 10-22-2011 09:04 AM
Java non-static variable cannot be referenced from a static context issue rickrvo Programming 2 02-12-2010 04:26 PM
How to initialize a static array of a class in a static member function lali.p Programming 9 02-16-2008 10:27 AM
Howto Assign Multiple Static Public IP Addresses under SBC's PPPoE Static Ip system o trekgraham Linux - Networking 8 04-17-2007 11:51 AM
FC2 Overriding static if in favor of dhcp system set for static pkraus109 Linux - Networking 8 09-21-2004 12:13 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:20 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration