Linux - NetworkingThis 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.
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.
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.
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.
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;
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.
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?????
>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
>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.
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??
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.
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!
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!
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.