using zeroconf/avahi/whatever to attach computers

Matt Price matt.price at utoronto.ca
Fri Oct 12 04:25:22 UTC 2007


On Mon, 2007-10-01 at 23:49 +0200, Thomas PARIS wrote:
> On Mon Oct  1 at 11:15 (-0700), Matt Price wrote:
> > > sudo ifconfig eth0 192.168.0.1 in one and
> > > sudo ifconfig eth0 192.168.0.2 in the other.
> > 
> > ah.  that's simple.  thanks!
> 
> It is simple indeed, but it's not needed. If ubuntu doesn't find a DHCP
> server, it will self-assign an IP address. And you don't need to know
> it, because it will also respond to requests sent to <hostname>.local,
> where <hostname> is of course the hostname of that machine.
> 
> So, for example, suppose you have two computers named foo and bar,
> then connecting them with a cable is enough for
> 
> $ ping bar.local
> 
> run on foo to actually ping bar. No configuration needed.
> 
> You do need to do some work for file sharing, but that would be true
> also if you were to manually assign IP addresses.
> 
hi,

missed this earlier, sorry.  this is excellent.  didn't know about
the .local domain, that's a fabulous little construct.  thanks.

matt


> HTH
> Thomas "mercen" PARIS
> 
> -- 
> Google Talk / Jabber: mercen at jabber.typhon.net
> http://mercen.org/news    <- news
> http://mercen.org/gallery <- photos
> 
-- 
Matt Price
matt.price at utoronto.ca
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20071011/5857139c/attachment.sig>


More information about the ubuntu-users mailing list