User Tools

Site Tools


ubiquiti:cli:mdns_repeater

This is an old revision of the document!


Ubiquiti - CLI - mDNS Repeater

To use mDNS repeater on the USG.

The mDNS option in the controller will enable mDNS reflector.


config.gateway.json
{
  "service": {
    "mdns": {
      "repeater": {
        "interface": [
          "eth1",
          "eth1.100",
          "eth1.110"
        ]
      }
    }
  }
}

NOTE: Change out the 100 and 110 for whatever VLANs you want, add more if needed.

Syntax:

'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 json validator.


To identify the interfaces you're interested in using with the mdns repeater, SSH into your USG and run the show interfaces command. You can look at the interface and the corresponding IP address to determine the networks to place the repeater on. The virtual interface numbers should match your VLAN IDs from network setup.

show interfaces
 
Codes: S - State, L - Link, u - Up, D - Down, A - Admin Down
Interface    IP Address                        S/L  Description
---------    ----------                        ---  -----------
eth0         192.168.0.1/24                    u/u  LAN
eth0.10      192.168.10.1/24                   u/u
eth0.20      192.168.20.1/24                   u/u
eth0.33      192.168.33.1/24                   u/u
eth0.40      192.168.40.1/24                   u/u
eth0.50      192.168.50.1/24                   u/u
eth1         -                                 A/D
eth2         1.1.1.1/32                        u/u  WAN
eth3         -                                 A/D
lo           127.0.0.1/8                       u/u
             ::1/128

NOTE: Before you can SSH into your device you will need to Enable advanced features in the controller's site settings.

SSH tutorial: https://help.ubnt.com/hc/en-us/articles/218850057-Intro-to-Networking-How-to-Establish-a-Connection-Using-SSH


References

ubiquiti/cli/mdns_repeater.1608756321.txt.gz · Last modified: 2020/12/23 20:45 by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki