LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 04-30-2004, 12:59 AM   #1
Pedroski
Senior Member
 
Registered: Jan 2002
Location: Nanjing, China
Distribution: Ubuntu 20.04
Posts: 2,116

Rep: Reputation: 73
dhcp.conf


Could someone send me a copy of their, dhcp.conf, assuming it works ok?
I can then alter it to fit my machine. I have a dhcp.conf from a magazine, but it just chucks up errors. And when it didn't, dhcpd asked for dhcp.leases, a file which doesn't exist on my machine.
 
Old 04-30-2004, 02:03 AM   #2
coolamit78
Member
 
Registered: Aug 2003
Location: New Delhi, India
Distribution: RHEL AS 3/4, Windows XP
Posts: 546

Rep: Reputation: 31
Hi..

1. Red Hat 9 comes with the dhcp server package. So, when u install that package, it will automatically install the dhcpd.conf file.

2. In case you do not have a dhcpd.leases file on your system, just create a blank file and name it dhcpd.leases. That will do the job. Infact, that file is also created when u install the dhcp rpm from your Red Hat 9 CD.

Regards,

amit
 
Old 04-30-2004, 03:18 AM   #3
metalick
Member
 
Registered: Apr 2004
Location: Zagreb, Croatia
Distribution: SuSE 9.0
Posts: 44

Rep: Reputation: 15
Re: dhcp.conf

Quote:
Originally posted by Pedroski
Could someone send me a copy of their, dhcp.conf, assuming it works ok?
I can then alter it to fit my machine. I have a dhcp.conf from a magazine, but it just chucks up errors. And when it didn't, dhcpd asked for dhcp.leases, a file which doesn't exist on my machine.
I had to create the dhcp.leases file manualy. As a root. And the dhcpd.conf. But it all depends on which distro u are using. In SuSE 9 you can configure your dhcp server through yast easily. If you install newer version of dhcp then you have to do some things manually. But there are some examples that come with the dhcp software package (I assume u use the isc dhcp). Check those.

Anyhow these options should work:
default-lease-time 7200;
max-lease-time 7300;
log-facility local7;

subnet xxx.xxx.xxx.0 netmask 255.255.255.0 {
range xxx.xxx.xxx.xxx xxx.xxx.xxx.xxx;
option domain-name-servers xx.xxx.xxx.xxx;
option routers xx.xxx.xxx.xxx;
default-lease-time 600;
max-lease-time 7200;
}
ddns-update-style ad-hoc;


Good luck
 
Old 04-30-2004, 11:57 PM   #4
Pedroski
Senior Member
 
Registered: Jan 2002
Location: Nanjing, China
Distribution: Ubuntu 20.04
Posts: 2,116

Original Poster
Rep: Reputation: 73
Thanks for the replies. Another question. Assuming I get dhcpd up and running, how do I actually get at the other computers? Are they mounted somewhere under / ? Or how can I browse them? Are there intricate permission questions here? This is oldcomp, the other one is newcomp.
 
Old 05-01-2004, 01:22 AM   #5
Pedroski
Senior Member
 
Registered: Jan 2002
Location: Nanjing, China
Distribution: Ubuntu 20.04
Posts: 2,116

Original Poster
Rep: Reputation: 73
Well, I just reconfigured the computers using ifconfig eth0 192.168.3.9 broadcast 192.168.3.255 netmask 255.255.255.0
This comp, oldcomp is 192.168.3.9
The other is newcomp 192.168.3.10
Now I can ping -c 10 192.168.3.10 and from the other machine I can ping 192.168.3.9
That means I'm connected, right? Or what?
So how do I browse newcomp from oldcomp?????
 
Old 05-01-2004, 06:06 AM   #6
zaphodiv
Member
 
Registered: Oct 2003
Distribution: Slackware
Posts: 388

Rep: Reputation: 30
>how do I actually get at the other computers?
You connect to them using network protocols that
are carried over tcp/ip

>ddns-update-style ad-hoc;
Do you really want it to try to update
your dns server? This is my dhcpd.conf
which I created from scratch by spending
twenty minutes reading the man page.
The big lease time suits me

authoritive;
ddns-update-style none;
ddns-updates off;
default-lease-time 360000;
min-lease-time 100;
max-lease-time 360001;
one-lease-per-client true;

subnet 10.14.0.0 netmask 255.255.255.240 {
range 10.14.0.4 10.14.0.14;
option routers 10.14.0.3;
}


>Are they mounted somewhere under /
Not unless you mount them yourself

>Or how can I browse them?
It depends what network protocols they support.
If they are windows machines with microsoft
networking activated then you use samba.
If they are unix box with NFS installed
and configured you use NFS.
If they are running an FTP server you can use
that. If they are running an ssh daemon with
wht secure ftp stuff enable you can use that.
If they don't have any services installed
that allow access to files then you can't browse
then.

>Are there intricate permission questions here?
Depends on what you are trying to do.
 
Old 05-01-2004, 07:02 AM   #7
Pedroski
Senior Member
 
Registered: Jan 2002
Location: Nanjing, China
Distribution: Ubuntu 20.04
Posts: 2,116

Original Poster
Rep: Reputation: 73
This comp, trouble.oldcomp is running Fedora
The other is trouble.newcomp running Mandrake 9.2
I don't know what that means, "you connect using network protocols"
What do I actually have to do? I am now connected to the Internet, but I wouldn't recognize an ip/tcp protocol if I fell over it.
I can visit other computers on the net, read things download things. How do I do that with the computer next to me.
I entered 192.168.3.10 in Mozilla and get connection refused.
I am trying to use the two computers as one, as a network. That must be possible. No Win involved. How do I then mount the other computer, so that I can eg open an Open Office file on it using this computer.

I changed hosts.allow thinking maybe that would do it. But no.
Am I connected if I can ping 192.168.3.10? If so, how do I browse newcomp??
 
Old 05-01-2004, 07:25 AM   #8
Zero-0-Effect
Member
 
Registered: Sep 2002
Location: Texas
Distribution: SlackWare - Current LFS - CVS
Posts: 267

Rep: Reputation: 31
You can connect to the other comps in a variety of ways..
ssh 192.168.3.10
ftp open 192.168.3.10
or run a samba or nfs server.
Read up on those 4 things and im sure you will come across more while doing so.
 
Old 05-01-2004, 01:29 PM   #9
Pedroski
Senior Member
 
Registered: Jan 2002
Location: Nanjing, China
Distribution: Ubuntu 20.04
Posts: 2,116

Original Poster
Rep: Reputation: 73
ssh 192.168.3.10
ftp open 192.168.3.10
Neither work: not a valid url
But I have installed smb on newcomp and now have a mdk group present on oldcomp. So I'm getting somewhere.
How can I just browse the newcomp from oldcomp? LinNeighbourhood??
Thanks for any tips!
 
Old 05-02-2004, 01:30 AM   #10
Pedroski
Senior Member
 
Registered: Jan 2002
Location: Nanjing, China
Distribution: Ubuntu 20.04
Posts: 2,116

Original Poster
Rep: Reputation: 73
ssh 192.168.3.9 gives
port22 connection refused
ftp open 192.168.3.9 gives
ftp open : unknown host
ftp>
I started samba.
Under network servers I now get smb:/// in a window, and there is Mdkgroup, which is coming from the other computer. I didn't put it on this computer. How do I give myself permission to browse files on newcomp from oldcomp.
On newcomp there is now LinNeighbourhood, and file permissions there are set to 644
But I can't actually browse anything from here or the other comp.
Oh from newcomp
arp -a gives
? (192.168.3.9) at 00:40:F4:9C:9F:9B [ether] on eth0 This is the MAC of the card in oldcomp.
What have I got to do to actually browse one comp from the other?? They are connected!
 
Old 06-02-2004, 11:15 AM   #11
BrianNJ
Member
 
Registered: Jul 2003
Distribution: Gentoo 2004.0
Posts: 157

Rep: Reputation: 30
Quote:
Originally posted by Pedroski
ssh 192.168.3.9 gives
port22 connection refused
that port is being blocked on that router/server. without knowing how you set up iptables to begin with, i'm not sure how to advise you open that port up.
 
Old 06-02-2004, 12:52 PM   #12
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
All DHCP does is give machines connected to the LAN information that is required to connect to the other computers and the internet.

It doesn't provide any facility to actually connect to the other machines, however. For that you need other software and protocols, like FTP, SSH, NFS, Samba, etc.
 
  


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
dhcp and resolv.conf naflan Linux - Networking 2 10-04-2004 07:48 PM
dhcp conf problems talkinggoat Linux - Networking 4 05-25-2004 06:49 PM
Not getting an IP address with DHCP conf headsman Linux - Networking 15 03-11-2004 01:14 PM
dhcp.conf or dhcpd.conf? rogerbennett Linux - Networking 3 09-03-2003 12:25 PM
dhcp.conf can't find in rh 7.1 xtian500 Linux - Software 1 11-09-2001 12:36 AM

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

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