Nieuws:

Welkom, Gast. Alsjeblieft inloggen of registreren.
Heb je de activerings-mail niet ontvangen?

Auteur Topic: Avahi configuratie  (gelezen 2240 keer)

Avahi configuratie
« Gepost op: 2006/05/31, 16:56:27 »
Ik ben nu met avahi aan het proberen, maar hoe kan je naast {computernaam}.local nog andere toevoegen?
Ik heb mijn /etc/avahi/hosts bestand zo aangepast:
# $Id: hosts 1137 2006-02-14 21:31:48Z lennart $
#
# This file is part of avahi.
#
# avahi is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as
# published by the Free Software Foundation; either version 2 of the
# License, or (at your option) any later version.
#
# avahi is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
# License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with avahi; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
# USA.

# This file contains static ip address <-> host name mappings.  These
# can be useful to publish services on behalf of a non-avahi enabled
# device. Please bear in mind that host names are expected to be
# fully qualified domain names, i.e. ending in .local!

# See avahi.hosts(5) for more information on this configuration file!

# Examples:
# 192.168.0.1 router.local
# 2001::81:1 test.local
192.168.2.200 mysql.azerty.local
192.168.2.201 calculat.local
En voor elke nieuwe .local domein een .service bestand toegevoegd in /etc/avahi/services
Ze zien er elk zo uit:



  PHPMyAdmin .local domainname
 
    _http._tcp
    80
    mysql.azerty.local
    192.168.1.200
 

[edit] Ik heb met ifconfig twee nieuwe ip adressen geconfigureerd en die werkten[/edit]
Vervolgens heb ik de terminal het volgende getypt:
sudo avahi-daemon -r
sudo avahi-dnsconfd -r
Dat bleek niet te helpen. Ook een herstart maakte niks uit.
Wat moet ik doen?


En nog een ander vraagje. Wat is het verschil tussen de gewone(686) en de server kernel? En levert het winst op om die te draaien?
Vragen over Ubuntu Nederland of de internationale Ubuntu-gemeenschap? PB of mail me!

Gast

  • Gast
Avahi configuratie
« Reactie #1 Gepost op: 2006/06/03, 10:43:04 »
Het werkt alweer! Ik was vergeten dat je (helaas) elke keer weer
ifconfig eth0:1 moet draaien. Weet iemand hoe dat automatisch bij het opstarten te doen?

Avahi configuratie
« Reactie #2 Gepost op: 2006/06/03, 12:12:11 »
Zet dit in /etc/network/interfaces:

auto eth0:1
iface eth0:1 inet static
address
netmask
gateway

Gast

  • Gast
Avahi configuratie
« Reactie #3 Gepost op: 2006/06/03, 12:31:43 »
Waarvoor zijn netmask en gateway? Want bij degene die er al staat(eth0) staat dat er niet bij.

Avahi configuratie
« Reactie #4 Gepost op: 2006/06/03, 18:44:40 »
Die zijn nodig als het anders niet werkt ;)

Avahi configuratie
« Reactie #5 Gepost op: 2006/06/04, 12:26:04 »
Wat moet je daar dan invullen?
Vragen over Ubuntu Nederland of de internationale Ubuntu-gemeenschap? PB of mail me!

budster

  • Gast
Avahi configuratie
« Reactie #6 Gepost op: 2006/06/04, 12:58:32 »
Even er vanuit gaan dat je minder dan 255 computers hebt zal 255.255.255.0 wel voldoen.
Enne je gateway is het ip adres waarlangs je internet krijgt, over het algemeen zal dit je router/modem zijn.

Avahi configuratie
« Reactie #7 Gepost op: 2006/06/04, 13:55:23 »
Werkt dat ook als je meerdere ip adressen wilt registreren?
Vragen over Ubuntu Nederland of de internationale Ubuntu-gemeenschap? PB of mail me!