LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 04-20-2007, 07:33 PM   #1
rocket777
Member
 
Registered: Apr 2007
Posts: 31

Rep: Reputation: 15
replace nic card, doesn't set it up right


I had to change out my nic card. Now the system won't automatically bring up the network. It sees the new card but does not give it an inet address.

I can hack it and get it to work ( edit /etc/iftab, put in an entry eth2 for my new card - but then at boot up, I have to manually add an ifdown eth2; ifup eth2 to get it to work - ifdown needed because something thinks its up when it's not).

I also put an entry into /etc/network/interfaces. But something seems to think that my interface is already up and so doesn't bring it up further.

So, what is the "correct" way to change your nic card.


thanks
 
Old 04-22-2007, 12:48 PM   #2
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
Did you have it in auto mode in interfaces? Please post the relevant section.
 
Old 04-23-2007, 02:41 PM   #3
rocket777
Member
 
Registered: Apr 2007
Posts: 31

Original Poster
Rep: Reputation: 15
I've done some experimenting. I'm almost there. Just won't come up automatically!

1. I got rid of eth2 and just changed the mac addr for eth0 in iftab - see below.

2. When I log in, the little icon at the top right next to the time, says, no network connection. If I right click it, there's a check mark next to enable networking.

3. If I left click it, theres now a radio button on wired network that is not set. If I select this, it will now bring up the network properly.


So.... why won't it bring this up automatically?

!!! one strange thing !!! Each time I check/uncheck my wired connection from the gui, it modifies network/interfaces and moves the line "auto eth0" from before the iface eth0 line and puts it at the end of the file. Either way does not work however.



--------------------------------------------
From /var/log/dmesg:

[ 25.130393] eth0: RealTek RTL-8029 found at 0xd000, IRQ 11, 00:50:BA:F3:C2: D5.

--------------------------------------------

$ cat iftab
# This file assigns persistent names to network interfaces.
# See iftab(5) for syntax.

#eth0 mac 00:02:e3:10:dd:e3 arp 1
eth0 mac 00:50:ba:f3:c2:d5 arp 1
--------------------------------------------

$ cat interfaces
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet dhcp

auto ath0
iface ath0 inet dhcp

auto wlan0
iface wlan0 inet dhcp
 
Old 04-26-2007, 08:15 PM   #4
rocket777
Member
 
Registered: Apr 2007
Posts: 31

Original Poster
Rep: Reputation: 15
Looks like the problem was the dylink nic card I was using. It's apparently very old and probably there's a driver problem.

When I removed it and enabled the on-board lan, everything worked using the via-rhine driver. I didn't need to modify anything in iftab or anywhere else.
 
  


Reply



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
eth0 NIC Card Not Working! 3com 3c501 NIC. Mustard010 Linux - Networking 16 08-15-2007 02:22 AM
Reconfigure Network vs. replace NIC legalizeit Linux - Networking 10 05-18-2007 05:32 PM
Onboard video card fried, how to replace? ctkroeker Linux - Hardware 8 07-13-2006 01:11 PM
NIC Of NIC/Graphics Card Combo Not Detected username132 Linux - Hardware 2 04-04-2006 10:16 PM
Need To Replace Video Card carlosinfl Linux - Hardware 2 12-13-2005 01:46 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 09:25 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
Open Source Consulting | Domain Registration