< Home

mdns permit service-type

Function

The mdns permit service-type command configures the service type that can be recorded by an mDNS gateway.

The undo mdns permit id command cancels the configured service type that can be recorded by an mDNS gateway.

By default, an mDNS gateway can record all service types.

Format

mdns permit service-type service-type id id

undo mdns permit id id

Parameters

Parameter

Description

Value

service-type service-type

Specifies a service type.

The value can be any service type that service provider devices can provide. The value is a string of characters, including digits, case-insensitive letters, and special characters visible on the keyboard, such as underscores (_), periods (.), and hyphens (-), with the exception of question marks (?) and spaces.

id id

Specifies a service type ID.

The value is an integer that ranges from 0 to 99.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

By default, an mDNS gateway records all service types on the network and generates a service list. Because a service list size is limited, some uncommonly used services occupy the list space, which may cause entries unable to be generated for commonly used services such as airplay and printer. To reduce the number of service entries in the service list, run the mdns permit service-type command. This command allows service entries to be generated for only the specified service type, reduces the number of service entries in the service list.

  • An mDNS gateway can be configured to record airplay and printer services (a maximum of 64 airplay and printer devices are allowed), meeting the requirements in high-density WLANs and enterprise office WLANs as well as the requirements in manufacturing, finance, and government sectors.
  • An mDNS gateway can be configured to record airplay and printer services (a maximum of 256 airplay and printer devices are allowed), meeting the requirements in scenarios where the number of VLANs to which concurrent users belong is less than 36.

Example

# Configure the service type that can be recorded by the mDNS gateway.

<HUAWEI> system-view 
[HUAWEI] mdns permit service-type _raop._tcp.local id 0 
[HUAWEI] mdns permit service-type _airplay._tcp.local id 1
[HUAWEI] mdns permit service-type _printer._tcp.local id 2
[HUAWEI] mdns permit service-type _device-info._tcp.local id 3
[HUAWEI] mdns permit service-type _rfb._tcp.local id 4
[HUAWEI] mdns permit service-type _sftp-ssh._tcp.local id 5
[HUAWEI] mdns permit service-type _ssh._tcp.local id 6
[HUAWEI] mdns permit service-type _smb._tcp.local id 7
[HUAWEI] mdns permit service-type _afpovertcp._tcp.local id 8
[HUAWEI] mdns permit service-type _universal._sub._ipp._tcp.local id 9
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >