[Klug-general] newbie networking questions

MacGyveR macgyver at thedumbterminal.co.uk
Fri Oct 8 19:24:05 UTC 2010


On Friday 08 Oct 2010, James Morris wrote:
> Hi,
>
> I've just started to look into networking between a laptop connected
> wirelessly to a BT Home Hub, and a desktop PC connected wirelessly to
> the same hub.
>
> Both running Debian, and the desktop has NFS and SSH daemons running.
>
> The router assigns IP addresses via DHCP so I'm guessing that the IP
> addresses could change depending on the order the machines are
> switched on/connected to the internet (the laptop does not connect
> automatically).
>
> Does this mean I must turn DHCP IP address assigning off in the router
> and choose two permanent addresses?
> (so I can specify the address of the laptop int the desktops
> /etc/hosts.allow file)
>
> Basically, I want to make it easy for my partner to use NFS to access
> data on my desktop from her laptop. While I know how to get the IP
> addresses of both, she does not, so I want to write a bash script
> which will mount the NFS partitions, and then perhaps show her how to
> ssh to my PC as well using something like:
>
> ssh user at mydesktop.home
>
> I need a few pointers as to which information I should look into as
> it's a bit bewildering to begin with and I know you all are pretty
> good with networking ;-)
>
> Cheers,
> James.
>
> _______________________________________________
> Kent mailing list
> Kent at mailman.lug.org.uk
> https://mailman.lug.org.uk/mailman/listinfo/kent

Tell your client PC's to send a hostname when requesting DHCP from the server, 
the router should store this hostname againist the dynamic IP that it gives 
the client. then you can just use the name (without any domain) everywhere, 
and forget about ips all together, eg:

ssh bob

This works for me in slackware, ubuntu and mac osx using a linksys router.

-- 
--------------------------------
http://www.thedumbterminal.co.uk



More information about the Kent mailing list