Purpose
Command or Action
Enters the global configuration mode.
configure terminal
Example:
Device#
configure terminal
Step 2
Enters mDNS service discovery service list mode. In this mode, you can:
service-list mdns-sd service-list-name
{
deny sequence-number
|
permit
sequence-number
|
query
}
Step 3
•
Create a service list and apply a filter on the service list according to the
permit
or
deny
option applied to the sequence number.
Example:
Device(config)#
service-list
•
Create a service list and associate a query for the service list name if the
query
option is used.
mdns-sd sl1 permit 3
Device(config)#
service-list
The sequence number sets the priority of the rule. A rule with a lower
sequence number is selected first and the service announcement or query
is allowed or denied accordingly. You define the sequence number as
per your network requirements.
Note
mdns-sd sl4 query
(Optional) Sets the message type to match. You can match the following message
types:
match message-type
{
announcement
|
any
|
query
}
Step 4
Example:
Device(config-mdns-sd-sl)#
match
•
announcement
•
any
message-type announcement
•
query
These commands configure the parameters for the service list name that is created
in step 2.
If the
match message-type
is an announcement, then the service list rule only
allows service advertisements or announcements for the device. If the
match
message-type
is a query, then only a query from the client for a certain service
in the network is allowed.
Multiple service maps of the same name with different sequence numbers can be
created and the evaluation of the filters will be ordered on the sequence number.
Service lists are an ordered sequence of individual statements, each one has a
permit or deny result. Evaluation of service list consists of a list scan, in a
predetermined order, and an evaluation of the criteria of each statement that
matches. A list scan is stopped once the first statement match is found and an
action permit/deny associated with the statement match is performed. The default
action after scanning through the entire list is to deny.
You cannot use the
match
command if you have used the
query
option
in the previous step. The
match
command can be used only for the
permit
or
deny
option.
Note
(Optional) Sets the service instance to match.
match service-instance
{
LINE
}
Step 5
IP Multicast Routing Configuration Guide, Cisco IOS XE Release 3SE (Catalyst 3650 Switches)
280
OL-29890-01
Configuring the Service Discovery Gateway
Configuring the Service List (CLI)