How to configure Multicast DNS Mode for LAN and Wired Networks
This section provides information about how to configure Local Area Bonjour in multicast DNS mode.
Enabling mDNS Gateway on the Device
To configure mDNS on the device, follow these steps:
SUMMARY STEPS
- configure terminal
- mdns-sd gateway
- exit
DETAILED STEPS
Command or Action | Purpose | |||
---|---|---|---|---|
Step 1 |
configure terminal Example:
|
Enters global configuration mode. |
||
Step 2 |
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 3 |
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, a 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.
SUMMARY STEPS
- configure terminal
- mdns-sd service-definition service-definition-name
- service-type string
- Repeat step 4 to configure more than one service type in the custom service definition.
- exit
DETAILED STEPS
Command or Action | Purpose | |||
---|---|---|---|---|
Step 1 |
configure terminal Example:
|
Enters global configuration mode. |
||
Step 2 |
mdns-sd service-definition service-definition-name Example:
|
Configures mDNS service definition.
|
||
Step 3 |
service-type string Example:
|
Configures mDNS service type. |
||
Step 4 |
Repeat step 4 to configure more than one service type in the custom service definition. |
|||
Step 5 |
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:
SUMMARY STEPS
- configure terminal
- mdns-sd service-list service-list-name {in | out}
- match {ser-def-name | all} message-type {any | announcement | query}
- exit
DETAILED STEPS
Command or Action | Purpose | |||
---|---|---|---|---|
Step 1 |
configure terminal Example:
|
Enters global configuration mode. |
||
Step 2 |
mdns-sd service-list service-list-name {in | out} Example:
|
Configures mDNS service list. |
||
Step 3 |
match {ser-def-name | all} message-type {any | announcement | query} Example:
|
Matches the service and message type. Here, service-definition-name refers to the names of services, such as, airplay, airserver, airtunes, and so on.
|
||
Step 4 |
exit Example:
|
Exits mDNS service list configuration mode. |
Creating Service Policy
A Service Policy that is applied to a VLAN 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:
SUMMARY STEPS
- configure terminal
- mdns-sd service-policy service-policy-name
- service-list service-list-name {in | out}
- exit
DETAILED STEPS
Command or Action | Purpose | |
---|---|---|
Step 1 |
configure terminal Example:
|
Enters global configuration mode. |
Step 2 |
mdns-sd service-policy service-policy-name Example:
|
Configures mDNS service policy. |
Step 3 |
service-list service-list-name {in | out} Example:
|
Configures service lists for IN and OUT directions. |
Step 4 |
exit Example:
|
Exits mDNS service policy configuration mode. |
Associating Service Policy to a VLAN
To configure mDNS on the device, follow these steps:
SUMMARY STEPS
- configure terminal
- vlan configuration vlan-id
- mdns-sd gateway
- exit
DETAILED STEPS
Command or Action | Purpose | |||||
---|---|---|---|---|---|---|
Step 1 |
configure terminal Example:
|
Enters global configuration mode. |
||||
Step 2 |
vlan configuration vlan-id Example:
|
Enters VLAN configuration mode and enables VLAN configuration. |
||||
Step 3 |
mdns-sd gateway Example:
|
Configures mDNS gateway on the VLAN. Enter the following commands in the interface mDNS gateway configuration mode to enable the respective functionalities:
|
||||
Step 4 |
exit Example:
|
Exits mDNS gateway configuration mode. |