LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 07-17-2015, 06:43 PM   #1
kwickcut
Member
 
Registered: Nov 2004
Posts: 136

Rep: Reputation: 20
adding new nic card..


long story short we were in a brown out i lost my modem router and on board network card..

i have installed a new nic and i am having some issues getting the new card to work..

when i look at
Code:
/etc/udev/rules.d/70-persistent-net.rules
it is empty

so i removed it anyway
Code:
rm  /etc/udev/rules.d/70-persistent-net.rules
i reboot and still no connection how to i configure the new nic to be eth0

thanks

kwick
 
Old 07-17-2015, 09:13 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,418
Blog Entries: 28

Rep: Reputation: 6167Reputation: 6167Reputation: 6167Reputation: 6167Reputation: 6167Reputation: 6167Reputation: 6167Reputation: 6167Reputation: 6167Reputation: 6167Reputation: 6167
What distro/version and what make/model nic card?
 
Old 07-17-2015, 09:28 PM   #3
kwickcut
Member
 
Registered: Nov 2004
Posts: 136

Original Poster
Rep: Reputation: 20
ubuntu 10.4 server and the nic card is a dlink dfe-530tx+
 
Old 07-17-2015, 10:22 PM   #4
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,162

Rep: Reputation: 1268Reputation: 1268Reputation: 1268Reputation: 1268Reputation: 1268Reputation: 1268Reputation: 1268Reputation: 1268Reputation: 1268
What is the output of
Code:
ip addr
 
Old 07-17-2015, 10:52 PM   #5
kwickcut
Member
 
Registered: Nov 2004
Posts: 136

Original Poster
Rep: Reputation: 20
Quote:
Originally Posted by smallpond View Post
What is the output of
Code:
ip addr
Code:
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN
link/lookback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth1: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000
link/ether fc:75:15:e3:4c;c2: brd ff:ff:ff:ff:ff:ff
i hope i typed it all correctly..
 
Old 07-18-2015, 12:49 AM   #6
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
Quote:
Originally Posted by kwickcut View Post
Code:
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN
link/lookback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth1: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000
link/ether fc:75:15:e3:4c;c2: brd ff:ff:ff:ff:ff:ff
i hope i typed it all correctly..
Probably related to the lack of rules under /etc, your card is named eth1 instead of eth0.
Next, what's in /etc/network/interfaces. If you change eth0 to eth1 there, you should at least have a workaround. But eventually, you need a udev rule.
 
Old 07-18-2015, 10:34 AM   #7
kwickcut
Member
 
Registered: Nov 2004
Posts: 136

Original Poster
Rep: Reputation: 20
Quote:
Originally Posted by berndbausch View Post
Probably related to the lack of rules under /etc, your card is named eth1 instead of eth0.
Next, what's in /etc/network/interfaces. If you change eth0 to eth1 there, you should at least have a workaround. But eventually, you need a udev rule.
this is the output

Code:
# The loopback network interfaces
auto lo
iface lo inet loopback

# the primary network interface
auto eth0
iface eth0 inet static
address 192.168.1.xxx
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.x.xxx
gateway 192.168.1.1
there is nothing else


thank you everyone for the help so far...
 
Old 07-18-2015, 05:38 PM   #8
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
Quote:
Originally Posted by kwickcut View Post
this is the output

Code:
# The loopback network interfaces
auto lo
iface lo inet loopback

# the primary network interface
auto eth0
iface eth0 inet static
address 192.168.1.xxx
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.x.xxx
gateway 192.168.1.1
there is nothing else


thank you everyone for the help so far...
Your interface is named eth1. It's not set up because there is no configuration for it in interfaces.

You're real solution is to create a udev rule for naming the NIC correctly. You could adapt one from a working system, or find help in the documentation.

A workaround is changing eth0 in the interfaces file to eth1.
 
Old 07-20-2015, 01:10 PM   #9
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142
Quote:
Originally Posted by berndbausch View Post
You're real solution is to create a udev rule for naming the NIC correctly. You could adapt one from a working system, or find help in the documentation.

A workaround is changing eth0 in the interfaces file to eth1.
I don't consider either of those to be a "real solution" or a "workaround". They're simply two equally viable solutions to the problem, neither is any more "correct" or "real" than the other.

There are two NICs, one doesn't work. He can either force the working one to inherit the name of the dead one and leave his config alone, or modify the config to use the name of the new one.

I'm a little surprised at the circumstances as well. I find it highly suspect that one could lose both their router and the NIC on their computer from a brownout, considering ethernet is a galvanically isolated interface on both ends. Just seems too coincidental.

Last edited by suicidaleggroll; 07-20-2015 at 01:15 PM.
 
  


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
adding realtek rtl8102 nic card in initrd.img great3003 Linux - Kernel 3 12-29-2009 12:49 AM
eth0 NIC Card Not Working! 3com 3c501 NIC. Mustard010 Linux - Networking 16 08-15-2007 02:22 AM
NIC Of NIC/Graphics Card Combo Not Detected username132 Linux - Hardware 2 04-04-2006 10:16 PM
adding a second NIC ferreter Slackware 2 11-01-2004 02:07 AM
Adding a nic slowly Slackware 3 12-23-2003 03:36 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:29 AM.

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