LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 01-31-2007, 09:59 AM   #1
tanveer
Member
 
Registered: Feb 2004
Location: e@rth
Distribution: RHEL-3/4/5,Gloria,opensolaris
Posts: 525

Rep: Reputation: 39
interface is not working


Hello all:
I have two lan cards, one using dhcp for internet from ISP and another for local connection that is static. But from yesterday its showing me this error at startup:
eth0 for internet and eth1 is static.
Code:
Determining IP information for eth0...failed;no link present. check cable?
I can browse internet from windows as I am using dual boot but from linux now I cant. Whats wrong?
-tanveer
 
Old 02-01-2007, 02:18 AM   #2
blackhole54
Senior Member
 
Registered: Mar 2006
Posts: 1,896

Rep: Reputation: 61
You aren't by any chance using a forcedeth driver for eth0 are you? If so, see if this post is helpful.
 
Old 02-01-2007, 08:39 PM   #3
tanveer
Member
 
Registered: Feb 2004
Location: e@rth
Distribution: RHEL-3/4/5,Gloria,opensolaris
Posts: 525

Original Poster
Rep: Reputation: 39
No, it didn't worked. I also reinstalled the linux from fedora to RHEL but still the same message.
 
Old 02-01-2007, 08:53 PM   #4
jiml8
Senior Member
 
Registered: Sep 2003
Posts: 3,171

Rep: Reputation: 116Reputation: 116
What distro are you using? What are your ethernet cards? Are you sure the cable is plugged in?

What is the output from the command ifconfig? (you may need to run this as root).
 
Old 02-01-2007, 08:56 PM   #5
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Linux 11 (Bullseye)
Posts: 3,407

Rep: Reputation: 141Reputation: 141
"Determining IP information for eth0...failed;no link present. check cable?"

This error means that either the cable is disconnected or the device at the other end of the cable isn't turned on or is not working.
 
Old 02-01-2007, 09:10 PM   #6
tanveer
Member
 
Registered: Feb 2004
Location: e@rth
Distribution: RHEL-3/4/5,Gloria,opensolaris
Posts: 525

Original Poster
Rep: Reputation: 39
thanks for all your replies.
If its disconnected then how come I am using intenet from Windows. Interesting part is the same problem I faced in my office yesterday and swapping the cable ends solved the problem. But in my home, one end of the cable is connected at the ISP
 
Old 02-01-2007, 09:15 PM   #7
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Linux 11 (Bullseye)
Posts: 3,407

Rep: Reputation: 141Reputation: 141
"But in my home, one end of the cable is connected at the ISP "

No, one of your cable is connected to either a router or a cable modem or a dsl modem.
 
Old 02-02-2007, 05:24 PM   #8
jiml8
Senior Member
 
Registered: Sep 2003
Posts: 3,171

Rep: Reputation: 116Reputation: 116
Quite obviously the questions I asked the OP were too hard for him to answer. That being the case, presuming the cable is not bad, he's on his own.
 
Old 02-11-2007, 11:05 AM   #9
tanveer
Member
 
Registered: Feb 2004
Location: e@rth
Distribution: RHEL-3/4/5,Gloria,opensolaris
Posts: 525

Original Poster
Rep: Reputation: 39
Sorry for my late response as I was busy meeting a deadline.
Jiml8, its very pleasant to see that you are truly willing to help us and I admire that very much. But that was higher priority than my homes network connection.I hope you understand.
I am using RHEL3.

Code:
[root@localhost root]# service network restart

Shutting down interface eth0:     [  OK  ]
Shutting down loopback interface: [  OK  ]
Setting network parameters:       [  OK  ]
Bringing up loopback interface:   [  OK  ]
Bringing up interface eth0:       [  OK  ]
Bringing up interface eth1: 
Determining IP information for eth1...Cannot get driver information: Invalid argument
 failed; no link present.  Check cable?  [FAILED]

[root@localhost root]# cat /etc/sysconfig/network-scripts/ifcfg-eth0

# Linksys|Network Everywhere Fast Ethernet 10/100 model NC100

DEVICE=eth0

BOOTPROTO=none

HWADDR=00:02:44:BA:65:EA

IPADDR=192.168.10.21

NETMASK=255.255.255.0

ONBOOT=yes

TYPE=Ethernet

USERCTL=no

PEERDNS=no





[root@localhost root]# cat /etc/sysconfig/network-scripts/ifcfg-eth1

DEVICE=eth1

BOOTPROTO=dhcp

ONBOOT=yes

TYPE=Ethernet

USERCTL=no

PEERDNS=no


[root@localhost root]# vi /etc/modules.conf
alias eth0 tulip
alias eth1 fealnx
 
Old 02-11-2007, 11:11 AM   #10
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 65
From the first post you say eth0 is for the ISP and is dynamic and using a static setup for eth1.

Now in the post above you are showing eth0 as having the static non routing protocol and eth1 as setup to get an IP.

Has your setup changed?
What may be happening is the nics are seen in a different order under the linux kernel because of the way it is compiled. Not at my machine to tell you what it may pertain to.

Swap the cables around on the machine and see if that resolves the issue.

Brian
 
Old 02-11-2007, 11:17 AM   #11
tanveer
Member
 
Registered: Feb 2004
Location: e@rth
Distribution: RHEL-3/4/5,Gloria,opensolaris
Posts: 525

Original Poster
Rep: Reputation: 39
Actually, whenever I install linux its totally unknown to me which one will become eth0 and which one will be eth1. The thing is that I know in which MAC address the ISP is giving me the connection so I just set that interface to dhcp and other one static.
Will swapping resolve the issue as I can use internet from windows.
 
Old 02-11-2007, 11:43 AM   #12
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 65
Post output from the command ' /sbin/ifconfig '. Then tell me which one is the one for the ISP and the one for the lan side.

Brian
 
Old 02-13-2007, 07:24 AM   #13
tanveer
Member
 
Registered: Feb 2004
Location: e@rth
Distribution: RHEL-3/4/5,Gloria,opensolaris
Posts: 525

Original Poster
Rep: Reputation: 39
Now its not even showing the eth1 interface. eth0 is for my static connection.

output of /sbin/ifconfig
Code:
eth0    
    Link encap:Ethernet  HWaddr 00:02:44:BA:65:EA  
    inet addr:192.168.10.21  Bcast:192.168.10.255     
    Mask:255.255.255.0
    UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
    RX packets:0 errors:0 dropped:0 overruns:0 frame:0
    TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000 
    RX bytes:0 (0.0 b)  TX bytes:168 (168.0 b)
    Interrupt:10 Base address:0x1000 

lo     link encap:Local Loopback  
       inet addr:127.0.0.1  Mask:255.0.0.0
       UP LOOPBACK RUNNING  MTU:16436  Metric:1
       RX packets:14 errors:0 dropped:0 overruns:0 frame:0
       TX packets:14 errors:0 dropped:0 overruns:0 carrier:0
       collisions:0 txqueuelen:0 
       RX bytes:1044 (1.0 Kb)  TX bytes:1044 (1.0 Kb)
 
Old 02-25-2007, 10:00 PM   #14
tanveer
Member
 
Registered: Feb 2004
Location: e@rth
Distribution: RHEL-3/4/5,Gloria,opensolaris
Posts: 525

Original Poster
Rep: Reputation: 39
If I put the IP address and set the gateway as default manually, which it should be getting from DHCP then it works fine. But why its not getting the IP automatically from DHCP?
 
Old 02-26-2007, 03:17 AM   #15
blackhole54
Senior Member
 
Registered: Mar 2006
Posts: 1,896

Rep: Reputation: 61
Quote:
Originally Posted by tanveer
But why its not getting the IP automatically from DHCP?
You might want to look through your /var/log/messages file for clues about what is going on. A typical (correctly working!) sequence would look something like:

Code:
Feb 25 22:07:16 ubuntu dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 7
Feb 25 22:07:16 ubuntu dhclient: DHCPOFFER from 192.168.xx.xx
Feb 25 22:07:16 ubuntu dhclient: DHCPREQUEST on eth0 to 255.255.255.255 port 67
Feb 25 22:07:16 ubuntu dhclient: DHCPACK from 192.168.xx.xx
I don't believe Fedora uses dhclient for DHCP, so yours will probably look a little different, but the DCHPDISCOVER/OFFER/REQUEST/ACK sequence is typical. (I have obfuscated the address of my DHCP server above.)

You can also use tcpdump to check to see what is going on with the DHCP handshake when you try to start eth1. I would suggest typing in one terminal window, as root:

tcpdump -nni eth1

and then, in another window, as root, type

service network restart

Hope this helps.

Last edited by blackhole54; 02-26-2007 at 03:19 AM.
 
  


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
Working interface fails to initialize on startup ja203 Linux - Wireless Networking 1 12-10-2006 01:12 PM
re-instaled Slack 10.0, eth0 interface not working Necronomicom Slackware 2 01-10-2006 08:14 PM
x interface not working kf4ypd Linux - Newbie 3 11-26-2005 04:35 AM
SuSE Graphical interface not working totinnere Linux - Laptop and Netbook 8 10-23-2004 04:49 PM
kernel-2.6-test3 lo interface not working rch Linux - General 3 08-26-2003 11:58 PM

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

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