LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 08-15-2008, 12:14 PM   #1
Plankster
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 xxx.xxx.xxx.xxx 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.

Thanks
 
Old 08-15-2008, 04:42 PM   #2
Tk3thelinuxnewb
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:
Code:
#!/bin/bash
case "$1" in
  start)
    *insert the commands you run in the command line after boot here*
  ;;
  stop)
    ifconfig eth1 down
  ;;
  *)
    echo "Please provide start or stop when running this script"
    exit 1
  ;;
esac

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

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

Code:
update-rc.d -f eth1_at_boot.sh 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 04:43 PM.
 
Old 08-15-2008, 05:04 PM   #3
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Squeeze 2.6.32.9 SMP AMD64
Posts: 3,289

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, 05:06 PM   #4
pentode
Member
 
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, 01:23 AM   #5
Plankster
LQ Newbie
 
Registered: Aug 2008
Posts: 4

Original Poster
Rep: Reputation: 0
Resolved

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 !
 
  


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


All times are GMT -5. The time now is 06:57 PM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration