LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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-11-2003, 03:58 PM   #1
9nine9
Member
 
Registered: Nov 2001
Distribution: Debian, Fedora, Kubuntu, Puppy
Posts: 166

Rep: Reputation: 30
Can't get NIC working


I've been trying to set up internet connection sharing with my wife's computer. I just can't seem to get it going and in the meantime, I'm occasionally having IP address resolving problems.

Here's what the lines look like in my boot messages that relate to this, I think. Could somebody please tell me what's going on and what I need to do?

eth0 problem

Jan 11 15:44:37 localhost network: Enabling IPv4 packet forwarding succeeded
Jan 11 15:44:38 localhost ifup: Determining IP information for eth0...
Jan 11 15:46:38 localhost dhcpcd[1113]: timed out waiting for a valid DHCP server response
Jan 11 15:46:38 localhost ifup: failed.
Jan 11 15:46:38 localhost network: Bringing up interface eth0: failed
---------------------------------------------------

dhcp problem

Jan 11 15:46:44 localhost dhcpd: Wrote 1 leases to leases file.
Jan 11 15:46:44 localhost dhcpd:
Jan 11 15:46:44 localhost dhcpd: No subnet declaration for eth0 (0.0.0.0).
Jan 11 15:46:44 localhost dhcpd: ** Ignoring requests on eth0. If this is not what
Jan 11 15:46:44 localhost dhcpd: you want, please write a subnet declaration
Jan 11 15:46:44 localhost dhcpd: in your dhcpd.conf file for the network segment
Jan 11 15:46:44 localhost dhcpd: to which interface eth0 is attached. **
Jan 11 15:46:44 localhost dhcpd:
Jan 11 15:46:44 localhost dhcpd:
Jan 11 15:46:44 localhost dhcpd: Not configured to listen on any interfaces!
Jan 11 15:46:44 localhost dhcpd:
Jan 11 15:46:44 localhost dhcpd: If you did not get this software from ftp.isc.org, please
Jan 11 15:46:44 localhost dhcpd: get the latest from ftp.isc.org and install that before
Jan 11 15:46:44 localhost dhcpd: requesting help.
Jan 11 15:46:44 localhost dhcpd:
Jan 11 15:46:44 localhost dhcpd: If you did get this software from ftp.isc.org and have not
Jan 11 15:46:44 localhost dhcpd: yet read the README, please read it before requesting help.
Jan 11 15:46:44 localhost dhcpd: If you intend to request help from the dhcp-server@isc.org
Jan 11 15:46:44 localhost dhcpd: mailing list, please read the section on the README about
Jan 11 15:46:44 localhost dhcpd: submitting bug reports and requests for help.
Jan 11 15:46:44 localhost dhcpd:
Jan 11 15:46:44 localhost dhcpd: Please do not under any circumstances send requests for
Jan 11 15:46:44 localhost dhcpd: help directly to the authors of this software - please
Jan 11 15:46:44 localhost dhcpd: send them to the appropriate mailing list as described in
Jan 11 15:46:44 localhost dhcpd: the README file.
Jan 11 15:46:44 localhost dhcpd:
Jan 11 15:46:44 localhost dhcpd: exiting.
Jan 11 15:46:44 localhost dhcpd: dhcpd startup failed
----------------------------------------------------------

Here is what my dhcpd.conf file looks like right now:

ddns-update-style none;
subnet 192.168.0.0 netmask 255.255.255.0 {
# default gateway
option routers 192.168.0.1;
option subnet-mask 255.255.255.0;

option domain-name "homelan.org";
option domain-name-servers 192.168.0.1;

range dynamic-bootp 192.168.0.16 192.168.0.253;
default-lease-time 21600;
max-lease-time 43200;
}

 
Old 01-11-2003, 04:07 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
ok, well eth0 is presumably the interface that you are trying to listen on? what is the IP address of this host? make sure you are setting the netmask to the same one that "route" wil return to you. i think it's also worth trying moving most of those options outside of the subnet declaration, it s *think* some of them are meant to be global, e.g. "option subnet-mask"

mine says:
Code:
authoritative;

ddns-update-style interim;

option routers                  192.168.0.1;
option subnet-mask              255.255.255.0;
option domain-name-servers      192.168.0.1;
option domain-name              "thirtythreeandathird.net";
server-name                     "simon";
server-identifier               192.168.0.1;

subnet 192.168.0.0 netmask 255.255.255.0 {
  range 192.168.0.5 192.168.0.10;
}
 
Old 01-11-2003, 05:17 PM   #3
9nine9
Member
 
Registered: Nov 2001
Distribution: Debian, Fedora, Kubuntu, Puppy
Posts: 166

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by acid_kewpie
ok, well eth0 is presumably the interface that you are trying to listen on? what is the IP address of this host? make sure you are setting the netmask to the same one that "route" wil return to you. i think it's also worth trying moving most of those options outside of the subnet declaration, it s *think* some of them are meant to be global, e.g. "option subnet-mask"
eth0 is my NIC isn't it? I have a dial-up connection with an internal modem. In Windows, I share my internet connection with my wife's computer. I'm trying to do the same thing in Linux. (dual boot)

If you're talking about the IP address of my computer, it's 192.168.0.1.

The rest of your explanation, I'm afraid I don't understand. I'm just still too much of a newbie. I've tweaked a few files, but this networking thing has me totally stumped. For instance, I have no idea how to "make sure you are setting the netmask to the same one that "route" wil return to you" or "move most of those options outside of the subnet declaration".

Let me ask this: is my computer considered to be the "router" for my wife's computer while sharing the internet? I don't even know for sure if that's an intelligent question.

Thanks for you help.
 
Old 01-11-2003, 05:27 PM   #4
9nine9
Member
 
Registered: Nov 2001
Distribution: Debian, Fedora, Kubuntu, Puppy
Posts: 166

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by acid_kewpie


mine says:
Code:
option domain-name              "thirtythreeandathird.net";


subnet 192.168.0.0 netmask 255.255.255.0 {
  range 192.168.0.5 192.168.0.10;
}
Ok, here's another question. How did you set your domain name? I think when I was trying to set up internet connection sharing in the Mandrake Control Center, the program automatically assigned me with homelan.org. If I wanted to change this, how many places would it have to be changed? And is this a different thing from localhost.localdomain?

This stuff has me completely confused.
 
  


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
eth0 NIC Card Not Working! 3com 3c501 NIC. Mustard010 Linux - Networking 16 08-15-2007 02:22 AM
NIC not working srnerkar1 Linux - Networking 7 12-31-2005 05:23 AM
NIC not working peevee Linux - Laptop and Netbook 1 12-06-2004 05:06 PM
NIC not working asprey Linux - Hardware 1 05-20-2003 05:41 AM
NIC not working - it used to though.... Culbert Linux - Networking 2 03-19-2003 08:32 AM

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

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