Download your favorite Linux distribution at LQ ISO.
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 08-15-2008, 01:14 PM   #1
LQ Newbie
Registered: Aug 2008
Posts: 4

Rep: Reputation: 0
Debian - New network card not going "up" at boot

Hi Guys
I'm really REALLY new to Linux, so I thought I'd start simple. I built a Debian (2.6) File share server for network backups. Works great ! Till the on board network card died.

I've struggled through compling the driver for my new pci network card, and I can even get everything to work if I give the following commands after boot :
ifconfig eth1 up
>eth1: link up, 100 mbps
ifconfig eth1 netmask yyy.yyy.yyy.yyy
(where x and y is valid )

Question is how do I get the card to be up from boot ?

I've been struggle'n for hours now, and I'm sure I'm missing something small.

Old 08-15-2008, 05:42 PM   #2
LQ Newbie
Registered: Sep 2006
Distribution: Whatever flavor of the month I want, Ubuntu, Gentoo, Mint, Fedora
Posts: 15

Rep: Reputation: 0
to get eth1 up at boot, type this into your text editor:
case "$1" in
    *insert the commands you run in the command line after boot here*
    ifconfig eth1 down
    echo "Please provide start or stop when running this script"
    exit 1

exit 0
save it as something like "", and in the same directory run (as root):

chmod 755
mv /etc/init.d/
update-rc.d defaults
If you find a better way to do it just run

update-rc.d -f remove
remember if you name it something different substitute that filename for the one I wrote in the post
Hope that helps!

Last edited by Tk3thelinuxnewb; 08-15-2008 at 05:43 PM.
Old 08-15-2008, 06:04 PM   #3
Senior Member
Registered: Nov 2006
Distribution: Debian Squeeze SMP AMD64
Posts: 3,318

Rep: Reputation: 126Reputation: 126
Look at the "/etc/network/interfaces" file. It should be something like this, assuming you're using dhcp:

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

auto eth1
iface eth1 inet dhcp
Old 08-15-2008, 06:06 PM   #4
Registered: Dec 2005
Location: Oregon
Distribution: Debian Testing
Posts: 488

Rep: Reputation: 38
See what's in /etc/network/interfaces

There should be a stanza there for your NIC. If you've compiled your own module, you may need to modify this file.

Do you have an eth0 interface?
Old 08-18-2008, 02:23 AM   #5
LQ Newbie
Registered: Aug 2008
Posts: 4

Original Poster
Rep: Reputation: 0

Got it fixed.
I coppied the lines in /etc/network/interfaces that refered to eth0 (the old and disabled nic) and changed them to read "eth1" ... but I missed the one that matters "allow-hotplug eth0"

Soon as I added "allow-hotplug eth1" it worked !

Thanks to all of you who replied. Thank you allot !


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
LXer: Displaying "MyComputer", "Trash", "Network Servers" Icons On A GNOME Desktop LXer Syndicated Linux News 0 04-02-2007 09:31 AM
LXer: "I Want To Duel Boot Debian and XP" - The Debian Chronicles LXer Syndicated Linux News 0 03-01-2007 08:16 PM
Debian Boot Up Problem - stuck at "BR" & "I" jc70417 Debian 2 08-30-2005 05:36 PM
Box wont boot after kernel upgrade "Dump Card State Ends" error with scsi card abefroman Mandriva 0 03-25-2004 04:42 PM
Debian(Knoppix? on HD) "locks" when PCMCIA card is inserted... dgr72371 Linux - Laptop and Netbook 4 01-23-2004 08:04 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:12 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