LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 06-14-2006, 09:52 PM   #1
gvaught
Member
 
Registered: Sep 2003
Location: MidWest
Distribution: Kubuntu 9.04 (workstation) Debian 3.1r4 (file server) Knoppix (troubleshooting)
Posts: 191

Rep: Reputation: 30
Smile eth0 configuration lost after power outage


Greetings one and all!

It's been so long since I've done anything (or had to do anything) in Linux for server setup that I might as well be a n00b. My situation is that I have a file server set up - Debian OS running Samba on a Windows/Linux hybrid network. We had a power outage, the server went down badly and now when it boots up all I get is IPv6 address - no xxx.xxx.xxx.xxx address.

And my concern is how do I get my IPv4 addy back? I'm pretty sure there's a file that I need to touch/edit/configure in order to get this working again, but I'm totally fouled as to which file, or its location. Can someone just point me in the right direction?

Thanks in advance.
 
Old 06-14-2006, 10:25 PM   #2
fedora4002
Member
 
Registered: Mar 2004
Posts: 135

Rep: Reputation: 15
try use
ifconfig
 
Old 06-14-2006, 10:29 PM   #3
isuck@linux
Member
 
Registered: Jun 2006
Distribution: messed up debian
Posts: 250

Rep: Reputation: 30
I think there is a switch within ifconfig that tells linux to use ipv4. man ifconfig.
 
Old 06-14-2006, 10:38 PM   #4
cs-cam
Senior Member
 
Registered: May 2004
Location: Australia
Distribution: Gentoo
Posts: 3,544
Blog Entries: 4

Rep: Reputation: 56
It's easy enough to give it an IP but the question is if it's the correct IP. Did the server have a static IP or was it assigned via DHCP or perhaps another method? If you want to do it give a static IP to eth0 then this will do it:
Code:
ifconfig eth0 192.168.1.1
 
Old 06-14-2006, 10:58 PM   #5
gvaught
Member
 
Registered: Sep 2003
Location: MidWest
Distribution: Kubuntu 9.04 (workstation) Debian 3.1r4 (file server) Knoppix (troubleshooting)
Posts: 191

Original Poster
Rep: Reputation: 30
Previous IP address was DHCP - so I don't know how to set DHCP through ifconfig.

It's fairly late here and I haven't slept in two days so I think this will become a Thursday problem. Thanks for the suggestions, I'll see what I can do with them when I wake up. I'll check back here for anything else that may get posted in the mean time.
 
Old 06-14-2006, 11:36 PM   #6
cs-cam
Senior Member
 
Registered: May 2004
Location: Australia
Distribution: Gentoo
Posts: 3,544
Blog Entries: 4

Rep: Reputation: 56
Code:
ifconfig eth0 up
dhcpcd eth0
Should do what you're after. Any problems post back with logs for us to look over
 
Old 06-15-2006, 07:54 PM   #7
gvaught
Member
 
Registered: Sep 2003
Location: MidWest
Distribution: Kubuntu 9.04 (workstation) Debian 3.1r4 (file server) Knoppix (troubleshooting)
Posts: 191

Original Poster
Rep: Reputation: 30
Hey everyone! I found the issue. Seems the LEDs on my NIC weren't lighting up.

I reseated the ethernet cable and all is "fairly" well. Of course, I did the brute-force thing an installed the latest version of the OS, so now I have to reconfigure Samba and SWAT for the file server. <sigh>

Thanks for all of your help. Seriously.
 
  


Reply


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
10.1 some errors after power outage future assassin Slackware 3 11-04-2005 05:33 PM
RAID 5 after Power outage RabidSquirrel Linux - Hardware 3 08-02-2005 06:46 PM
power outage jbzy3000 Linux - General 2 02-24-2005 09:11 PM
Power Outage horror Hampster Mandriva 5 01-13-2005 08:38 PM
Power Outage notslim General 30 08-28-2003 03:47 AM


All times are GMT -5. The time now is 01:50 PM.

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