Difference between revisions of "Zero Configuration Networking"
From Funtoo Linux
(→Link-local Addresses) |
(→mDNS) |
||
| Line 27: | Line 27: | ||
=== mDNS === | === mDNS === | ||
| + | |||
| + | <pre> | ||
| + | emerge nss-mdns | ||
| + | </pre> | ||
/etc/nsswitch.conf: | /etc/nsswitch.conf: | ||
Revision as of 07:52, 6 November 2010
Link-local Addresses
To use link-local addressing, first set up the proper routes:
route add default dev eth0 metric 99 route add -net 169.254.0.0 netmask 255.255.0.0 dev eth0 metric 99
Then, use avahi-autoipd to discover a valid link-local IP address:
/usr/sbin/avahi-autoipd --daemonize --syslog --wait eth0
Multicast Route
route add -net 224.0.0.0 netmask 240.0.0.0 dev eth0
mDNS
emerge nss-mdns
/etc/nsswitch.conf:
hosts: files mdns_minimal [NOTFOUND=return] dns mdns