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