LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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-01-2002, 12:46 AM   #1
lhoff
Member
 
Registered: Jun 2001
Location: Chicago
Distribution: Mandrake 10.0 Official
Posts: 181

Rep: Reputation: 30
DHCP problems and more...


Maybe I'm going about this all wrong...

I have a P200, 64MB, 3.2GB box that I have put Mandrake 8 on and I also have a Win98 box. These are both connected to the outside world via a Netopia R-7100 SDSL router provided by my ISP, which assigns IPs through DHCP.

I want my Linux box to be a fileserver for my Win98 box, and I have installed dhcpd to enable smb to serve said Windows box.

When I try to start dhcpd, I get

No subnet declaration for eth0 (192.168.1.100).
Please write a subnet declaration in your dhcpd.conf file for the
network segment to which interface eth0 is attached.
exiting


even though my dhcpd.conf has the declaration
subnet 192.168.1.100 netmask 255.255.255.0 {
}

in it.

I've read all the Google.com search results (there are quite a few) for this problem and none of them helped with my situation. Some have suggested changing my script to stipulate eth0 for the DEV, but that didn't help either.

Both the Lin and Win boxes have only one NIC in each, and each connects to the DSL router, channels 2 and 1 respectively. Can I do what I want with this setup? Or do I need a 2nd NIC for the Linux box and use eth0 to get an IP from DSL and eth1 to connect to the Windows box and give it an IP and serve files to it? I can see that the second way could be a better method, but I can't afford more hardware and cable right now...

Your help is appreciated. And Happy New Year! Here's hoping '02 is better for all of us than '01 was...
 
Old 01-01-2002, 05:03 AM   #2
ugge
Senior Member
 
Registered: Dec 2000
Location: Gothenburg, SWEDEN
Distribution: OpenSUSE 10.3
Posts: 1,028

Rep: Reputation: 45
I'm a bit confused about your hardware setup.
You have a SDSL router connected to your ISP.
This router has more than one port on the LAN side, right?
Does your router give you IP addresses, or do you configure them statically on the clients?

For smb to work you don't need a DHCP.
Since you only have two computer the easiest path would be to configure the IP manually or let the router handle DHCP if it is capable of it.
 
Old 01-01-2002, 10:59 AM   #3
lhoff
Member
 
Registered: Jun 2001
Location: Chicago
Distribution: Mandrake 10.0 Official
Posts: 181

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by ugge
I'm a bit confused about your hardware setup.
You have a SDSL router connected to your ISP.
This router has more than one port on the LAN side, right?
Does your router give you IP addresses, or do you configure them statically on the clients?

For smb to work you don't need a DHCP.
Since you only have two computer the easiest path would be to configure the IP manually or let the router handle DHCP if it is capable of it.

Right. The router has 8 ports on the LAN side. I don't configure the IP addresses, the router gives them out.

Right now, though, I can't login at the Windows box. Even though smb is up and running, the Win box doesn't see anything else to connect to. A document at http://www.troubleshooters.com/linux/samba.htm has the following note:
If your windows machine obtains its IP automatically through WINS using DHCP for WINS resolution, you must make your Linux machine a DHCP server.

Since my Win box does do this, I started setting up dhcpd and that's when my trouble started. I still can't login or see anything in Network Neighborhood. Is that note incorrect?

Thanks!
 
Old 01-01-2002, 03:14 PM   #4
ifincham
LQ Newbie
 
Registered: Dec 2001
Distribution: Redhat / Mandrake / Suse / Debian
Posts: 6

Rep: Reputation: 0
Hi,







Have you tried putting a more explicit config in your /etc/dhcpd.conf ? For example :







subnet 192.168.1.0 netmask 255.255.255.0 {



range 192.168.1.128 192.168.1.254;



option broadcast-address 192.168.1.255;



option domain-name-servers 192.168.1.100;



option domain-name "whatever.com";



}











Also your declaration should be subnet 192.168.1.0 netmask 255.255.255.0 and not 'subnet 192.168.1.100 .....' because 192.168.1.100 is a host not a subnet.





Regards
 
Old 01-02-2002, 10:24 AM   #5
Jase
Member
 
Registered: May 2001
Location: Panama City Beach, FL
Distribution: *.BSD
Posts: 113

Rep: Reputation: 15
Code:
subnet 192.168.1.0 netmask 255.255.255.0 {
        range 192.168.1.30 192.168.1.170;
        default-lease-time 86400;
        max-lease-time 604800;
        option subnet-mask 255.255.255.0;
        option broadcast-address 192.168.1.255;
        option routers 192.168.1.1;
        option domain-name-servers 192.168.1.1, 207.230.75.222, 207.230.75.221;
I agree with ifincham
 
  


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
DHCP problems - multiple DHCP servers sat86 Linux - Networking 4 10-02-2005 05:43 AM
DHCP problems Lgoat Linux - Networking 2 05-07-2004 05:12 PM
DHCP problems 95se Linux - Networking 6 01-06-2004 06:17 PM
XP Pro Build 2600/sp1 v.1105 DHCP Client to Redhat 8.0 DHCP Server - Problems atomant Linux - Networking 5 06-28-2003 11:24 AM
DHCP problems Ryan_Sutton Linux - Networking 1 06-19-2002 01:18 AM

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

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