LinuxQuestions.org
Help answer threads with 0 replies.
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 04-04-2013, 09:57 PM   #16
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and Scientific Linux
Posts: 5,753

Rep: Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288

Hi,

Quote:
Originally Posted by M4trixSh4d0w View Post
I don't believe I am using any of them. I didn't set anything in particular up
then it's not surprising that you don't have any network connection.

If you have a dhcp server on your network, then it is probably simplest to use the /etc/network/interfaces.
To do this just add the lines for each device that you want to automatically configure if the network cable is pugged in. Eg for eth0

Code:
auto eth0
allow-hotplug eth0
iface eth0 inet dhcp
See http://wiki.debian.org/NetworkConfiguration

Evo2.
 
1 members found this post helpful.
Old 04-06-2013, 11:58 AM   #17
mreff555
Member
 
Registered: Sep 2011
Location: Philly
Distribution: Gentoo
Posts: 470

Rep: Reputation: Disabled
Quote:
Originally Posted by evo2 View Post

This is explains why eth0 is missing. There will be a file (possibly 70-persistent-net.rules) in /etc/udev/rules.d that will have the mac address of the network device in the old machine set to eth0. If you comment out this line and restart udev (or perhaps just reboot), you should get an eth0. There will also probably be lines assigning eth1 and eth2 to the mac addresses in the new machine: modify as desired.
DOH.... udev strikes again! One day I am going to actually try to learn more about that horrible horrible program. It seems like 9 out of 10 problems I run into are a udev issue.


M4trixSh4d0w,
It appears you have two Ethernet devices. Unless you actually have two devices on this system, my guess would be that restarting udev may have added a new one without removing the old one. Have you tried configuring that second device?
 
Old 04-11-2013, 09:44 PM   #18
M4trixSh4d0w
LQ Newbie
 
Registered: Mar 2013
Posts: 14

Original Poster
Rep: Reputation: Disabled
I'm sorry I haven't been able to reply recently, I don't have access to the debian computers very much, only 3 days every week, but ill look into what you have provided. My machine does actually have 2 ethernet ports, might even be 3. But ill check it out tomorrow and tell you how its going.

Thanks for all the help so far.
 
Old 04-12-2013, 05:56 PM   #19
M4trixSh4d0w
LQ Newbie
 
Registered: Mar 2013
Posts: 14

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by evo2 View Post
Hi,


then it's not surprising that you don't have any network connection.

If you have a dhcp server on your network, then it is probably simplest to use the /etc/network/interfaces.
To do this just add the lines for each device that you want to automatically configure if the network cable is pugged in. Eg for eth0

Code:
auto eth0
allow-hotplug eth0
iface eth0 inet dhcp
See http://wiki.debian.org/NetworkConfiguration

Evo2.

So I still don't actually have an eth0, still only eth1 and eth2. But I added in your example for eth1, and it didn't work. There are 2 ethernet ports on my machine.
 
Old 04-13-2013, 07:19 PM   #20
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and Scientific Linux
Posts: 5,753

Rep: Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288
Hi,

Quote:
So I still don't actually have an eth0, still only eth1 and eth2.
Did you modify /etc/udev/rules.d/70-persistent-net.rules?


Quote:
But I added in your example for eth1, and it didn't work.
"didn't work", isn't enough information. What did you actually do? What do you see when you try to bring the interface up? Eg the output of
Code:
ifup eth1
?



Evo2.
 
Old 04-16-2013, 11:18 AM   #21
M4trixSh4d0w
LQ Newbie
 
Registered: Mar 2013
Posts: 14

Original Poster
Rep: Reputation: Disabled
Unknown Interface eth1=eth1

It does this for all of the interfaces I try; eth0, eth1, eth2
 
Old 04-16-2013, 11:51 AM   #22
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and Scientific Linux
Posts: 5,753

Rep: Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288
Hi,

to see what interfaces you have, you can run:
Code:
ifconfig -a
Then, you need to configure it using the steps in previous posts (see also the link to the wiki and also the Debian refernce
http://www.debian.org/doc/manuals/de..._configuration).


Evo2.
 
Old 04-18-2013, 03:09 AM   #23
wuby
LQ Newbie
 
Registered: Apr 2013
Posts: 2

Rep: Reputation: Disabled
Hi,


better we check if the link is up or link connection is getting detected. We can use the command mii-tool. This will show link status

------------------------------------
wuby@heaven5:~# mii-tool
SIOCGMIIPHY on 'eth5' failed: Operation not supported
eth6: negotiated 100baseTx-FD flow-control, link ok
------------------------------------
If link is not connected it will show no link.



Then we can try the configuration. Please correct me if I'm wrong..


@Wuby

Last edited by wuby; 04-18-2013 at 03:10 AM.
 
  


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
linux box ethernet not detecting connection to router agatone Linux - Networking 5 12-25-2012 01:31 PM
Inconsistant wired ethernet connection only with Debian Squeeze Elixer Debian 3 01-10-2012 10:58 PM
Debian Lenny AMD64 netinstall not detecting ethernet correctly the trooper Debian 6 07-28-2008 02:13 PM
debian not detecting wireless ethernet card macmanus_bros Linux - Hardware 2 06-27-2005 10:51 PM


All times are GMT -5. The time now is 06:05 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration