Installing OpenSLP on Linux
InstallationInstalling the latest distribution of OpenSLP is easy. Pay attention to the following steps and you should not have any problems.
# route -n
With the routing table above all multicast and general broadcast will be sent on eth0 (the 0.0.0.0 route is the default route.)
If you do not have a default route or you have a multi-homed host, you will have specify which interface should be used. This can be done using the net.slp.multicastIF setting in the /etc/slp.conf file or by establishing a special route.
The following is an example of a routing table from a multihomed host:
# route -n
Notice the default route? This means that multicast traffic will be sent to eth0. If I don't want multicast traffic to be sent to eth0 I will need to set the net.slp.multicastIF setting in the /etc/slp.conf or add a special route.
In this case the setting for net.slp.multicastIF would be the IP address bound to eth1 -- or you could add a special route as follows:
# route add -net 184.108.40.206 netmask 240.0.0.0 dev eth1
Now multicast will be sent on eth1 not eth0.
In OpenSLP 1.0.x there is no way to send multicast traffic both eth1 and eth0 (at least with Linux) without specialized routing software (If you need specialized routing software take a look at mrouted.). This problem is now fixed in development releases of OpenSLP (the 1.1.x releases).
Also, some multihomed machines have NICs that are attached to the same
network. In this case, there is usually no need to send multicast
on both NICs.
$ slptool findsrvs service:service-agent
The results of this command should be a list of the hosts that are running slpd. This indicates that OpenSLP is successfully installed and working. If you do not get any output, then OpenSLP is not installed correctly or is not working. If this happens, please double check that you followed build and installation instructions, and read the FAQ. If this does not help, post to the openslp-users mailing list with as much detail as you can provide.