Configuring Wide Area Bonjour Domain
The Wide Area Bonjour domain configuration specifies the parameters of the controller, that is the Wide Area Bonjour Application running on Cisco DNA Center, as well as the service types that need to be exported to it from the SDG Agent. Configuring Wide Area Bonjour Domain involves creating service-lists and service policy similar to those created in Local Area Bonjour configuration; however, only egress policy from SDG Agent to controller is applicable.
Enabling mDNS Gateway on the Device
To configure mDNS on the device, follow these steps:
Procedure
Command or Action | Purpose | |||
---|---|---|---|---|
Step 1 |
enable Example:
|
Enables privileged EXEC mode. Enter your password, if prompted. |
||
Step 2 |
configure terminal Example:
|
Enters global configuration mode. |
||
Step 3 |
mdns-sd gateway Example:
|
Enables mDNS on the device and enters mDNS gateway configuration mode. Enter the following commands in mDNS gateway configuration mode to enable the respective functionalities:
|
||
Step 4 |
exit Example:
|
Exits mDNS gateway configuration mode. |
Creating Custom Service Definition
Service definition is a construct that provides an admin friendly name to one or more mDNS service types or PTR Resource Record Name. By default, few built-in service definitions are already predefined and available for admin to use. In addition to built-in service definitions, admin can also define custom service definitions.
Procedure
Command or Action | Purpose | |||
---|---|---|---|---|
Step 1 |
enable Example:
|
Enables privileged EXEC mode. Enter your password, if prompted. |
||
Step 2 |
configure terminal Example:
|
Enters global configuration mode. |
||
Step 3 |
mdns-sd service-definition service-definition-name Example:
|
Configures mDNS service definition.
|
||
Step 4 |
service-type string Example:
|
Configures mDNS service type. |
||
Step 5 |
Repeat step 4 to configure more than one service type in the custom service definition. |
|||
Step 6 |
exit Example:
|
Exit mDNS service definition configuration mode. |
Creating Service List
mDNS service list is a collection of service definitions. To create a service list, follow these steps:
Procedure
Command or Action | Purpose | |||
---|---|---|---|---|
Step 1 |
enable Example:
|
Enables privileged EXEC mode. Enter your password, if prompted. |
||
Step 2 |
configure terminal Example:
|
Enters global configuration mode. |
||
Step 3 |
mdns-sd service-list service-list-name {in | out} Example:
|
Configures mDNS service list. |
||
Step 4 |
match service-definition-name [message-type {any | announcement | query}] Example:
|
Matches the service to the message type. Here, service-definition-name refers to the names of services, such as, airplay, airserver, airtunes, and so on.
|
||
Step 5 |
exit Example:
|
Exits mDNS service list configuration mode. |
Creating Service Policy
A Service Policy that is applied to an interface specifies the allowed Bonjour service announcements or the queries of specific service types that should be processed, in ingress direction or egress direction or both. For this, the service policy specifies two service-lists, one each for ingress and egress directions. In the Local Area Bonjour domain, the same service policy can be attached to one or more Bonjour client VLANs; however, different VLANs may have different service policies.
To configure service policy with service lists, follow these steps:
Procedure
Command or Action | Purpose | |
---|---|---|
Step 1 |
enable Example:
|
Enables privileged EXEC mode. Enter your password, if prompted. |
Step 2 |
configure terminal Example:
|
Enters global configuration mode. |
Step 3 |
mdns-sd service-policy service-policy-name Example:
|
Configures mDNS service policy. |
Step 4 |
service-list service-list-name {in | out} Example:
|
Configures service lists for IN and OUT directions. |
Step 5 |
exit Example:
|
Exits mDNS service policy configuration mode. |
Associating Service Policy with the Controller in Wide Area Bonjour Domain
In Wide Area Bonjour, the service policy is configured globally and does not get associated with a VLAN as in the case of Local Area Bonjour.
To configure service policy globally, follow these steps:
Procedure
Command or Action | Purpose | |||
---|---|---|---|---|
Step 1 |
enable Example:
|
Enables privileged EXEC mode. Enter your password, if prompted. |
||
Step 2 |
configure terminal Example:
|
Enters global configuration mode. |
||
Step 3 |
service-export mdns-sd controller controller name Example:
|
Specifies a name for the controller and enters service-export mode |
||
Step 4 |
controller-address ipv4-address Example:
|
Specifies the controller address. |
||
Step 5 |
controller-port port-number Example:
|
Specifies the port number on which the controller is listening. |
||
Step 6 |
controller-source-interface interface-name Example:
|
Specifies the source-interface for the controller. |
||
Step 7 |
controller-service-policy service-policy-name out Example:
|
Specifies the service policy to be used by the controller.
|
||
Step 8 |
exit Example:
|
Exits controller service export configuration mode. |
||
Step 9 |
mdns-sd gateway Example:
|
Enters mDNS gateway configuration mode. |
||
Step 10 |
ingress-client query-suppression enable Example:
|
Enables ingress query suppression for better scale and performance. |
||
Step 11 |
exit Example:
|
Exits mDNS gateway configuration mode. |