Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 06-28-2004, 06:59 PM   #1
LQ Newbie
Registered: Jun 2004
Posts: 2

Rep: Reputation: 0
Attaching my linux box to a router.

I am definately a newbie, but am learning all the time. I installed a distro of linux that came free with some magazine on an old computer. I've been playing around with some perl programming & getting the machine to talk to some serial input devices... anyway.

I bought a cheap LAN card & put it in and was pleased that it was detected and seems to be functional.

Now I need some quick advice on how to get it talking to my router.

I'm running a DLINK 614+ router with DCHP enabled. Normally this is the router for my in-home wireless, but it has a hook up for a wired LAN too so I have plugged the network card into there. I set up the Network Configuration to use DCHP and get the error

"Determining IP information for eth0... failed; no link present. Check cable?"

If I give it a static IP i.e. it gives no error, but also isn't able ot be pinged from the router and gets no signal.

Is there an wasy way to just hook up a single machine to the router? Searching the internet is not working, too much networking info.

Old 06-28-2004, 08:17 PM   #2
Registered: Jul 2003
Location: Florida
Distribution: Red Hat 7.2/8/9, Fedora Core 1/2/3, Smoothwall, Mandrake 7.0/10, Vecter 4, Arch 0.6, EnGuarde
Posts: 289

Rep: Reputation: 30
Two statements:

First, what distribution are you running?
(e.g. Redhat (version), Mandrake (version), Debrian (version), Lindows (version), etc)

Second, the problem sounds like it's your IPTable.

Try doing the following:
My understand is, the reason why you are not getting an error when setting your NIC with a static IP is because, your telling it to do nothing.

Example, running the NIC as a Dynamic requires the NIC to pull an IP address from a DHCP, which would require your NIC to bind an IP from the DHCP DNS server. When the NIC attempts a request, the IPTable disallows the function, returning an error signifying a possibility of which your nic is non-functional. When the NIC is set to a static, the NIC card does not perform any functions, but may not have the IP truly bound to the NIC either. If the IP is not bound to the NIC, this may mean you have a great length of problems. You can test if the IP address is bound by typing the following:
ping (your Static IP Address)
If your static IP address is bound, but you are unable to communicate outside of your computer, it is because your IPTable is limited to only allowing network traffic to work on the local loop back.

To resolve this issue, you will need to work with the IPTables. Depending on what distribution of Linux you have, this can be as easy as pushing a few buttons or as difficult as working with code.
Old 06-28-2004, 09:07 PM   #3
LQ Guru
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 357Reputation: 357Reputation: 357Reputation: 357
I would follow what the error message says, check your cable. It is most likely either damaged, or it is a crossover cable.
Old 06-29-2004, 08:24 AM   #4
LQ Newbie
Registered: Jun 2004
Posts: 2

Original Poster
Rep: Reputation: 0
huh... don't I feel sheepish. As usual, the most simple explanation turned out to be correct. Since the cable was brand new I didn't even consider the fact that, as linux suggested, the cable might be faulty. I dug through an old box of computer supplies I had laying around and pulled an ethernet cable out. when I plugged it in it worked perfectly, first time.

Thanks for your responses. I'm sure I will be on here asking dumb questions again.

Thanks a bundle.



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 as router cambie Linux - Networking 10 11-16-2004 12:20 AM
Using Linux Box as a Router wasabi Linux - Networking 5 09-04-2003 05:08 PM
Linux box as a router dumpa Linux - Newbie 8 08-08-2003 04:05 PM
Linux box as router AkumaLoka Linux - Networking 3 10-14-2002 04:57 PM
Linux box as router Kapone Linux - Networking 5 07-04-2001 06:50 AM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:22 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration