clear ip mdns-reflector

This command updates the data in the mDNS-reflector cache

Syntax
clear ip mdns-reflector
Parameters

The command does not contain parameters.

Default value

None

Required privilege level

1

Command mode

ROOT

Example
esr# clear ip mdns-reflector
CODE

ip mdns-reflector

This command adds an interface to the mDNS-reflector service configuration. To start the service, at least two interfaces must be included in the configuration.

The use of a negative form (no) of the command removes the interface from the mDNS-reflector service configuration.

Syntax
ip mdns-reflector
no ip mdns-reflector
Parameters

The command does not contain parameters.

Default value

None

Required privilege level

10

Command mode

CONFIG-GI

CONFIG-TE

CONFIG-SUBIF

CONFIG-QINQ-IF

CONFIG-PORT-CHANNEL

CONFIG-BRIDGE

Example
esr(config-if-gi)# ip mdns-reflector
CODE

ip mdns-reflector services

This command enables mDNS service filtering. The services listed in object-group <NAME> will be allowed, all others will be banned. If the filter list is empty, all services will be available.

The use of a negative form (no) of the command disables mDNS service filtering.

Syntax
ip mdns-reflector services <OBJ-GROUP-URL-NAME>
no ip mdns-reflector services
Parameters

<OBJ-GROUP-URL-NAME> – url addresses profile name, set by the string of up to 31 characters.

Default value

None

Required privilege level

10

Command mode

CONFIG

Example
esr (config)# object-group url test
esr (config-object-group-url)# url _ssh._tcp.local
esr (config-object-group-url)# exit
esr (config)#
esr (config)# ip mdns-reflector services test
CODE

show ip mdns-reflector

This command outputs a list of services from the mDNS-reflector cache.

Syntax
show ip mdns-reflector [ interfaces <IF> | service <NAME> ]
Parameters

<IF> – an interface or a group of interfaces is specified in the form described in Section Types and naming order of router interfaces;

<NAME> – url addresses profile name, set by the string of up to 31 characters.

Default value

None

Required privilege level

1

Command mode

ROOT

Example
esr# show ip mdns-reflector
Interface IP address Hostname Service Port
----------- --------------- -------------------- ------------------ ------
br21 172.21.0.10 WEP-12ac.local _brcm-sb._tcp 80
br21 172.21.0.10 WEP-12ac.local _telnet._tcp 23
br21 172.21.0.10 WEP-12ac.local _ssh._tcp 22
br21 172.21.0.10 WEP-12ac.local _http._tcp 80
br21 172.21.0.10 WEP-12ac.local _https._tcp 443
gi1/0/2.20 172.20.0.11 Book-tester-7.local _ssh._tcp 22
gi1/0/2.20 172.20.0.11 Book-tester-7.local _sftp-ssh._tcp 22
gi1/0/2.20 172.20.0.11 Book-tester-7.local _eppc._tcp 3031
gi1/0/2.20 172.20.0.11 Book-tester-7.local _rfb._tcp 5900
gi1/0/2.20 172.20.0.11 Book-tester-7.local _smb._tcp 445
gi1/0/2.20 172.20.0.11 Book-tester-7.local _airplay._tcp 7000
gi1/0/2.20 172.20.0.11 Book-tester-7.local _raop._tcp 5000
gi1/0/2.20 172.20.0.11 Book-tester-7.local _teamviewer._tcp 2020
CODE
esr# show ip mdns-reflector service ssh
Interface IP address Hostname Service Port
----------- --------------- -------------------- ------------------ ------
br21 172.21.0.10 WEP-12ac.local _ssh._tcp 22
gi1/0/2.20 172.20.0.11 Book-tester-7.local _ssh._tcp 22
gi1/0/2.20 172.20.0.11 Book-tester-7.local _sftp-ssh._tcp 22
CODE