Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
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
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
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:
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.
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.
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?
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.