No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

S12700 V200R013C00 Command Reference

This document describes all the configuration commands of the device, including the command function, syntax, parameters, views, default level, usage guidelines, examples, and related commands.
Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
mDNS Relay Configuration Commands

mDNS Relay Configuration Commands

Command Support

Commands provided in this section and all the parameters in the commands are supported by all switch models by default, unless otherwise specified. For details, see specific commands.

display mdns relay

Function

The display mdns relay command displays the mDNS relay configuration.

Format

display mdns relay

Parameters

None

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

After the mDNS relay is configured, you can run the display mdns relay command to view the mDNS relay configuration.

Example

# Display the mDNS relay configuration.

<HUAWEI> display mdns relay
MDNS Relay Information:                                                         
--------------------------------------------------------------------------------
 MDNS Gateway IP   :  10.1.1.2                                                  
 MDNS Source IP    :  192.168.1.1                                                  
--------------------------------------------------------------------------------
 Relay Enable Vlan :  vlan100                                                   
--------------------------------------------------------------------------------
 Relay Probe Vlan  :  vlan100                                                   
--------------------------------------------------------------------------------
Table 6-42  Description of the display mdns relay command output

Item

Description

MDNS Gateway IP

IP address of the mDNS gateway specified on the device as the mDNS relay.

To specify the IP address of the mDNS gateway on the device as the mDNS relay, run the mdns gateway ip command.

MDNS Source IP

Source IP address in mDNS packets to be sent to periodically discover services and to be forwarded to the mDNS gateway by the device as the mDNS relay.

To specify the source IP address in mDNS packets to be sent to periodically discover services and to be forwarded to the mDNS gateway by the device as the mDNS relay, run the mdns source ip command.

Relay Enable Vlan

ID of the VLAN where the mDNS relay is enabled.

To enable the mDNS relay, run the mdns relay enable command.

Relay Probe Vlan

ID of the VLAN where the mDNS relay is enabled to periodically discover services.

To specify the ID of the VLAN where the mDNS relay is enabled to periodically discover services, run the mdns probe interval command.

display mdns relay statistics

Function

The display mdns relay statistics command displays statistics on the mDNS relay.

Format

display mdns relay statistics

Parameters

None

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

During routine maintenance and fault location, you can run the display mdns relay statistics command to view statistics on mDNS packets received, sent and dropped by the mDNS relay in a given period of time.

To query statistics again, run the reset mdns relay statistics command to clear existing statistics.

Cleared statistics on the mDNS relay cannot be restored. Exercise caution when you use the reset mdns relay statistics command.

Example

# Display statistics on the mDNS relay.

<HUAWEI> display mdns relay statistics
MDNS relay statistics:                                                          
------------------------------------                                            
 Received  : 100                                                                  
 Sent      : 100                                                                  
 Dropped   : 0                                                                  
  Bad Pkt Length : 0                   
  Other         : 0                  
------------------------------------   
Table 6-43  Description of the display mdns relay statistics command output

Item

Description

Received

Number of mDNS packets received by the mDNS relay.

Sent

Number of mDNS packets sent by the mDNS relay.

Dropped

Number of mDNS packets dropped by the mDNS relay.

Bad Pkt Length

Number of mDNS packets discarded because the packet length exceeds the upper limit.

Other

Number of mDNS packets discarded because of other reasons.

mdns gateway ip

Function

The mdns gateway ip command specifies the IP address of the mDNS gateway on the device as the mDNS relay.

The undo mdns gateway ip command deletes the configured IP address of the mDNS gateway on the device as the mDNS relay.

By default, the IP address of the mDNS gateway is not specified on the device as the mDNS relay.

Format

mdns gateway ip ip-address

undo mdns gateway ip

Parameters

Parameter

Description

Value

ip-address

Specifies the IP address of the mDNS gateway.

The value is in dotted decimal notation.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

The device as the mDNS relay needs to forward mDNS packets from Bonjour-compliant terminals or service provisioning devices to the mDNS gateway. After the mdns gateway ip command is used to specify the IP address of the mDNS gateway on the mDNS relay, the mDNS relay converts mDNS packets from Bonjour-compliant terminals or service provisioning devices into unicast packets and sends them to the mDNS gateway.

Example

# Specify the IP address of the mDNS gateway as 10.1.1.1 on the device as the mDNS relay.

<HUAWEI> system-view
[HUAWEI] mdns gateway ip 10.1.1.1

mdns probe interval

Function

The mdns probe interval command enables the device to periodically discover services and sets the discovery interval.

The undo mdns probe interval command disables the device from periodically discovering services and deletes the discovery interval.

By default, the device is not enabled to periodically discover services and the discovery interval is not set.

Format

mdns probe interval interval

undo mdns probe interval

Parameters

Parameter

Description

Value

interval

Specifies the discovery interval.

The value is an integer that ranges from 60 to 38400, in seconds.

Views

VLAN view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

This command is used on an mDNS gateway or mDNS relay. The mDNS gateway maintains service information lists of all service provisioning devices on the network. A service information list records the service name, service type, TTL, host name, and IP address of each service. The TTL is provided by a service provisioning device to the mDNS gateway, and represents the aging time of a service. If the mDNS gateway receives mDNS response packets from a service provisioning device within the aging time, the mDNS gateway updates its service information. If the mDNS gateway does not receive mDNS response packets from a service provisioning device within the aging time, the mDNS gateway deletes its service information. If an mDNS gateway already exists on the network, a service provisioning device connected to the network advertises service information to the mDNS gateway through the mDNS relay. If a service provisioning device already exists before an mDNS gateway connects to the network, the service provisioning device does not advertise service information to the mDNS gateway.

If the device works as an mDNS gateway, you can run the mdns probe interval command to enable the periodical service discovery function and set the service discovery interval. The device then sends a service query message at the specified interval, and updates the service information list after receiving a response message from the service provisioning device.

If the device works as an mDNS relay and the mdns probe interval command is run, the device sends a service query message at the specified interval to request available service update in its VLAN, and forwards the response message from the service provisioning device to the mDNS gateway, ensuring that service information lists on the mDNS gateway are updated immediately.

Precautions

When the device as the mDNS gateway and service provisioning device are located on different network segments, the mDNS relay but not the mDNS gateway needs to be configured to periodically update service lists.

Example

# Enable the device to periodically discover services in VLAN 100 and set the discovery interval to 150s.

<HUAWEI> system-view
[HUAWEI] vlan 100
[HUAWEI-vlan100] mdns probe interval 150

mdns relay enable

Function

The mdns relay enable command enables the mDNS relay.

The undo mdns relay enable command disables the mDNS relay.

By default, the mDNS relay is disabled.

Format

mdns relay enable

undo mdns relay enable

Parameters

None

Views

VLAN view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

Bonjour technology proposed by Apple uses mDNS. The destination multicast address of 224.0.0.251 used by mDNS is only valid in a Layer 2 broadcast domain. That is, information can be forwarded in a VLAN only, but cannot be forwarded across VLANs or Layer 3 devices. The mDNS relay and mDNS gateway solution implements service discovery across Layer 3. The device can function as the mDNS relay to forward mDNS packets exchanged between Bonjour-compliant terminals or service provisioning devices and mDNS gateway, implementing service discovery across Layer 3. The mdns relay enable command enables the mDNS relay.

Precautions

The device cannot function as both mDNS relay and gateway. A protection failure will occur if the mdns relay enable and mdns gateway enable commands are both configured on the device.

Example

# Enable the mDNS relay.

<HUAWEI> system-view
[HUAWEI] vlan 100
[HUAWEI-vlan100] mdns relay enable

mdns source ip

Function

The mdns source ip command specifies the source IP address in sent mDNS query packets when the device is configured as an mDNS relay to periodically discover services and forward mDNS packets to the mDNS gateway, or when the device is configured as an mDNS gateway to periodically discover services and send mDNS query packets.

The undo mdns source ip command deletes the configured source IP address.

By default, the source IP address is not configured.

Format

mdns source ip ip-address

undo mdns source ip

Parameters

Parameter

Description

Value

ip-address

Specifies the source IP address.

The value is in dotted decimal notation.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

This command is used on an mDNS gateway or mDNS relay. When configuring the periodical service discovery function on the device as an mDNS gateway, you can run the mdns source ip command to configure the source IP address of sent mDNS query packets. When sending an mDNS query packet, the device encapsulates the configured source IP address into the packet to ensure that it can receive response packets from service provision devices. If an IP address is assigned to the VLANIF interface corresponding to the VLAN where the device periodically discovers services, the device encapsulates the IP address of the VLANIF interface into sent mDNS query packets. In this case, you do not need to specify the source IP address in sent mDNS query packets.

The mdns source ip command has two functions when the device works as an mDNS relay:
  • When the mDNS relay is enabled to periodically discover services, it encapsulates the configured source IP address into outgoing mDNS discover packets so that it can receive response packets from service provisioning devices. If an IP address is assigned to the VLANIF interface corresponding to the VLAN where the device periodically discovers services, the device encapsulates the IP address of the VLANIF interface into outgoing mDNS discover packets. In this case, you do not need to specify the source IP address in outgoing mDNS discover packets.

  • When the device as the mDNS relay forwards mDNS packets to the mDNS gateway, it encapsulates the source IP address as the next hop IP address of the outbound interface according to its routing table. If the mdns source ip command is used, the device preferentially uses the configured source IP address.

NOTE:

If the device works as an mDNS relay, it is recommended that the IP address of an interface on the mDNS relay connecting to the mDNS gateway be used as the source IP address.

Example

# Specify the source IP address of 10.1.1.1 in mDNS packets to be sent to periodically discover services and to be forwarded to the mDNS gateway by the device as the mDNS relay.

<HUAWEI> system-view
[HUAWEI] mdns source ip 10.1.1.1
Related Topics

reset mdns relay statistics

Function

The reset mdns relay statistics command clears statistics on the mDNS relay.

Format

reset mdns relay statistics

Parameters

None

Views

User view

Default Level

3: Management level

Usage Guidelines

During routine maintenance and fault location, you can view statistics on mDNS packets received and sent by the mDNS relay in a given period of time. Before viewing the statistics, run the reset mdns relay statistics command to delete existing statistics. Then the mDNS relay recollects statistics on received and sent mDNS packets. You can run the display mdns relay statistics command to view statistics on mDNS packets received and sent by the mDNS relay.

Cleared statistics on the mDNS relay cannot be restored. Exercise caution when you use the reset mdns relay statistics command.

Example

# Clear statistics on the mDNS relay.

<HUAWEI> reset mdns relay statistics
Translation
Download
Updated: 2019-04-09

Document ID: EDOC1100065659

Views: 113994

Downloads: 83

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Share
Previous Next