|
Home > Archive > alt.os.linux > October 2002 > Network configuration problems
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Network configuration problems
|
|
| Brian K. Quade 2002-10-07, 12:24 pm |
| I am very new to Linux and am trying to set up a network in my home (I
am somewhat familiar with setting up networks, but not very familiar
with Linux). I think I am having trouble setting up the host and domain
names for my Linux computers.
My network has 2 Linux machines (that I recently set up) and one Windows
XP machine. Eventually, I would like to use one of the Linux machines as
a print server for the local network (including the Windows XP machine)
and a web server for testing web applications.
I am trying to set up ssh so that I can administer the Linux server from
the other Linux machine where I will do my development, etc. However, I
can not get ssh to work and I think it may be because I do not have my
host and domain names set up correctly, which I have not learned how to
do under Linux yet.
The server machine starts sshd just fine when the machine starts up.
And I can start an ssh session from that machine (so it knows its own
host name). But I can not start a session from the other Linux machine
(so the network does not know the server's host name).
When I log into my router configuration utility, I see the IP addresses
of the Linux machines that are connected, but they do not show a host
name. The Windows XP machine does show a host name in the router
configuration utility. Maybe that is why ssh will not work?
Can anyone point me in the right direction??
| |
| Sybren 2002-10-07, 12:24 pm |
| Brian K. Quade wrote:
> I am trying to set up ssh so that I can administer the Linux server from
> the other Linux machine where I will do my development, etc. However, I
> can not get ssh to work and I think it may be because I do not have my
> host and domain names set up correctly, which I have not learned how to
> do under Linux yet.
Hostnames and domain names aren't that important. It's IP addresses that
count. Can you ping the different machines? Is 'sshd' actually running on
the Linux box? (hint: ps -awx | grep sshd) What kind of errors do you get?
The document linked in my signature might be a good read for you.
Furthermore: DO NOT CROSSPOST! Post to a single group, and if they don't
answer, then post to the next.
Sybren
--
Do you think I'm rude, or don't you understand my answers? Read this page
[http://www.tuxedo.org/~esr/faqs/sma...ions.html#intro] and you'll
understand. You'll also see that I'm not rude in this
(http://www.tuxedo.org/~esr/faqs/sma...tions.html#rtfm) section.
| |
| Duncan Thomson 2002-10-07, 3:24 pm |
|
"Brian K. Quade" wrote:
>
> I am very new to Linux and am trying to set up a network in my home
<snip>
>...I do not have my
> host and domain names set up correctly, which I have not learned how to
> do under Linux yet.
You need to explain your home network a little better. If
you're running a DNS server, or if someone is running one
for you, then you need to add entries for your hosts in that
server. More likely, you're not running a DNS server, and you
probably don't even have a registered domain name. The simplest
thing to do is just to manually create some entries in /etc/hosts
on each of your machines. For example, add lines like:
192.168.1.1 machine1.myhouse.org machine1
192.168.1.2 machine2.myhouse.org machine2
I think if you do "man hosts" you'll get info on this. Or see
http://sman.informatik.htw-dresden....1/man?=hosts&=5
The only problem with the above approach is that you have to manually
maintain this file, which might be no problem, or might be a pain,
depending on your particular setup.
>
> The server machine starts sshd just fine when the machine starts up.
> And I can start an ssh session from that machine (so it knows its own
> host name). But I can not start a session from the other Linux machine
> (so the network does not know the server's host name).
If you use an IP address does ssh work? For example, if you do
something
like "ssh 1.2.3.4" do you get a connection?
>
> When I log into my router configuration utility, I see the IP addresses
> of the Linux machines that are connected, but they do not show a host
> name. The Windows XP machine does show a host name in the router
> configuration utility. Maybe that is why ssh will not work?
You need to be more specific here. What is your "router"? Does
it run a DNS server? (Is it also running your DHCP server?) If
that's the case, then you need to configure it. Some DHCP servers
will also set the hostname on the client. If this is what you
are doing, then use the "-H" option when you start your dhcp client
on the linux box. (How you do this depends on which Linux
distribution you are running, if you are running red-hat I can
help, otherwise...)
>
> Can anyone point me in the right direction??
You might want to just do some reading on the web and get an
understanding of how DNS works. You might also want to bone
up on DHCP.
| |
|
| Brian K. Quade wrote:
> My network has 2 Linux machines (that I recently set up) and one Windows
> XP machine. Eventually, I would like to use one of the Linux machines as
> a print server for the local network (including the Windows XP machine)
> and a web server for testing web applications.
.... can you ping the various machines from each machine? are you
using static or dynamic IPs for each of the machines?
BTW .... you've crossposted to too many groups
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~
Michael J. Tobler: motorcyclist, surfer, # Black holes result
skydiver, and author: "Inside Linux", # when God divides the
"C++ HowTo", "C++ Unleashed" # universe by zero
| |
|
| -----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Brian K. Quade wrote:
|
| Can anyone point me in the right direction??
|
Which Distro?
- --
Richard - richard[at]gotworms.co.uk
# telnet://www.tr3.org:3000
# The bugs will go away when you turn off the computer!
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6-2 (MingW32)
Comment: For info see http://www.gnupg.org
iEYEARECAAYFAj2h+2MACgkQvgpMAb
M8iLQm5wCg/ATUgD6bieU4R2J9kHgSZMtE
yBcAnirAcHyh2/9BP6DtS8AURQxuS/60
=WhVK
-----END PGP SIGNATURE-----
|
|
|
|
|