< Home

user-vlan (mDNS group view)

Function

The user-vlan command configures user VLANs for an mDNS group.

The undo user-vlan command deletes user VLANs for the mDNS group.

By default, no user VLAN is configured for an mDNS group.

Format

user-vlan vlan-id &<1-32>

undo user-vlan { vlan-id &<1-32> | all }

Parameters

Parameter

Description

Value

vlan-id

Specifies the ID of the VLAN that users belong to.

The value is an integer that ranges from 1 to 4094.

all

Specifies all user VLANs.

-

Views

mDNS group view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

The device functioning as the mDNS gateway maintains service information lists of all service provisioning devices on a network, and it can use mDNS groups to isolate service resources to provide refined service management. You can run the user-vlan command to configure user VLANs for an mDNS group. The intra-VLAN users who join the mDNS group can only obtain services from the service list provided by the service VLAN (specified using the service-vlan command) mapping the mDNS group.

Prerequisites

An mDNS group has been created using the mdns group command.

Precautions

  • You can add at most 32 user VLANs to an mDNS group.

  • A user VLAN can belong to only one mDNS group.

  • If no mDNS group is specified for the user VLAN or no service VLAN is configured in the mDNS group, the gateway queries and replies with the requested service from the service lists provided by all service VLANs.

Example

# Add the users in VLAN 10 to the mDNS group group1.

<HUAWEI> system-view
[HUAWEI] mdns group group1
[HUAWEI-mdns-group-group1] user-vlan 10
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic