Created
August 5, 2015 11:09
-
-
Save josser/857e4f0772f7ec611ede to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Install And Configure The Avahi Service | |
Run the following two commands. | |
Gentoo: | |
# echo "net-dns/avahi -gdbm -introspection" >> /etc/portage/package.use | |
# emerge avahi | |
The first command tells portage (Gentoo's package management system) to build avahi without support for gdbm and introspection. These two features are not required and would cause portage to pull in several more uncessary packages when building avhai. | |
The second command tells portage to download, compile, and install the avahi service. | |
Red Hat / CentOS: | |
# yum install avahi | |
Debian / Ubuntu: | |
# apt-get install avahi-daemon | |
Edit the avahi configuration file and make the following changes: | |
All Distributions | |
/etc/avahi/avahi-daemon.conf | |
...the rest of this config file should be left unchanged... | |
allow-interfaces=vlan10,vlan20,vlan100,vlan101 | |
# Notice that vlan5 is not included. In this demonstration, there is no | |
# reason to listen for, nor re-broadcast mDNS traffic onto the Servers | |
# subnet because there will never be an Apple mobile device, nor an AppleTV | |
# on the Servers subnet | |
enable-reflector=yes | |
# This line is the key. It tells the avahi-daemon process to listen for | |
# mDNS traffic on all of the allowed-interfaces defined above and then | |
# re-broadcast any mDNS traffic that it hears onto all of the other | |
# allowed interfaces | |
Start the avahi-daemon service and configure it to start on boot: | |
Gentoo | |
# rc-service avahi-daemon start | |
# rc-update add avahi-daemon default | |
Red Hat / CentOS: | |
# service avahi-daemon start | |
# chkconfig --add avahi-daemon | |
Ubuntu / Debian: | |
# service avahi-daemon start | |
# update-rc.d avahi-daemon defaults |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment