Linux - Networking This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
01-01-2002, 12:46 AM
|
#1
|
Member
Registered: Jun 2001
Location: Chicago
Distribution: Mandrake 10.0 Official
Posts: 181
Rep:
|
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...
|
|
|
01-01-2002, 05:03 AM
|
#2
|
Senior Member
Registered: Dec 2000
Location: Gothenburg, SWEDEN
Distribution: OpenSUSE 10.3
Posts: 1,028
Rep:
|
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.
|
|
|
01-01-2002, 10:59 AM
|
#3
|
Member
Registered: Jun 2001
Location: Chicago
Distribution: Mandrake 10.0 Official
Posts: 181
Original Poster
Rep:
|
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!
|
|
|
01-01-2002, 03:14 PM
|
#4
|
LQ Newbie
Registered: Dec 2001
Distribution: Redhat / Mandrake / Suse / Debian
Posts: 6
Rep:
|
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
|
|
|
01-02-2002, 10:24 AM
|
#5
|
Member
Registered: May 2001
Location: Panama City Beach, FL
Distribution: *.BSD
Posts: 113
Rep:
|
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 
|
|
|
All times are GMT -5. The time now is 10:54 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|