- Table of Contents
-
- 05-Layer 3—IP Services Command Reference
- 00-Preface
- 01-ARP commands
- 02-IP addressing commands
- 03-DHCP commands
- 04-DNS commands
- 05-mDNS gateway commands
- 06-mDNS relay commands
- 07-NAT commands
- 08-IP forwarding basics commands
- 09-Fast forwarding commands
- 10-Adjacency table commands
- 11-IRDP commands
- 12-IP performance optimization commands
- 13-UDP helper commands
- 14-IPv6 basics commands
- 15-DHCPv6 commands
- 16-IPv6 fast forwarding commands
- 17-Tunneling commands
- 18-GRE commands
- 19-HTTP redirect commands
- Related Documents
-
Title | Size | Download |
---|---|---|
06-mDNS relay commands | 83.80 KB |
Contents
mDNS relay commands
display mdns relay
Use display mdns relay to display mDNS relay configuration.
Syntax
display mdns relay
Views
Any view
Predefined user roles
network-admin
network-operator
Examples
# Display mDNS relay configuration.
<Sysname> display mdns relay
mDNS relay configuration:
mDNS gateway IP: 10.1.1.2
mDNS relay configuration in VLANs:
VLAN ID Source IP address Probe interval (sec)
1 11.1.1.1 60
2 1.1.1.1 (XGE1/0/1) 120
3 12.2.2.2 (Auto) --
4 -- --
mDNS relay configuration in VSIs:
VSI name Source IP address Probe interval (sec)
vsi100 21.1.1.1 60
vsi200 2.2.2.2 (XGE1/0/1) 120
vsi300 22.2.2.2 (Auto) --
vsi400 -- --
Table 1 Command output
Field |
Description |
mDNS relay configuration |
Configuration of the mDNS relay. |
mDNS gateway IP |
mDNS gateway address specified on the mDNS relay. If no mDNS gateway address is specified, this field displays hyphens (--). |
mDNS relay configuration in VLANs |
VLAN-specific mDNS relay configuration. |
VLAN ID |
ID of the VLAN to which the mDNS relay belongs. |
Source IP address |
Source IP address of mDNS packets, including mDNS packets forwarded by the mDNS relay and mDNS probe queries originated by the mDNS relay. · If an IP address is specified as the source IP address, this field displays this IP address. · If the IP address of the specified interface is configured as the source IP address, this field displays the IP address and interface information in the format of ip-address (interface information). · If the IP address of a VLAN interface is used as the source IP address, this field displays the VLAN interface address in the format of ip-address (Auto). · If the IP address of a VLAN interface is used as the source IP address but no IP address is configured for the VLAN interface, this field displays hyphens (--). Probe queries will not be sent out in this case. |
Probe interval (sec) |
Interval at which the mDNS relay sends a probe query, in seconds. If periodic probing is not enabled, this field displays hyphens (--). |
mDNS relay configuration in VSIs |
VSI-specific mDNS relay configuration. |
VSI name |
Name of the VSI to which the mDNS relay belongs. |
Source IP address |
Source IP address of mDNS packets, including mDNS packets forwarded by the mDNS relay and mDNS probe queries originated by the mDNS relay. · If an IP address is specified as the source IP address, this field displays this IP address. · If the IP address of the specified interface is configured as the source IP address, this field displays the IP address and interface information in the format of ip-address (interface information). · If the IP address of a VSI interface is used as the source IP address, this field displays the VSI interface address in the format of ip-address (Auto). · If the IP address of a VSI interface is used as the source IP address but no IP address is configured for the VSI interface, this field displays hyphens (--). Probe queries will not be sent out in this case. |
Related commands
mdns relay enable
mdns relay gateway ip
mdns relay probe interval
mdns relay source ip
display mdns relay statistics
Use display mdns relay statistics to display packet statistics on the mDNS relay.
Syntax
display mdns relay statistics
Views
Any view
Predefined user roles
network-admin
network-operator
Examples
# Display packet statistics on the mDNS relay.
<Sysname> display mdns relay statistics
Packet statistics:
Received: 100 Sent: 90
Dropped: 10 Probe sent: 50
Table 2 Command output
Field |
Description |
Received |
Number of received mDNS packets. |
Sent |
Number of forwarded mDNS packets. |
Dropped |
Number of dropped mDNS packets. |
Probe sent |
Number of sent probe queries. If mDNS periodic probing is not enabled or the probe has not started, this field displays 0. |
Related commands
reset mdns relay statistics
mdns relay enable
Use mdns relay enable to enable mDNS relay.
Use undo mdns relay enable to disable mDNS relay.
Syntax
mdns relay enable
undo mdns relay enable
Default
mDNS relay is disabled.
Views
VLAN view
VSI view
Predefined user roles
network-admin
Usage guidelines
In an enterprise network, inter-subnet mDNS communication is required for mDNS endpoint devices to access services on different subnets. To meet the requirement, enable mDNS relay on subnets. The mDNS relay learns mDNS service information on these subnets and unicasts it to the mDNS gateway for registration. When an mDNS endpoint device sends a multicast service query to the mDNS relay, the relay converts the query into a unicast packet and forwards it to the mDNS gateway.
The mDNS relay feature takes effect only after you specify the mDNS gateway address on the mDNS relay.
Examples
# Enable mDNS relay in VLAN 2.
<Sysname> system-view
[Sysname] vlan 2
[Sysname-vlan2] mdns relay enable
# Enable mDNS relay in VSI vsi1.
<Sysname> system-view
[Sysname] vsi vsi1
[Sysname-vsi-vsi1] mdns relay enable
Related commands
display mdns relay
mdns relay gateway ip
mdns relay gateway ip
Use mdns relay gateway ip to specify the mDNS gateway address on the mDNS relay.
Use undo mdns relay gateway ip to restore the default.
Syntax
mdns relay gateway ip ip-address [ vpn-instance vpn-instance-name ]
undo mdns relay gateway ip
Default
No mDNS gateway address is specified on the mDNS relay.
Views
System view
Predefined user roles
network-admin
Parameters
ip-address: Specifies the IP address of the mDNS gateway, in dotted decimal notation.
vpn-instance vpn-instance-name: Specifies the MPLS L3VPN instance to which the IP address of the mDNS gateway belongs. The vpn-instance-name argument represents the VPN instance name, a case-sensitive string of 1 to 31 characters. If the mDNS gateway is on the public network, do not specify this option.
Usage guidelines
After receiving an mDNS query from an mDNS endpoint device, the mDNS relay replaces the multicast destination address with the specified mDNS gateway address and unicasts the query to the mDNS gateway. When receiving the response from the gateway, the mDNS relay multicasts it in the VLAN or VSI where the requesting mDNS endpoint resides. The requesting endpoint device can then receive the response and other mDNS endpoint devices can learn and update the service information.
If you execute this command multiple times, the most recent configuration takes effect.
Examples
# Specify 1.1.1.1 as the mDNS gateway address on the mDNS relay.
<Sysname> system-view
[Sysname] mdns relay gateway ip 1.1.1.1
Related commands
display mdns relay
mdns relay enable
mdns relay probe interval
Use mdns relay probe interval to enable periodic probing on the mDNS relay and set the probe interval.
Use undo mdns relay probe interval to disable periodic probing on the mDNS relay.
Syntax
mdns relay probe interval interval
undo mdns relay probe interval
Default
Periodic probing is disabled on the mDNS relay.
Views
VLAN view
VSI view
Predefined user roles
network-admin
Parameters
interval: Specifies a probe interval in seconds. The value range is 60 to 38400.
Usage guidelines
This feature enables the mDNS relay to send mDNS probe queries within an mDNS relay-enabled VLAN or VSI at intervals. Each mDNS service provider sends a response to the mDNS relay after receiving the query. The mDNS relay then unicasts the responses to the mDNS gateway. The mDNS gateway can learn the latest service information of all mDNS service providers in the network in a timely manner.
If you execute this command multiple times, the most recent configuration takes effect.
Examples
# Enable mDNS relay periodic probing in VLAN 2 and set the probe interval to 100 seconds.
<Sysname> system-view
[Sysname] vlan 2
[Sysname-vlan2] mdns relay probe interval 100
# Enable mDNS relay periodic probing in VSI vsi1 and set the probe interval to 100 seconds.
<Sysname> system-view
[Sysname] vsi vs1
[Sysname-vsi-vsi1] mdns relay probe interval 100
Related commands
display mdns relay
mdns relay source ip
Use mdns relay source ip to specify the source IP address for mDNS packets sent by the mDNS relay.
Use undo mdns relay source ip to restore the default.
Syntax
mdns relay source ip { ip-address | interface interface-type interface-number }
undo mdns relay source ip
Default
The mDNS relay encapsulates source IP addresses for packets as follows:
· For responses destined for endpoint devices and probe queries within a VLAN or VSI, the default source IP address is the IP address of the VLAN interface or VSI interface.
· For multicast packets destined for the gateway, the default source IP address is the IP address of the packet output interface on the mDNS relay.
Views
VLAN view
VSI view
Predefined user roles
network-admin
Parameters
ip-address: Specifies the source IP address of mDNS packets, in the decimal notation format.
interface interface-type interface-number: Specifies an interface by its type and number. The primary IP address of the specified interface is used as the source IP address of mDNS packets.
Usage guidelines
For responses destined for endpoint devices and probe queries within a VLAN or VSI, the default source IP address is the IP address of the VLAN interface or VSI interface. If no IP address is configured for the VLAN interface or VSI interface, the mDNS relay cannot send out the queries.
If the mDNS relay is connected to a large number of VLANs or VSIs, configuring an IP address to each VLAN interface or VSI interface wastes IP address resources. You can use this command to specify a specific IP address for the mDNS relay to use.
Make sure the specified source address is on the relay and has a reachable route to the mDNS gateway. If these requirements are not met, the mDNS relay cannot receive responses.
As a best practice, specify the interface connecting to the mDNS gateway in the command.
Examples
# Specify 1.1.1.1 as the source IP address for mDNS packets in VLAN 2.
<Sysname> system-view
[Sysname] vlan 2
[Sysname-vlan2] mdns relay source ip 1.1.1.1
# Specify the IP address of Ten-GigabitEthernet 1/0/1 as the source IP address for mDNS packets in VSI vsi1.
<Sysname> system-view
[Sysname] vsi vsi1
[Sysname-vsi-vsi1] mdns relay source ip interface ten-gigabitethernet 1/0/1
Related commands
display mdns relay
reset mdns relay statistics
Use reset mdns relay statistics to clear packet statistics on the mDNS relay.
Syntax
reset mdns relay statistics
Views
User view
Predefined user roles
network-admin
Examples
# Clear packet statistics on the mDNS relay.
<Sysname> reset mdns relay statistics
Related commands
display mdns relay statistics