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.
|
|
07-16-2006, 06:49 PM
|
#1
|
Member
Registered: Sep 2005
Location: Notts, England
Distribution: Debian 10
Posts: 71
Rep:
|
basic q. how to copy files over home (peer) network
Bear with me, I'm still learning..
Laptop with FC5 and wireless networking working nicely..
Installed FC5 on desktop, said goodby to old os.
Basic firewall activated on both, allowing only ssh.
Both connect to hardware router gateway to cable modem. The router uses DHCP to assign addresses to the home network..
In network manager, lets say I've set the DNS tab hostname to "laptop.workgroup" on one and "desktop.workgroup" on the other, and my username is "me" on both.
Then I try (and get) the following from the laptop:
Quote:
[me@laptop ~]$ ssh -l me desktop
ssh: desktop: Name or service not known
[me@laptop ~]$ ssh -l me desktop.workgroup
ssh: desktop.workgroup: Name or service not known
[me@laptop ~]$ scp /home/me/tmp/* me@desktop.workgroup:/home/me/test/
ssh: desktop.workgroup: Name or service not known
lost connection
[me@laptop ~]$ scp /home/me/tmp/* me@desktop:/home/me/test/
ssh: desktop: Name or service not known
lost connection
|
Any ideas what I'm missing here?
Also if I want to have a shared folder on one of the machines, do I have to run SAMBA, of NFS on one / both machines or can things work without either?
|
|
|
07-16-2006, 06:57 PM
|
#2
|
LQ Guru
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733
|
What does the "hostname" command return on each computer.
Does it return "laptop" on one and "desktop" on the other?
I'm not certain if you are posting the hostname.domainname of each computer or used a hostname containing the string ".workgroup".
Does your router have a web configuration. If it does, look on the status page or the dhcp page and display the "dhcp clients" table. Do the hostnames show up there?
Last edited by jschiwal; 07-16-2006 at 06:59 PM.
|
|
|
07-16-2006, 08:16 PM
|
#3
|
Member
Registered: Sep 2005
Location: Notts, England
Distribution: Debian 10
Posts: 71
Original Poster
Rep:
|
The "hostname" command returns "laptop.workgroup" on the laptop, the desktop returns "desktop.workgroup. The router has a status tab - DHCP active clients table: ip addresses are there but client host names are blank. Presumably I need some way to broadcast the hostnames?
|
|
|
07-16-2006, 11:39 PM
|
#4
|
LQ Guru
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733
|
First, change the hostnames to "laptop" and "desktop" respectively. Having a host.domain name of laptop.workgroup.workgroup is too confusing. Get rid of the ".workgroup" part.
look at "cat /etc/HOSTNAME". I bet on the laptop it says "laptop.workgroup.workgroup".
I'm using SuSE, so I don't know what or where the DHCP client configuration file is on Fedora Core. On my system, it is at "/etc/sysconfig/network/dhcp" and there is an entry: DHCLIENT_HOSTNAME_OPTION="AUTO".
The client daemon uses this variable value. On my system this will send the value of /etc/HOSTNAME to the DHCP server. Your system may be similar. Locate the DHCP client configuration file. It will hopefully be well commented , so you should know which variable "value" entry to edit.
Good Luck!
|
|
|
07-17-2006, 04:39 PM
|
#5
|
Member
Registered: Sep 2005
Location: Notts, England
Distribution: Debian 10
Posts: 71
Original Poster
Rep:
|
Thanks jschiwal
I've changed the hostnames as you suggested. However the files you refer to don't exist on FC5, here's as much as I could find:
Quote:
[me@laptop ~]$ cat /etc/hostname
cat: /etc/hostname: No such file or directory
[me@laptop ~]$ cat /etc/HOSTNAME
cat: /etc/HOSTNAME: No such file or directory
[me@laptop ~]$ cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost laptop
[me@laptop ~]$
|
There used to be a DHCP config file in FC4 called etc/dhclient.conf but it seems to have been done away with in FC5.
In the network manager there is a place to enter the hostname on the DNS tab, and then for each device there is an optional place to enter the hostname, I've tried in one, in another, in both etc, still no show in the router table. There are also fields on the DNS tab for primary, secondary and tertiary DNSs, and one for DNS search path, all are blank.
Unless someone has a brainwave I guess I'll just go to static addressing, that might work..
Jacek
|
|
|
07-17-2006, 05:52 PM
|
#6
|
Member
Registered: Sep 2005
Location: Notts, England
Distribution: Debian 10
Posts: 71
Original Poster
Rep:
|
How about this then - although I had to restart the network service in testing all the above methods, nothing worked. Now I tried deactivating and reactivating the 'devices' in network manager, and Voila! the hostname now appears in the router!
|
|
|
07-17-2006, 07:08 PM
|
#7
|
Member
Registered: Sep 2005
Location: Notts, England
Distribution: Debian 10
Posts: 71
Original Poster
Rep:
|
Yet I still get this:
Quote:
[me@laptop ~]$ ssh me@desktop
ssh: desktop: Name or service not known
|
If I use the ip adress for desktop it logs in correctly, yet if I use the hostname, it doesn't. Any suggestions anyone?
Thanks
|
|
|
All times are GMT -5. The time now is 04:34 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
|
|