The documentation set for this product strives to use bias-free language. For the purposes of this documentation set, bias-free is defined as language that does not imply discrimination based on age, disability, gender, racial identity, ethnic identity, sexual orientation, socioeconomic status, and intersectionality. Exceptions may be present in the documentation due to language that is hardcoded in the user interfaces of the product software, language used based on RFP documentation, or language that is used by a referenced third-party product. Learn more about how Cisco is using Inclusive Language.
Contents
Below is a list of commands to enable Bonjour Gateway solution on the Converged access products through CLI.
Service-routing mdns-sd
Service filters are available to control the mDNS messages coming into and going out from the cache. Service filters can contain several permit or deny statements matching a certain part of the mDNS record which make up the filter. Service filters use regular expressions for string matching (e.g. service type matching or instance name matching).
Note | Service filters must be specified to allow records into and out of the cache since there is a ‘deny any’ policy installed by default. In other words, if no explicit filter policy is installed either globally or per interface, no records will make it into the cache and the cache will not answer to any queries. |
Elements of a service filter are numbered and either deny or permit the service record based on a match. There is an implicit ‘deny anything’ at the end of the list.
service-list mdns-sd <name>{permit|deny} <sequence_number> ( from 0-100) match message-type {query|announcement|any} match service-instance <instance-name> match service-type <DNS service type string>
service-list mdns-sd Deny-AirPlay deny 10 match service-type _airplay._tcp.local service-list mdns-sd Deny-AirPlay permit 20 match service-type _ipp._tcp.local
The service policy can be applied per interface as shown below:
interface Vlan30 ip address 10.10.30.2 255.255.255.0 ip helper-address 10.10.30.1 service-routing mdns-sd service-policy gui-permit-all IN service-policy gui-permit-all OUT
To redistribute service announcements received on one interface over all the interfaces or over a specific interface, issue the following CLI on the respective interface on which you want to enable redistribution.
interface Vlan30 ip address 10.10.30.2 255.255.255.0 ip helper-address 10.10.30.1 service-routing mdns-sd service-policy gui-permit-all IN service-policy gui-permit-all OUT redistribute mdns-sd
service-list mdns-sd <name> query service-type <service type string>
Service-routing mdns-sd service-policy-query <service-list name> periodicity <in seconds>
mdns-iol#debug mdns ? all MDNS all debugs api MDNS api enter/exit log error MDNS error debugs event MDNS event debugs packet MDNS packet dumps debug verbose MDNS Verbose debug
Router#show mdns cache Shows mDNS cache records Router#show mdns cache ? interface Enter the Interface name Record Name type Record Type Router#show mdns requests Shows mDNS Requests Pending Router#show mdns statistics all Shows all mDNS stats Router#show mdns statistics ? all Displays Statistics of all service-list Entire Service list details in cache service-policy Show service-policy statistics
Router#clear mdns ? cache Clear MDNS feature statistics MDNS stats