< Home

service-vlan

Function

The service-vlan command configures service VLANs (that the service provisioning devices belong to) to provide services for users in an mDNS group.

The undo service-vlan deletes the service VLANs that provide services for users in an mDNS group.

By default, no service VLAN is configured to provide services for users in an mDNS group.

Format

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

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

Parameters

Parameter

Description

Value

vlan-id

Specifies the ID of the VLAN that the service provisioning devices belong to.

The value is an integer in the range from 1 to 4094.

all

Specifies all service VLANs.

-

Views

mDNS group view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

The device functioning as an 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 service-vlan command to configure service VLANs to provide services for users in the mDNS group. The users (specified using the user-vlan command in the mDNS group view) in the mDNS group can only obtain services from the service list provided by the service VLAN mapping the mDNS group.

Prerequisites

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

Precautions

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

  • You can add a service VLAN to multiple mDNS groups to provide services for the users in these groups.

  • The service VLAN cannot be configured as a reserved VLAN for a stack.

Example

# Configure the service provisioning devices in VLAN 10 to provide services for the mDNS group group1.

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