using zeroconf/avahi/whatever to attach computers

Thomas PARIS mercen at mercen.org
Mon Oct 1 21:49:23 UTC 2007


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.

HTH
Thomas "mercen" PARIS

-- 
Google Talk / Jabber: mercen at jabber.typhon.net
http://mercen.org/news    <- news
http://mercen.org/gallery <- photos




More information about the ubuntu-users mailing list