Configuring Local Area Bonjour Domain for Wired Networks
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 to an Interface
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 |
interface interface-name Example:
|
Enters interface mDNS configuration mode and enables interface configuration. |
||||
Step 4 |
mdns-sd gateway Example:
|
Configures mDNS gateway on the interface. Enter the following commands in the interface mDNS gateway configuration mode to enable the respective functionalities:
|
||||
Step 5 |
exit Example:
|
Exits mDNS gateway configuration mode. |