User Tools

Site Tools


ubiquiti:cli:mdns_repeater

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
ubiquiti:cli:mdns_repeater [2020/12/23 20:42] peterubiquiti:cli:mdns_repeater [2020/12/23 23:16] (current) peter
Line 1: Line 1:
 ====== Ubiquiti - CLI - mDNS Repeater ====== ====== Ubiquiti - CLI - mDNS Repeater ======
 +
 +**Enable Multicast DNS** in the GUI:
 +
 +  * is no substitute for setting the mdns property in the JSON configuration.
 +  * supposedly **enables** the mDNS reflector service, and while this seems to work for a while it does not work all the time.
 +  * Turning on the mDNS repeater by setting the **mdns** property works.
 +
 +----
  
 To use mDNS repeater on the USG. To use mDNS repeater on the USG.
Line 7: Line 15:
 ---- ----
  
-<file json config.gateway.json>+<file json /srv/unifi/data/sites/default/config.gateway.json>
 { {
   "service": {   "service": {
Line 29: Line 37:
  
 'mdns repeater interface xxxxx' where xxxxx is/are the interface(s) mDNS advertisements are from as well as repeat mDNS advertisements to.  That means both the source and target interfaces must be added. 'mdns repeater interface xxxxx' where xxxxx is/are the interface(s) mDNS advertisements are from as well as repeat mDNS advertisements to.  That means both the source and target interfaces must be added.
 +
 +
 +Test your .json code using the [[https://jsonlint.com/|json validator]].
 +
 +
 +Once the config.gateway.json file is created or edited:
 +
 +  * In the Controller GUI, navigate to **Devices -> Unifi Security Gateway -> Config -> Force Provision -> Provision**.
 +
 +Once the USG comes back online you should be all set.
 +
 </WRAP> </WRAP>
  
Line 59: Line 78:
 SSH tutorial: https://help.ubnt.com/hc/en-us/articles/218850057-Intro-to-Networking-How-to-Establish-a-Connection-Using-SSH SSH tutorial: https://help.ubnt.com/hc/en-us/articles/218850057-Intro-to-Networking-How-to-Establish-a-Connection-Using-SSH
 </WRAP> </WRAP>
 +
 +----
 +
 +===== Troubleshooting =====
 +
 +Alternate between enabling / disabling some of these settings may work.
 +
 +
 +Enable IGMP Snooping as it can help with multicast traffic:
 +
 +  * Navigate to **Settings - Networks** and select a network.
 +  * Enable IGMP snooping.
 +
 +
 +Enable Multicast Enhancement:
 +
 +  * Navigate to **Settings -> Wireless Networks** and select a network.
 +  * Enable **Multicast Enhancement (IGMPv3)**.
 +
 +
 +Enable MulticastDNS Service:
 +
 +  * Navigate to **Settings -> Services -> MDNS**.
 +  * Enable **Multicast DNS**.
 +
 +<WRAP info>
 +**NOTE:**  Enabling the mDNS feature will enable a service on the USG that will reflect (mirror) mDNS packets into all other networks including WAN.
 +</WRAP>
 +
 +
 +Ensure Firewall is not blocking:
 +
 +  * Port 5353 is used for Bonjour services/discovery.
 +
 +
 +----
 +
 +===== References =====
 +
 +https://help.ui.com/hc/en-us/articles/215458888-UniFi-USG-Advanced-Configuration-Using-config-gateway-json
 +
 +[[https://jsonlint.com/|json validator]]
 +
 +https://help.ubnt.com/hc/en-us/articles/218850057-Intro-to-Networking-How-to-Establish-a-Connection-Using-SSH
 +
 +https://help.ui.com/hc/en-us/articles/360001004034-UniFi-Best-Practices-for-Managing-Chromecast-Google-Home-on-UniFi-Network
 +
 +https://en.m.wikipedia.org/wiki/IGMP_snooping
  
ubiquiti/cli/mdns_repeater.1608756170.txt.gz · Last modified: 2020/12/23 20:42 by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki