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.
|
|
03-18-2002, 11:35 PM
|
#1
|
Member
Registered: Jan 2002
Location: Buenos Aires, Argentina
Distribution: Slackware, LFS
Posts: 32
Rep:
|
dhcpd question...
I was trying to setup a dhcp server for only one machine...I know its useless but I just want to do it cos` I want to learn how it works....
intalled the package ( my distro slack8 ) edit the dhcpd.conf and it started to listen the eth0 interface....
On the other machine (win98) I configured the NIC to ask for the ip...no dns, no wins, no nothing....just the name and the workgroup of the machine...
it doesn`t work...
dont know why......I`ve got this in my dhcpd.conf file...
----------------------
Subnet 192.168.0.0 netmask 255.255.255.0 {
range 192.168.0.50 192.168.0.100;
Option subnet-mask 255.255.255.0;
Option domain-name-servers 200.51.254.254,200.51.254.251;
option routers 192.168.0.131;
option broadcast-address 192.168.0.255;
default-lease-time 60;
max-lease-time 120;
option netbios-node-type 8;
option ip-forwarding on;
option domain-name "giuffra.com";
}
--------------------------------------
....and it doesnt work....what am I missing..???
|
|
|
03-19-2002, 12:03 AM
|
#2
|
Member
Registered: Feb 2002
Location: India
Distribution: Slacky 12.1, XP
Posts: 992
Rep:
|
try with more than one client
try with more than one client and see if it works. with only one client you wont see much difference. i did the same and it worked.
did you start the DHCP server(DHCPD)?
|
|
|
03-19-2002, 01:13 AM
|
#3
|
Member
Registered: Jan 2002
Location: Buenos Aires, Argentina
Distribution: Slackware, LFS
Posts: 32
Original Poster
Rep:
|
Yes, I executed dhcpd -d -f ...but it just kept listening to the eth0 if....
I`ll Try with more than one client....I dont think that will make things works...but...what the hell...if it worked with you....
|
|
|
03-19-2002, 01:15 AM
|
#4
|
Member
Registered: Jan 2002
Location: Buenos Aires, Argentina
Distribution: Slackware, LFS
Posts: 32
Original Poster
Rep:
|
for you...for you...not "with you"....gooood..my english sucks....
|
|
|
03-19-2002, 02:09 AM
|
#5
|
Member
Registered: Feb 2002
Location: Orlando
Distribution: Whatever I feel like at the time I install.
Posts: 284
Rep:
|
Just a quick thought. Where is your dhcpd.conf file located. I am pretty sure it is supposed to be in the /etc/ dir. Also you need to have a dhcpd.leases file which should be in /var/state/dhcp/
To make this file just execute the command:
touch /var/state/dhcp/dhcpd.leases
|
|
|
03-19-2002, 08:10 PM
|
#6
|
Member
Registered: Jan 2002
Location: Buenos Aires, Argentina
Distribution: Slackware, LFS
Posts: 32
Original Poster
Rep:
|
it seems that the dhcpd server is dead...the rare thing is that is says that it listening to the port....but nothing happens...I dunno what the hell is going on...checked the logs...the /var/etc/dhcp/dhcp.leases file, bla bla bla....
Do I have to open the port 67/68..???...How do I do that?...by editing the /etc/services file?....
|
|
|
03-19-2002, 10:28 PM
|
#7
|
Member
Registered: Feb 2002
Location: Orlando
Distribution: Whatever I feel like at the time I install.
Posts: 284
Rep:
|
Yes those two ports must be open. However unless you are running a firewall that is closing them, they should be open. If you have a firewall post it and maybe either myself or someone else can detect something that might be wrong. Post your setup as best you can. ie) what NICs you have and where they go to, along with your firewall script.
|
|
|
03-19-2002, 11:30 PM
|
#8
|
Member
Registered: Jan 2002
Location: Buenos Aires, Argentina
Distribution: Slackware, LFS
Posts: 32
Original Poster
Rep:
|
No firewall...just masquerading...
Well...its ok...I`ll figure sth out....thank you very much for your answers you all...
|
|
|
03-20-2002, 12:27 PM
|
#9
|
Member
Registered: Jan 2002
Location: Buenos Aires, Argentina
Distribution: Slackware, LFS
Posts: 32
Original Poster
Rep:
|
It started working....dont remember what I did....but its working!!!...
weird!
|
|
|
All times are GMT -5. The time now is 09:12 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
|
|